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

Upgrade to ndc-spec v0.1.1. #1

Merged
merged 2 commits into from
Mar 26, 2024
Merged

Conversation

SamirTalwar
Copy link
Contributor

This includes:

  • type representations in the models
  • upgrading the OpenTelemetry SDK
  • adding a feature switch to support rustls instead of native-tls
  • a lot of enhancements to ndc-test

This includes:

- type representations in the models
- upgrading the OpenTelemetry SDK
- adding a feature switch to support `rustls` instead of `native-tls`
- a lot of enhancements to ndc-test
@@ -228,8 +228,11 @@ where
<Setup::Connector as Connector>::Configuration: Clone,
<Setup::Connector as Connector>::State: Clone,
{
init_tracing(&serve_command.service_name, &serve_command.otlp_endpoint)
.expect("Unable to initialize tracing");
init_tracing(
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the rationale for prefering to .as_deref() over & ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It transforms Option<String> to Option<&str>.

ndc-client = { git = "http://github.com/hasura/ndc-spec.git", tag = "v0.1.1" }
ndc-test = { git = "http://github.com/hasura/ndc-spec.git", tag = "v0.1.1", optional = true }

async-trait = "0.1.79"
Copy link
Contributor

Choose a reason for hiding this comment

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

How do these version upgrades come about? Is it just cargo update or somesuch?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

cargo upgrade. I was upgrading opentelemetry and friends to match ndc-client and figured I might as well do the rest (except for upgrades to the HTTP stack, which are incompatible).

I thought `cargo upgrade` would do this but apparently I needed a `cargo
update`.
@SamirTalwar SamirTalwar added this pull request to the merge queue Mar 26, 2024
Merged via the queue into main with commit 7b56fac Mar 26, 2024
8 checks passed
@SamirTalwar SamirTalwar deleted the samirtalwar/upgrade-ndc-spec branch March 26, 2024 10:42
SamirTalwar added a commit to hasura/ndc-postgres that referenced this pull request Mar 26, 2024
See hasura/ndc-sdk-rs#1 for details.

I discovered we can specify workspace dependencies, which means the
versions only need to go in one place. I am experimenting with this
Cargo feature in this changeset. If we like it, we may want to use it
for all dependencies.
github-merge-queue bot pushed a commit to hasura/ndc-postgres that referenced this pull request Mar 27, 2024
### What

This includes:

- type representations in the models
- upgrading the OpenTelemetry SDK
- adding a feature switch to support `rustls` instead of `native-tls`
- a lot of enhancements to ndc-test

ndc-sdk was upgraded in hasura/ndc-sdk-rs#1.

We do not actually specify type representations in this changeset. We
will add these in a follow-up change.

### How

I discovered we can specify workspace dependencies, which means the
versions only need to go in one place. I am experimenting with this
Cargo feature in this changeset. If we like it, we may want to use it
for all dependencies.
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