René's URL Explorer Experiment


Title: SchemaDiff EnforceDirectives Option Does Not Identify Removal of Directive From Type or Field · Issue #3343 · graphql-java/graphql-java · GitHub

Open Graph Title: SchemaDiff EnforceDirectives Option Does Not Identify Removal of Directive From Type or Field · Issue #3343 · graphql-java/graphql-java

X Title: SchemaDiff EnforceDirectives Option Does Not Identify Removal of Directive From Type or Field · Issue #3343 · graphql-java/graphql-java

Description: Describe the bug The enforceDirectives option for SchemaDiff does not properly detect if a directive was removed from a field or type. This is because it relies on an introspection result as input. The introspection query does not return...

Open Graph Description: Describe the bug The enforceDirectives option for SchemaDiff does not properly detect if a directive was removed from a field or type. This is because it relies on an introspection result as input....

X Description: Describe the bug The enforceDirectives option for SchemaDiff does not properly detect if a directive was removed from a field or type. This is because it relies on an introspection result as input....

Opengraph URL: https://github.com/graphql-java/graphql-java/issues/3343

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"SchemaDiff EnforceDirectives Option Does Not Identify Removal of Directive From Type or Field","articleBody":"**Describe the bug**\r\nThe enforceDirectives option for SchemaDiff does not properly detect if a directive was removed from a field or type. This is because it relies on an introspection result as input. The introspection query does not return directives on fields or types so they are not present when the diff of the document is ran. \r\n\r\n**To Reproduce**\r\n\r\nSchema 1:\r\n\r\n```\r\ndirective @someDirective on FIELD_DEFINITION\r\n\r\ntype test {\r\n  version: String! @someDirective\r\n}\r\n\r\ntype Query {\r\n  getTests: [test]!\r\n}\r\n```\r\n\r\nSchema 2:\r\n\r\n```\r\ndirective @someDirective on FIELD_DEFINITION\r\n\r\ntype test {\r\n  version: String!\r\n}\r\n\r\ntype Query {\r\n  getTests: [test]!\r\n}\r\n```\r\nWhen schema diff is run on these two schemas it will detect no changes even though removal of a directive could be a breaking change especially for composite schemas. \r\n\r\nPotential solution would be providing the ability for DiffSet to provide the SchemaDefinition directly so that it can be overridden to use an approach that does not require introspection:\r\n\r\n```\r\npublic interface DiffSet {\r\n     Document getOldSchemaDefinition();\r\n     Document getNewSchemaDefinition();\r\n}\r\n\r\n\r\npublic class IntrospectionDiffSet implements DiffSet  {\r\n   ....\r\n   @Override\r\n   public Document getOldSchemaDefinition() {\r\n        return new IntrospectionResultToSchema().createSchemaDefinition(this.introspectionOld);   \r\n    }\r\n    \r\n    @Override\r\n     public Document getNewSchemaDefinition() {\r\n        return new IntrospectionResultToSchema().createSchemaDefinition(this.introspectionNew);   \r\n    }\r\n}\r\n```\r\nThe SchemaDiff class can then use this hook rather than requiring the introspection result method. \r\n\r\n```\r\npublic class SchemaDiff {\r\n ...\r\n     private void diffSchemaImpl(DiffSet diffSet, DifferenceReporter reporter) {\r\n            Document oldDoc = diffSet.getOldSchemaDefinition();\r\n            Document newDoc = diffSet.getNewSchemaDefinition();\r\n            ...\r\n     }\r\n}\r\n```\r\n\r\nWe would then be able to override this implementation with something like this:\r\n```\r\n public class SDLDiffSet implements DiffSet {\r\n   ....\r\n   \r\n   @Override\r\n   public Document getOldSchemaDefinition() {\r\n        return Parser.parse(this.oldSchemaSdl);\r\n   }\r\n    \r\n    @Override\r\n    public Document getNewSchemaDefinition() {\r\n        return Parser.parse(this.newSchemaSdl);\r\n    }\r\n}\r\n```\r\n\r\nI am willing to help with a PR if there is some agreement on direction here. \r\n\r\n","author":{"url":"https://github.com/ndejaco2","@type":"Person","name":"ndejaco2"},"datePublished":"2023-10-03T21:09:08.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/3343/graphql-java/issues/3343"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:d514a6e1-5881-05c0-9870-f35c50e9df12
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idEBC2:425E5:203AC5D:2C9C8CF:6A609A7C
html-safe-nonce17f0cd866ddc31342d974b48a96c04816684a786f3d36a423769351f1eba6182
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQkMyOjQyNUU1OjIwM0FDNUQ6MkM5QzhDRjo2QTYwOUE3QyIsInZpc2l0b3JfaWQiOiIzNDI2MDY3MDM2OTU0OTkxMjI4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac7bbd087eba265721f0ed14abfbec79e5cbda0c4c8deb3fc1e09f09dd840c28a6
hovercard-subject-tagissue:1924955142
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/graphql-java/graphql-java/3343/issue_layout
twitter:imagehttps://opengraph.githubassets.com/4ab129620256ba93cd59104fd27e32c9a83d7ec6be5c6bdee4669d0f88775acc/graphql-java/graphql-java/issues/3343
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/4ab129620256ba93cd59104fd27e32c9a83d7ec6be5c6bdee4669d0f88775acc/graphql-java/graphql-java/issues/3343
og:image:altDescribe the bug The enforceDirectives option for SchemaDiff does not properly detect if a directive was removed from a field or type. This is because it relies on an introspection result as input....
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamendejaco2
hostnamegithub.com
expected-hostnamegithub.com
None5142d23feb6a650085422edf60d68c93777dfa6c4b0c9151eb464d3e4969f618
turbo-cache-controlno-preview
go-importgithub.com/graphql-java/graphql-java git https://github.com/graphql-java/graphql-java.git
octolytics-dimension-user_id14289921
octolytics-dimension-user_logingraphql-java
octolytics-dimension-repository_id38602457
octolytics-dimension-repository_nwographql-java/graphql-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id38602457
octolytics-dimension-repository_network_root_nwographql-java/graphql-java
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseb2111e158bcd758ab9d0446577ae8f5dd78fcca8
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/graphql-java/graphql-java/issues/3343#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgraphql-java%2Fgraphql-java%2Fissues%2F3343
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgraphql-java%2Fgraphql-java%2Fissues%2F3343
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=graphql-java%2Fgraphql-java
Reloadhttps://github.com/graphql-java/graphql-java/issues/3343
Reloadhttps://github.com/graphql-java/graphql-java/issues/3343
Reloadhttps://github.com/graphql-java/graphql-java/issues/3343
Please reload this pagehttps://github.com/graphql-java/graphql-java/issues/3343
graphql-java https://github.com/graphql-java
graphql-javahttps://github.com/graphql-java/graphql-java
Notifications https://github.com/login?return_to=%2Fgraphql-java%2Fgraphql-java
Fork 1.1k https://github.com/login?return_to=%2Fgraphql-java%2Fgraphql-java
Star 6.2k https://github.com/login?return_to=%2Fgraphql-java%2Fgraphql-java
Code https://github.com/graphql-java/graphql-java
Issues 26 https://github.com/graphql-java/graphql-java/issues
Pull requests 11 https://github.com/graphql-java/graphql-java/pulls
Discussions https://github.com/graphql-java/graphql-java/discussions
Actions https://github.com/graphql-java/graphql-java/actions
Projects https://github.com/graphql-java/graphql-java/projects
Wiki https://github.com/graphql-java/graphql-java/wiki
Security and quality 0 https://github.com/graphql-java/graphql-java/security
Insights https://github.com/graphql-java/graphql-java/pulse
Code https://github.com/graphql-java/graphql-java
Issues https://github.com/graphql-java/graphql-java/issues
Pull requests https://github.com/graphql-java/graphql-java/pulls
Discussions https://github.com/graphql-java/graphql-java/discussions
Actions https://github.com/graphql-java/graphql-java/actions
Projects https://github.com/graphql-java/graphql-java/projects
Wiki https://github.com/graphql-java/graphql-java/wiki
Security and quality https://github.com/graphql-java/graphql-java/security
Insights https://github.com/graphql-java/graphql-java/pulse
SchemaDiff EnforceDirectives Option Does Not Identify Removal of Directive From Type or Fieldhttps://github.com/graphql-java/graphql-java/issues/3343#top
https://github.com/ndejaco2
ndejaco2https://github.com/ndejaco2
on Oct 3, 2023https://github.com/graphql-java/graphql-java/issues/3343#issue-1924955142
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.