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

Change Implementers fields from HashMap to IndexMap #898

Merged
merged 2 commits into from
Aug 26, 2024

Conversation

SimonSapin
Copy link
Contributor

This struct returned by Schema::implementers_map maps interface types to (object or interface) types that implement that interface. Now the ordering of implementers is deterministic and matches their definition order in the schema. This helps fuzzing, where the same entropy source should generate the same test case.

Previously moved to crates/apollo-compiler/src/execution/resolver.rs
This struct returned by `Schema::implementers_map` maps interface types
to (object or interface) types that implement that interface.
Now the ordering of implementers is deterministic
and matches their definition order in the schema.
This helps fuzzing, where the same entropy source
should generate the same test case.
@SimonSapin SimonSapin merged commit 1f29e09 into main Aug 26, 2024
12 checks passed
@SimonSapin SimonSapin deleted the implementers-ordering branch August 26, 2024 12:53
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