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

Enable union validation #567

Merged
merged 6 commits into from
Aug 5, 2024
Merged

Enable union validation #567

merged 6 commits into from
Aug 5, 2024

Conversation

gnawf
Copy link
Collaborator

@gnawf gnawf commented Jul 30, 2024

Honestly not quite sure why this was commented out… running this on central schema seems fine.

@@ -22,7 +22,7 @@ overallSchema:
# language=GraphQL
underlyingSchema:
Issues: |
union HasName = Issue | Edible
union HasName = Issue | Edible | Troll | User
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Honestly not sure why these tests are set up like this… this is not desirable behavior.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall we remove them or replace them with new tests using the new format?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I'll just leave them, just not sure why the overall schema had more members to begin with…

@@ -474,50 +474,6 @@ class NadelTypeValidationTest : DescribeSpec({
assert(error.overallField.name == "nextgenSpecific")
}

it("ignores extension union members declared by other services") {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add tests for the checks performed by NadelUnionValidation?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah my bad, got distracted by E2E tests and forgot. Will add some.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good stuff!!! Thanks for that.

@gnawf gnawf merged commit 53f4a43 into master Aug 5, 2024
2 checks passed
@gnawf gnawf deleted the enable-union-validation branch August 5, 2024 01:34
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.

2 participants