-
Notifications
You must be signed in to change notification settings - Fork 224
[Feature] Include Request ID at the footer of shopify theme * command errors
#6736
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
base: main
Are you sure you want to change the base?
Conversation
This comment has been minimized.
This comment has been minimized.
Coverage report
Show new covered files 🐣
Show files with reduced coverage 🔻
Test suite run success3585 tests passing in 1421 suites. Report generated by 🧪jest coverage report action from ed373ec |
karreiro
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this PR, @fredericoo! Neat approach :) LGTM and works as expected too:
I've added @EvilGenius13 because he has more context around @shopify/cli-kit/node/metadata, but I believe cmd_all_last_graphql_request_id is the way to go :)
Thanks again for this PR!
EvilGenius13
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! cmd_all_last_graphql_request_id is definitely what we want in this scenario.
WHY are these changes introduced?
This will improve our relationship with the community, as we frequently need to deal with the back and forth of asking for the --verbose output.
Fixes https://github.com/Shopify/developer-tools-team/issues/467
WHAT is this pull request doing?
We make use of the
catchmethod inCommandto append the graphql request id made if present. It only affectsThemeCommandand leaves other parts of the cli untouched.How to test your changes?
Besides running the written unit tests, you may:
pnpm shopify theme pull --store <VALID_STORE_ID>.myshopify.com --theme 999999999for an error with a request idpnpm shopify theme list --store fake-store-that-does-not-exist.myshopify.comfor an error without a request id (it fails during auth)Post-release steps
Measuring impact
How do we know this change was effective? Please choose one:
Checklist