Title: Renamed scalar still present in the schema if used as directive argument · Issue #2933 · graphql-java/graphql-java · GitHub
Open Graph Title: Renamed scalar still present in the schema if used as directive argument · Issue #2933 · graphql-java/graphql-java
X Title: Renamed scalar still present in the schema if used as directive argument · Issue #2933 · graphql-java/graphql-java
Description: Describe the bug When custom scalar is used as a directive argument, old scalar name is still present in the schema after rename. In the example below both Query.field return type and myDirective argument are updated to the Bar type but ...
Open Graph Description: Describe the bug When custom scalar is used as a directive argument, old scalar name is still present in the schema after rename. In the example below both Query.field return type and myDirective a...
X Description: Describe the bug When custom scalar is used as a directive argument, old scalar name is still present in the schema after rename. In the example below both Query.field return type and myDirective a...
Opengraph URL: https://github.com/graphql-java/graphql-java/issues/2933
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Renamed scalar still present in the schema if used as directive argument","articleBody":"**Describe the bug**\r\nWhen custom scalar is used as a directive argument, old scalar name is still present in the schema after rename.\r\n\r\nIn the example below both `Query.field` return type and `myDirective` argument are updated to the `Bar` type but the schema contains entries for both original `Foo` and renamed `Bar`.\r\n\r\n**To Reproduce**\r\nModify current scalar rename test to include directive (https://github.com/graphql-java/graphql-java/pull/2928)\r\n\r\n```graphql\r\nscalar Foo\r\ndirective @myDirective(foo: Foo) on FIELD_DEFINITION\r\ntype Query {\r\n field: Foo @myDirective\r\n}\r\n```\r\n\r\nSee: https://github.com/dariuszkuc/graphql-java/commit/6005e8e632fcc5c032203fbb0a54d86e399d2fce\r\n\r\nIt looks like the original `Foo` is only added if the directive is applied, i.e. if we update `field: Foo @myDirective` to `field: Foo` we won't have the old type in the schema. Might be an issue with applied directives.\r\n","author":{"url":"https://github.com/dariuszkuc","@type":"Person","name":"dariuszkuc"},"datePublished":"2022-08-23T14:56:45.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/2933/graphql-java/issues/2933"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:82fdb7d7-ac82-03e4-597b-a6b1b718e002 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B832:C9713:895529:BBD001:6A611801 |
| html-safe-nonce | 92a4443b6c72f12ad0626e2224646d845bd73f54eb9312a675d9655e29338048 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCODMyOkM5NzEzOjg5NTUyOTpCQkQwMDE6NkE2MTE4MDEiLCJ2aXNpdG9yX2lkIjoiODMxMTgwMzQzMzc5NzYyMTc2MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 90537325c85c8ce839c2505b3398237a3651835e4be5b133679f9c71fa47a30b |
| hovercard-subject-tag | issue:1348094380 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/graphql-java/graphql-java/2933/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a078535f38b2263ee6b979690348e85858bbd44c419b6d10a6bce15cf6957582/graphql-java/graphql-java/issues/2933 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a078535f38b2263ee6b979690348e85858bbd44c419b6d10a6bce15cf6957582/graphql-java/graphql-java/issues/2933 |
| og:image:alt | Describe the bug When custom scalar is used as a directive argument, old scalar name is still present in the schema after rename. In the example below both Query.field return type and myDirective a... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dariuszkuc |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5d23cf1c0cd2fa53870b9a743b3e1bc3ff0d0b0b3a477b50251e1c9dd8ecb93d |
| turbo-cache-control | no-preview |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | abf5a2f79ab9b533c5865f5281057f7d17cf18f3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width