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

[Linear] Only the last 50 teams are shown when creating an issue #10856

Closed
vineus opened this issue Feb 21, 2024 · 5 comments · Fixed by #13132
Closed

[Linear] Only the last 50 teams are shown when creating an issue #10856

vineus opened this issue Feb 21, 2024 · 5 comments · Fixed by #13132
Assignees
Labels
bug Something isn't working Dont close Won't be closed by stalebot extension: linear Issues related to the linear extension extension Issues related to one of the extensions in the Store

Comments

@vineus
Copy link
Contributor

vineus commented Feb 21, 2024

Extension

https://www.raycast.com/linear/linear

Description

The teams GraphQL API call is not paginated:

const { data } = await graphQLClient.rawRequest<{ teams: { nodes: TeamResult[] } }, Record<string, unknown>>(
`
query {
teams {
nodes {
id
name
icon
color
projects {
nodes {
id
}
}
organization {
logoUrl
}
key
issueEstimationType
issueEstimationAllowZero
issueEstimationExtended
activeCycle {
id
number
}
}
}
}
`,
);

resulting in only the latest 50 teams being fetched from linear

Linear doc: https://developers.linear.app/docs/graphql/working-with-the-graphql-api/pagination

The first 50 results are returned by default without query arguments.

If there are more than 50 teams some will be missing from the dropdown when creating a linear issue

Screenshot 2024-02-21 at 12 12 26

Steps To Reproduce

  1. create more than 50 teams in linear
  2. trigger the "Create issue" linear raycast action
  3. list the teams in the "Team" dropdown

Current Behaviour

only the last 50 teams created are shown

Expected Behaviour

all available teams are shown

@vineus vineus added bug Something isn't working extension Issues related to one of the extensions in the Store labels Feb 21, 2024
@raycastbot raycastbot added the extension: linear Issues related to the linear extension label Feb 21, 2024
@raycastbot
Copy link
Collaborator

Thank you for opening this issue!

🔔 @thomaslombart @mathieudutour @thomaspaulmann @peduarte @pernielsentikaer @mil3na you might want to have a look.

💡 Author and Contributors commands

The author and contributors of linear/linear can trigger bot actions by commenting:

  • @raycastbot close this issue Closes the issue.
  • @raycastbot rename this issue to "Awesome new title" Renames the issue.
  • @raycastbot reopen this issue Reopen the issue.

@thomaslombart
Copy link
Collaborator

Thanks for opening up an issue. It can be fixed by adding typeahead search support to this field.

@raycastbot
Copy link
Collaborator

This issue has been automatically marked as stale because it did not have any recent activity.

It will be closed if no further activity occurs in the next 10 days to keep our backlog clean 😊

@raycastbot raycastbot added the status: stalled Stalled due inactivity label Apr 12, 2024
@thomaslombart thomaslombart removed the status: stalled Stalled due inactivity label Apr 12, 2024
@thomaslombart thomaslombart added the Dont close Won't be closed by stalebot label May 23, 2024
@jfkisafk
Copy link
Contributor

@raycastbot assign me

@jfkisafk jfkisafk removed their assignment May 29, 2024
jfkisafk added a commit to jfkisafk/raycast-extensions that referenced this issue Jun 22, 2024
@jfkisafk
Copy link
Contributor

@raycastbot assign me

jfkisafk added a commit to jfkisafk/raycast-extensions that referenced this issue Jun 22, 2024
jfkisafk added a commit to jfkisafk/raycast-extensions that referenced this issue Jul 5, 2024
jfkisafk added a commit to jfkisafk/raycast-extensions that referenced this issue Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Dont close Won't be closed by stalebot extension: linear Issues related to the linear extension extension Issues related to one of the extensions in the Store
Projects
None yet
4 participants