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

Update dev-session graphql queries #4863

Merged
merged 1 commit into from
Nov 15, 2024

Conversation

isaacroldan
Copy link
Contributor

@isaacroldan isaacroldan commented Nov 15, 2024

WHY are these changes introduced?

Part of a feature to improve errors in dev-sessions

WHAT is this pull request doing?

Adds additional error fields (on, field, and category) to dev session GraphQL mutations to provide more detailed error information when creating or updating dev sessions.

How to test your changes?

Measuring impact

  • n/a - this doesn't need measurement, e.g. a linting rule or a bug-fix

Checklist

  • I've considered possible cross-platform impacts (Mac, Linux, Windows)
  • I've considered possible documentation changes

@isaacroldan isaacroldan changed the title Update dev-session queries Update dev-session graphql queries Nov 15, 2024
Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@isaacroldan isaacroldan marked this pull request as ready for review November 15, 2024 12:18
@isaacroldan isaacroldan requested a review from a team as a code owner November 15, 2024 12:18
Copy link
Contributor

We detected some changes at packages/*/src and there are no updates in the .changeset.
If the changes are user-facing, run "pnpm changeset add" to track your changes and include them in the next release CHANGELOG.

Copy link
Contributor

Coverage report

St.
Category Percentage Covered / Total
🟡 Statements 74.35% 8517/11455
🟡 Branches 70.14% 4155/5924
🟡 Functions 73.87% 2239/3031
🟡 Lines 74.88% 8055/10757
Show files with reduced coverage 🔻
St.
File Statements Branches Functions Lines
🟢
... / ConcurrentOutput.tsx
98.36% (-1.64% 🔻)
88% (-4% 🔻)
100%
98.33% (-1.67% 🔻)

Test suite run success

1942 tests passing in 884 suites.

Report generated by 🧪jest coverage report action from 1cce8f4

@@ -2,6 +2,9 @@ mutation DevSessionCreate($appId: String!, $assetsUrl: String!) {
devSessionCreate(appId: $appId, assetsUrl: $assetsUrl) {
userErrors {
message
on
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I won't block the CLI PR but on is a keyword in GraphQL, we should consider a different name for this field. It should still work though

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@isaacroldan isaacroldan merged commit 906f2f0 into main Nov 15, 2024
29 checks passed
@isaacroldan isaacroldan deleted the 11-15-update_dev-session_queries branch November 15, 2024 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants