Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limit usage of deprecated FE1 api to only essentials #398

Draft
wants to merge 2 commits into
base: development
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
86 changes: 44 additions & 42 deletions ui/src/graphql/streams.gql
Original file line number Diff line number Diff line change
@@ -1,51 +1,53 @@
query Streams($cursor: String) {
streams(cursor: $cursor) {
totalCount
cursor
items {
id
name
description
role
isPublic
createdAt
updatedAt
collaborators {
activeUser {
streams(cursor: $cursor) {
totalCount
cursor
items {
id
name
company
avatar
description
role
}
commits(limit: 1) {
totalCount
items {
id
createdAt
message
authorId
branchName
authorName
authorAvatar
referencedObject
}
}
branches {
totalCount
items {
isPublic
createdAt
updatedAt
collaborators {
id
name
commits(limit: 10) {
totalCount
items {
id
createdAt
message
authorId
branchName
authorName
authorAvatar
referencedObject
company
avatar
role
}
commits(limit: 1) {
totalCount
items {
id
createdAt
message
authorId
branchName
authorName
authorAvatar
referencedObject
}
}
branches {
totalCount
items {
id
name
commits(limit: 10) {
totalCount
items {
id
createdAt
message
authorId
branchName
authorName
authorAvatar
referencedObject
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion ui/src/graphql/user.gql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
query {
user {
user:activeUser {
id
email
name
Expand Down
4 changes: 1 addition & 3 deletions ui/src/graphql/userById.gql
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
query User($id: String!) {
user(id: $id) {
user:otherUser(id: $id) {
id
email
name
bio
company
avatar
verified
profiles
role
}
}