Title: Allow schema diff to use SDL document to enforce directives by ndejaco2 · Pull Request #3344 · graphql-java/graphql-java · GitHub
Open Graph Title: Allow schema diff to use SDL document to enforce directives by ndejaco2 · Pull Request #3344 · graphql-java/graphql-java
X Title: Allow schema diff to use SDL document to enforce directives by ndejaco2 · Pull Request #3344 · graphql-java/graphql-java
Description: This PR is made to fix a bug (#3343) with SchemaDiff where the enforceDirectives option is not working properly. In this PR, I deprecate the DiffSet class and introduce the new SchemaDiffSet interface in place of it. There are two implementations of SchemaDiffSet provided: IntrospectionSchemaDiffSet and SDLSchemaDiffSet. Since introspection query does not return which elements directives are applied on, it does not properly enforce directives. The SDL schema diff set should always be used when attempting to enforce directives in a schema diff. I updated the unit tests to use both methods and validate that the response is equivalent for all but the directives use case. I am not super familiar with how major versioning is managed in this package, but I left the old implementation available and just marked it as Deprecated so let me know if there is any other way of going about this.
Open Graph Description: This PR is made to fix a bug (#3343) with SchemaDiff where the enforceDirectives option is not working properly. In this PR, I deprecate the DiffSet class and introduce the new SchemaDiffSet inter...
X Description: This PR is made to fix a bug (#3343) with SchemaDiff where the enforceDirectives option is not working properly. In this PR, I deprecate the DiffSet class and introduce the new SchemaDiffSet inter...
Opengraph URL: https://github.com/graphql-java/graphql-java/pull/3344
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:06264853-e8c9-a071-916c-cf2ee9e677a7 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C55A:1CFF52:4B1177:6652DC:6A62D44B |
| html-safe-nonce | 8962ff1cd9c584f460d5166020c0bf766eaf519d15fa91bd0dcc7847fa35d771 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNTVBOjFDRkY1Mjo0QjExNzc6NjY1MkRDOjZBNjJENDRCIiwidmlzaXRvcl9pZCI6IjU3NDE1NDc4MzY4MTY5MzgwNTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d57960bb6301de1c7723293dd9dd3817eb669595355572690ee718b76e9c2357 |
| hovercard-subject-tag | pull_request:1542456031 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/graphql-java/graphql-java/pull/3344/files |
| twitter:image | https://avatars.githubusercontent.com/u/54116900?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/54116900?s=400&v=4 |
| og:image:alt | This PR is made to fix a bug (#3343) with SchemaDiff where the enforceDirectives option is not working properly. In this PR, I deprecate the DiffSet class and introduce the new SchemaDiffSet inter... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | df33b1b61ee7b9a0af988199bfc3503c9c1acafb1f1d40e1f140ea7c84f890dd |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/graphql-java/graphql-java git https://github.com/graphql-java/graphql-java.git |
| octolytics-dimension-user_id | 14289921 |
| octolytics-dimension-user_login | graphql-java |
| octolytics-dimension-repository_id | 38602457 |
| octolytics-dimension-repository_nwo | graphql-java/graphql-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 38602457 |
| octolytics-dimension-repository_network_root_nwo | graphql-java/graphql-java |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d41cd1bdb290013455c0ac430fa755621733f5eb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width