graphql-engine/v3/crates
Daniel Chambers f84c2f3695 Validate that the capabilities version matches the DataConnectorLink schema version (#880)
This PR adds validation code to `metadata_resolve` that prevents someone
from putting a schema/capabilities from the wrong NDC version into the
DataConnectorLink while specifying a different schema version in the
DataConnectorLink. For example:

```
kind: DataConnectorLink
version: v1
definition:
  name: data_connector
  schema:
    version: v0.2
    schema: {}
    capabilities:
      version: 0.1.5 # Not allowed for version v0.2!
      capabilities: {}
```

This PR has two commits. One is a refactor where we rearrange the
DataConnectorError types so that the name of the data connector is
captured centrally in `NamedDataConnectorError`, so that it doesn't have
to be passed around and included in every error manually. The other is
the validation changes to `metadata_resolve`.

Completes APIPG-705

V3_GIT_ORIGIN_REV_ID: baed571f36f4cbed824ca546128f5df360d5b298
2024-07-25 14:31:28 +00:00
..
auth Enable baggage propagation (#868) 2024-07-23 11:44:54 +00:00
custom-connector Make tests run over both the ndc v0.1.x and v0.2.x custom connectors (#879) 2024-07-25 13:32:01 +00:00
engine Make tests run over both the ndc v0.1.x and v0.2.x custom connectors (#879) 2024-07-25 13:32:01 +00:00
execute human-readable NDC relationship name in NDC IR (#881) 2024-07-25 08:10:58 +00:00
lang-graphql Explicitly import thiserror::Error in place (#827) 2024-07-11 15:18:27 +00:00
metadata-resolve Validate that the capabilities version matches the DataConnectorLink schema version (#880) 2024-07-25 14:31:28 +00:00
metadata-schema-generator Move all dependency versions into the workspace file. (#734) 2024-06-20 12:25:55 +00:00
open-dds Validate that the capabilities version matches the DataConnectorLink schema version (#880) 2024-07-25 14:31:28 +00:00
plugins/pre-execution-plugin Explicitly import thiserror::Error in place (#827) 2024-07-11 15:18:27 +00:00
query-usage-analytics Reimplement most OpenDD newtypes using SmolStr and a macro (#797) 2024-07-05 10:16:33 +00:00
schema Move "test" job to Github Actions (#872) 2024-07-24 13:41:40 +00:00
sql sql crate now executes via plan and decouples from NDC types (#873) 2024-07-24 11:37:44 +00:00
utils Pass TraceContextResponsePropagator to set_text_map_propagator (#884) 2024-07-25 11:32:06 +00:00