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

[Feature]: Add Logging for Shopify GraphQL Admin API Deprecated Reason #2272

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jordanfinners
Copy link

@jordanfinners jordanfinners commented Mar 26, 2025

  • Add log and log type for deprecation reason/notice
  • Add documentation covering the new log type
  • Allow the logging of any deprecation reason from GraphQL requests to allow apps to monitor

WHY are these changes introduced?

Currently any deprecation reason / notices won't be logged, and you can't get visibility of them apart from via the Partner Dashboard. This works okay for public apps, but not for custom apps using this library.
Especially with the introduction of the actual deprecated fields in the header, this would be really useful information for app developers

WHAT is this pull request doing?

Extending the existing logger to include a type for logging the graphql deprecation reason / notice.

Type of change

  • Patch: Bug (non-breaking change which fixes an issue)
  • Minor: New feature (non-breaking change which adds functionality)
  • Major: Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist

  • I have used pnpm changeset to create a draft changelog entry (do NOT update the CHANGELOG.md files manually)
  • I have added/updated tests for this change
  • I have documented new APIs/updated the documentation for modified APIs (for public APIs)

@jordanfinners jordanfinners requested a review from a team as a code owner March 26, 2025 10:17
@jordanfinners
Copy link
Author

Just signed the CLA, but can't rerun the workflow. If someone would be able to retrigger it please 🙏

Copy link
Contributor

@lizkenyon lizkenyon left a comment

Choose a reason for hiding this comment

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

Thank you for submitting this! Great value add!
A few minor comments.

* Add log and log type for deprecation reason/notice
* Add documentation covering the new log type
* Allow the logging of any deprecation reason from Shopify GraphQL Admin API requests to allow apps to allow monitoring
@jordanfinners jordanfinners force-pushed the feature/log-deprecation-notice branch from f29f111 to b05d09b Compare March 31, 2025 09:06
@jordanfinners jordanfinners changed the title [Feature]: Add Logging for GraphQL Deprecated Reason [Feature]: Add Logging for Shopify GraphQL Admin API Deprecated Reason Mar 31, 2025
@jordanfinners jordanfinners requested a review from lizkenyon March 31, 2025 09:07
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