feat(linear): add Issue.priorityLabel - #216
Open
ikatkov wants to merge 1 commit into
Open
Conversation
Contributor
|
@ikatkov is attempting to deploy a commit to the Vercel Labs Team on Vercel. A member of the Team first needs to authorize it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #219.
Issue.priorityLabelfield to the emulated GraphQL schema.Reproduction
On
emulate@0.10.0, this valid Linear-shaped query is rejected during document validation:The response is HTTP 400 with
Cannot query field "priorityLabel" on type "Issue", so the same shared issue fragment also blocks mutations such asissueCreatebefore they execute.With this change, issue reads return the documented mapping:
prioritypriorityLabel0No priority1Urgent2High3Medium4LowAn
issueCreatemutation with no priority now succeeds when selectingpriorityLabeland returns{ priority: 0, priorityLabel: "No priority" }.Verification
pnpm --filter @emulators/linear testpnpm --filter @emulators/linear type-checkpnpm --filter @emulators/linear lintpnpm --filter @emulators/linear buildpnpm --filter emulate lintgit diff --checkSeparate schema discrepancy
Linear's published schema types
Issue.priorityasFloat!, while the emulator currently declaresInt!. This PR intentionally leaves that potentially breaking type change out of the additivepriorityLabelfix.