这是indexloc提供的服务,不要输入任何密码
Skip to content

recreate supergraph fixture using latest cli version #134

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

Merged
merged 23 commits into from
Dec 10, 2024

Conversation

hallettj
Copy link
Collaborator

@hallettj hallettj commented Dec 5, 2024

Recreates the supergraph in fixtures/hasura/ using ddn cli v2.15.0 with as little hand-editing of metadata as possible. This makes it much easier to continue updating metadata using the cli.

This PR mainly affects the integration test and local development testing setup. But since I needed to update the GraphQL Engine version used in integration tests I updated flake inputs. That leads to updating the openssl version. And since all of that leads to rebuilding stuff anyway I also updated the Rust toolchain to v1.83.0.

An issue that came up is that the hack I had tested to filter by array fields does not seem to work anymore. It looks like this is because of a change in the engine - the relevant test fails with the previous metadata fixture with the latest engine version. I've disabled the test. This is the test query:

query {
  movies(where: { cast: { _eq: "Albert Austin" } }) {
    title
    cast
  }
}

Note that cast is an array of strings. It looks like we may need to wait for ndc-spec v0.2 to be able to do this properly.

The changes here include a lot of automatically-generated configuration in fixtures/hasura/ so it's a big set of changes.

@hallettj hallettj self-assigned this Dec 5, 2024
);
Ok(())
}
// This doesn't seem to work anymore in the latest engine version
Copy link
Contributor

Choose a reason for hiding this comment

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

This can be re-enabled if you put the CompatibilityConfig date back I believe?

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 tried setting CompatibilityConfig to an earlier date, and it didn't help so I'm removing this test. This functionality isn't supported until the next ndc-spec version anyway.

@@ -10,9 +10,7 @@
"fields": {
"Name": {
"type": {
"nullable": {
Copy link
Contributor

Choose a reason for hiding this comment

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

I am assuming this is expected?

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 that's nothing to worry about

@hallettj hallettj merged commit 2d941a5 into main Dec 10, 2024
1 check passed
@hallettj hallettj deleted the jesse/recreate-supergraph-fixture branch December 10, 2024 22:32
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