Skip to content

Commit e359aed

Browse files
authored
Merge pull request #28 from hasura:update-sdk
Update-sdk
2 parents 5800e39 + 1ca640a commit e359aed

File tree

177 files changed

+4492
-5056
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

177 files changed

+4492
-5056
lines changed

.github/workflows/deploy-stage.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Deploy connector to dockerhub, release cli on github
22
on:
3+
pull_request:
4+
branches:
5+
- main
36
push:
47
branches:
58
- main
@@ -41,7 +44,7 @@ jobs:
4144
uses: docker/build-push-action@v5
4245
with:
4346
context: .
44-
push: true
47+
push: ${{ startsWith(github.ref, 'refs/tags/v') }}
4548
tags: ${{ steps.meta.outputs.tags }}
4649
labels: ${{ steps.meta.outputs.labels }}
4750

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [1.0.3]
11+
12+
- Update SDK version to enable unauthorized access to health endpoint
13+
1014
## [1.0.2]
1115

1216
- Allow `DateTime64` shorthand for `DateTime64(3)`

Cargo.lock

Lines changed: 137 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,10 @@ members = [
66
]
77
resolver = "2"
88

9-
package.version = "1.0.2"
9+
package.version = "1.0.3"
1010
package.edition = "2021"
11+
12+
# insta performs better in release mode
13+
[profile.dev.package]
14+
insta.opt-level = 3
15+
similar.opt-level = 3

crates/common/Cargo.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,18 @@ edition.workspace = true
66
[dependencies]
77
bytes = "1.6.0"
88
peg = "0.8.2"
9+
indexmap = "2.1.0"
10+
ndc-models = { git = "http://github.com/hasura/ndc-spec.git", tag = "v0.1.6" }
911
reqwest = { version = "0.12.3", features = [
1012
"json",
1113
"rustls-tls",
1214
], default-features = false }
1315
schemars = "0.8.16"
1416
serde = { version = "1.0.197", features = ["derive"] }
1517
serde_json = "1.0.114"
18+
strum = { version = "0.26.3", features = ["derive"] }
1619
tracing = "0.1.40"
20+
21+
[dev-dependencies]
22+
insta = { version = "1.40.0", features = ["yaml", "glob", "json"] }
23+
schemars = "0.8.16"

crates/common/src/capabilities.rs

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
use ndc_models::{
2+
Capabilities, CapabilitiesResponse, ExistsCapabilities, LeafCapability, MutationCapabilities,
3+
NestedFieldCapabilities, QueryCapabilities, RelationshipCapabilities, VERSION,
4+
};
5+
6+
pub fn capabilities() -> Capabilities {
7+
Capabilities {
8+
query: QueryCapabilities {
9+
aggregates: Some(LeafCapability {}),
10+
variables: Some(LeafCapability {}),
11+
explain: Some(LeafCapability {}),
12+
nested_fields: NestedFieldCapabilities {
13+
filter_by: None,
14+
order_by: None,
15+
aggregates: None,
16+
},
17+
exists: ExistsCapabilities {
18+
nested_collections: None,
19+
},
20+
},
21+
mutation: MutationCapabilities {
22+
transactional: None,
23+
explain: None,
24+
},
25+
relationships: Some(RelationshipCapabilities {
26+
relation_comparisons: Some(LeafCapability {}),
27+
order_by_aggregate: Some(LeafCapability {}),
28+
}),
29+
}
30+
}
31+
32+
pub fn capabilities_response() -> CapabilitiesResponse {
33+
CapabilitiesResponse {
34+
version: VERSION.into(),
35+
capabilities: capabilities(),
36+
}
37+
}

0 commit comments

Comments
 (0)