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

Fix for Entity Interface Model Generation #2868

Merged
merged 1 commit into from Dec 22, 2023
Merged

Fix for Entity Interface Model Generation #2868

merged 1 commit into from Dec 22, 2023

Conversation

kjones-onx
Copy link
Contributor

@kjones-onx kjones-onx commented Dec 21, 2023

This PR addresses a generation and compilation issue related to Issue #2711 , for usage of Apollo entity interfaces.

Related code change for supporting the _Entity implementation for interfaces are in plugin/modelgen/models.go.

Related tests are in plugin/federation/federation_test.go.

To run the test:

  • Go to plugin/federation and run go run github.com/99designs/gqlgen --config "testdata/entityinterfaces/interface.yml".
  • After that you can run go test ./... which will run the new test added.

I have:

  • Added tests covering the bug / feature (see testing)
  • Updated any relevant documentation (see docs)

@nullism
Copy link
Contributor

nullism commented Dec 21, 2023

Thanks very much for doing this!

@coveralls
Copy link

Coverage Status

coverage: 79.426% (+3.5%) from 75.936%
when pulling 6ff81b5 on kjones-onx:entity-interface-fix
into 0354649 on 99designs:master.

@StevenACoffman StevenACoffman merged commit 13bb415 into 99designs:master Dec 22, 2023
18 checks passed
@StevenACoffman
Copy link
Collaborator

Thanks!

@kjones-onx kjones-onx deleted the entity-interface-fix branch December 28, 2023 19:06
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.

None yet

4 participants