Title: FieldVisibilitySchemaTransformation code has trouble with remove fields under certain conditions · Issue #4191 · graphql-java/graphql-java · GitHub
Open Graph Title: FieldVisibilitySchemaTransformation code has trouble with remove fields under certain conditions · Issue #4191 · graphql-java/graphql-java
X Title: FieldVisibilitySchemaTransformation code has trouble with remove fields under certain conditions · Issue #4191 · graphql-java/graphql-java
Description: Describe the bug Atlassian recently encountered a bug where the FieldVisibilitySchemaTransformation code seemed to produce and invalid schema after transformation. To Reproduce Right now we dont have a public reproduction yet but we dont...
Open Graph Description: Describe the bug Atlassian recently encountered a bug where the FieldVisibilitySchemaTransformation code seemed to produce and invalid schema after transformation. To Reproduce Right now we dont ha...
X Description: Describe the bug Atlassian recently encountered a bug where the FieldVisibilitySchemaTransformation code seemed to produce and invalid schema after transformation. To Reproduce Right now we dont ha...
Opengraph URL: https://github.com/graphql-java/graphql-java/issues/4191
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"FieldVisibilitySchemaTransformation code has trouble with remove fields under certain conditions","articleBody":"**Describe the bug**\nAtlassian recently encountered a bug where the FieldVisibilitySchemaTransformation code seemed to produce and invalid schema after transformation.\n\n**To Reproduce**\n\n\nRight now we dont have a public reproduction yet but we dont have local .graphqls files of the starting schema and code like\n\n\n```\n override fun isVisible(environment: VisibleFieldPredicateEnvironment): Boolean {\n if (schemaElement !is GraphQLFieldDefinition) {\n return true\n }\n val parent = environment.parentElement as GraphQLFieldsContainer\n val directiveContainer = (environment.schemaElement as GraphQLDirectiveContainer)\n return when {\n parent.name == \"Query\" \u0026\u0026 schemaElement.name == \"admin_effectiveRoleAssignmentsByPrincipal\"\n -\u003e false\n parent.name == \"Query\" \u0026\u0026 schemaElement.name == \"admin_group\"\n -\u003e false\n else -\u003e true\n }\n }\n```\n\nI need to make sure we can publish the .graphqls schema ok here for reproduction","author":{"url":"https://github.com/bbakerman","@type":"Person","name":"bbakerman"},"datePublished":"2025-12-17T04:30:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/4191/graphql-java/issues/4191"}
| 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:16b71664-6aea-cfa3-3061-4c983037339d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A030:2EB8B3:BF6F57:10A45FC:696F3167 |
| html-safe-nonce | 6d7b4c13e0b44172718ed56310ae75016ee9376859be4a4182524405bf843d69 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMDMwOjJFQjhCMzpCRjZGNTc6MTBBNDVGQzo2OTZGMzE2NyIsInZpc2l0b3JfaWQiOiI2ODMwNzA2MTQ5NTU3MjE5Njg3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | dd50e80bf6278c5b925a9e955750c5cd6d65ebbe48bf35e959f022a0f500b059 |
| hovercard-subject-tag | issue:3737290044 |
| 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/4191/issue_layout |
| twitter:image | https://opengraph.githubassets.com/72da48678d8bbf995e40ffb163c61e82cbd1d5ac07b286aa06ec1a934f8feb23/graphql-java/graphql-java/issues/4191 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/72da48678d8bbf995e40ffb163c61e82cbd1d5ac07b286aa06ec1a934f8feb23/graphql-java/graphql-java/issues/4191 |
| og:image:alt | Describe the bug Atlassian recently encountered a bug where the FieldVisibilitySchemaTransformation code seemed to produce and invalid schema after transformation. To Reproduce Right now we dont ha... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bbakerman |
| hostname | github.com |
| expected-hostname | github.com |
| None | b278ad162d35332b6de714dfb005de04386c4d92df6475522bef910f491a35ee |
| 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 | 39aed5006635ab6f45e6b77d23e73b08a00272a3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width