graphql-engine/v3/crates/metadata-resolve/tests/failing
Daniel Chambers a72d45d165 Add support for multiple versions of ndc-spec to Open DD and metadata-resolve (#781)
This PR introduces support for multiple versions of the ndc-spec by
adding a new `VersionedSchemaAndCapabilities` enum variant under the
`DataConnectorLink` in OpenDD. This allows the capture of both ndc
v0.1.* and v0.2.* schema and capabilities.

This is achieved by referencing the `ndc-models` crate twice, once for
`v0.1.4` and once for the first commit after `v0.1.4`. That commit was
chosen to avoid actual v0.2.0 breaking changes for now, while we lay in
this multiple version support plumbing. Future PRs will use a newer
commit and adopt the breaking changes where necessary. The
`VersionedSchemaAndCapabilities::V02` variant uses the the v0.2
reference of `ndc-models`.

Then, during metadata resolve, when we resolve the
`DataConnectorContext` from `DataConnectorLink`, we perform a migration
of v0.1 types to v0.2 types and store and use the v0.2 types during
metadata resolve. This migration is performed in the new module
`ndc_migration`. We also record the `NdcVersion` (either `V01` or `V02`)
in the `DataConnectorLink`. The `execute` crate will need to use this to
determine which version to send to the connector at runtime (to be
implemented in a future PR).

The new changes to OpenDD are hidden from the JSON Schema via a new
`UnstableFeatures` flag, and the use of the new variant is gated behind
it in metadata resolve, since we don't yet support it upstream in the
`execute` crate.

V3_GIT_ORIGIN_REV_ID: d6d8a768ea3537c0b5e620799e94d3dd1e529526
2024-06-28 11:57:41 +00:00
..
aggregate_expression_in_relationship Take snapshots of passing and failing metadata resolution. (#763) 2024-06-26 08:15:29 +00:00
aggregate_expressions Aggregate relationships GraphQL schema and execution (#756) 2024-06-26 09:10:33 +00:00
boolean_expression Validate boolean expression types when used as arguments (#777) 2024-06-27 18:44:40 +00:00
command_no_ndc_function Take snapshots of passing and failing metadata resolution. (#763) 2024-06-26 08:15:29 +00:00
data_connector_link/ndc_v02_not_supported Add support for multiple versions of ndc-spec to Open DD and metadata-resolve (#781) 2024-06-28 11:57:41 +00:00
missing_subgraph Support for partial supergraphs in metadata resolution. (#772) 2024-06-27 14:17:31 +00:00
simple Take snapshots of passing and failing metadata resolution. (#763) 2024-06-26 08:15:29 +00:00
subgraph_invalid_name Take snapshots of passing and failing metadata resolution. (#763) 2024-06-26 08:15:29 +00:00
supergraph_too_many_graphql_configs Take snapshots of passing and failing metadata resolution. (#763) 2024-06-26 08:15:29 +00:00