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

Use "No longer supported" as the default deprecationReason for deprecations without a reason specified #2692

Merged
merged 2 commits into from
Jun 23, 2023

Conversation

arseniocosta1
Copy link
Contributor

@arseniocosta1 arseniocosta1 commented Jun 23, 2023

Describe your PR and link to any relevant issues.

Fixes: #2691

I have:

  • Added tests covering the bug / feature (see testing)
  • Updated any relevant documentation (see docs)

@chadxzs
Copy link

chadxzs commented Jun 23, 2023

Would love to see a test for this

…n set get the default reason defined in the spec `No longer supported`
@arseniocosta1
Copy link
Contributor Author

arseniocosta1 commented Jun 23, 2023

@chadxzs I submitted an integration test

I've used @graphql-codegen/introspection to generate a schema.json and ensured that a deprecated field added in the User type gets the default deprecationReason set to No longer supported

Let me know if this works, as I wrote in the issue I'm quite new to the codebase 😅

@StevenACoffman StevenACoffman changed the title Use "No longer supported" as the default deprecationReason for deprecations without no reason specified Use "No longer supported" as the default deprecationReason for deprecations without a reason specified Jun 23, 2023
@coveralls
Copy link

Coverage Status

coverage: 79.173% (+3.6%) from 75.543% when pulling 6a9fb9c on arseniocosta1:master into 5ac9fe5 on 99designs:master.

@StevenACoffman StevenACoffman merged commit 1a9dbad into 99designs:master Jun 23, 2023
18 checks passed
@StevenACoffman
Copy link
Collaborator

Thanks very much! Looking forward to your next PR!

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.

@deprecated directive usage, reason not defaulting of No longer supported as per the spec
4 participants