mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 17:31:56 +03:00
3dc725dce6
9 Commits
Author | SHA1 | Message | Date | |
---|---|---|---|---|
paritosh-08
|
3dc725dce6 |
remove accidentally duplicated files (#378)
Remove accidentally duplicated files from #349 V3_GIT_ORIGIN_REV_ID: 40ff3f142cd44915d3f6d5bea3cdc99d78f90e71 |
||
Anon Ray
|
e4b1f3166c |
fix: remote joins bug with nested selections (#371)
## Description This PR fixes a bug when remote joins is used within nested selections. The bug is described in #318 Closes: https://hasurahq.atlassian.net/browse/V3ENGINE-20 The fix is to remove the replacement tokens data type. And instead use each `Argument` as the key to lookup in RHS response and join with LHS response. <!-- Questions to consider answering: 1. What user-facing changes are being made? 2. What are issues related to this PR? (Consider adding `(close #<issue-no>)` to the PR title) 3. What is the conceptual design behind this PR? 4. How can this PR be tested/verified? 5. Does the PR have limitations? 6. Does the PR introduce breaking changes? --> ## Changelog - Add a changelog entry (in the "Changelog entry" section below) if the changes in this PR have any user-facing impact. See [changelog guide](https://github.com/hasura/graphql-engine-mono/wiki/Changelog-Guide). - If no changelog is required ignore/remove this section and add a `no-changelog-required` label to the PR. ### Product _(Select all products this will be available in)_ - [x] community-edition - [x] cloud <!-- product : end : DO NOT REMOVE --> ### Type <!-- See changelog structure: https://github.com/hasura/graphql-engine-mono/wiki/Changelog-Guide#structure-of-our-changelog --> _(Select only one. In case of multiple, choose the most appropriate)_ - [ ] highlight - [ ] enhancement - [x] bugfix - [ ] behaviour-change - [ ] performance-enhancement - [ ] security-fix <!-- type : end : DO NOT REMOVE --> ### Changelog entry <!-- - Add a user understandable changelog entry - Include all details needed to understand the change. Try including links to docs or issues if relevant - For Highlights start with a H4 heading (#### <entry title>) - Get the changelog entry reviewed by your team --> Fix bug when remote joins are used within nested selections <!-- changelog-entry : end : DO NOT REMOVE --> <!-- changelog : end : DO NOT REMOVE --> --------- Co-authored-by: Gil Mizrahi <gil@hasura.io> V3_GIT_ORIGIN_REV_ID: 3c0648f5fb21eb4f1d6cc004db2f3ee61a731c38 |
||
dependabot[bot]
|
92fc015fac |
Bump serde_with from 2.3.3 to 3.7.0 (#367)
Bumps [serde_with](https://github.com/jonasbb/serde_with) from 2.3.3 to 3.7.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/jonasbb/serde_with/releases">serde_with's releases</a>.</em></p> <blockquote> <h2>serde_with v3.7.0</h2> <h3>Added</h3> <ul> <li>Implement <code>JsonSchemaAs</code> for <code>EnumMap</code> by <a href="https://github.com/swlynch99"><code>@swlynch99</code></a> (<a href="https://redirect.github.com/jonasbb/serde_with/issues/697">#697</a>)</li> <li>Implement <code>JsonSchemaAs</code> for <code>IfIsHumanReadable</code> by <a href="https://github.com/swlynch99"><code>@swlynch99</code></a> (<a href="https://redirect.github.com/jonasbb/serde_with/issues/717">#717</a>)</li> <li>Implement <code>JsonSchemaAs</code> for <code>KeyValueMap</code> by <a href="https://github.com/swlynch99"><code>@swlynch99</code></a> (<a href="https://redirect.github.com/jonasbb/serde_with/issues/713">#713</a>)</li> <li>Implement <code>JsonSchemaAs</code> for <code>OneOrMany</code> by <a href="https://github.com/swlynch99"><code>@swlynch99</code></a> (<a href="https://redirect.github.com/jonasbb/serde_with/issues/719">#719</a>)</li> </ul> <h3>Fixed</h3> <ul> <li>Detect conflicting <code>schema_with</code> attributes on fields with <code>schemars</code> annotations by <a href="https://github.com/swlynch99"><code>@swlynch99</code></a> (<a href="https://redirect.github.com/jonasbb/serde_with/issues/715">#715</a>) This extends the existing avoidance mechanism to a new variant fixing <a href="https://redirect.github.com/jonasbb/serde_with/issues/712">#712</a>.</li> </ul> <h2>serde_with v3.6.1</h2> <h3>Changed</h3> <ul> <li>Eliminate dependency on serde's "derive" feature by <a href="https://github.com/dtolnay"><code>@dtolnay</code></a> (<a href="https://redirect.github.com/jonasbb/serde_with/issues/694">#694</a>) This allows parallel compilation of <code>serde</code> and <code>serde_derive</code> which can speed up the wallclock time. It requires that downstream crates do not use the "derive" feature either.</li> </ul> <h2>serde_with v3.6.0</h2> <h3>Added</h3> <ul> <li>Add <code>IfIsHumanReadable</code> for conditional implementation by <a href="https://github.com/irriden"><code>@irriden</code></a> (<a href="https://redirect.github.com/jonasbb/serde_with/issues/690">#690</a>) Used to specify different transformations for text-based and binary formats.</li> <li>Add more <code>JsonSchemaAs</code> impls for all <code>Duration*</code> and <code>Timestamp*</code> adaptors by <a href="https://github.com/swlynch99"><code>@swlynch99</code></a> (<a href="https://redirect.github.com/jonasbb/serde_with/issues/685">#685</a>)</li> </ul> <h3>Changed</h3> <ul> <li>Bump MSRV to 1.65, since that is required for the <code>regex</code> dependency.</li> </ul> <h2>serde_with v3.5.1</h2> <h3>Fixed</h3> <ul> <li>The <code>serde_as</code> macro now better detects existing <code>schemars</code> attributes on fields and incorporates them by <a href="https://github.com/swlynch99"><code>@swlynch99</code></a> (<a href="https://redirect.github.com/jonasbb/serde_with/issues/682">#682</a>) This avoids errors on existing <code>#[schemars(with = ...)]</code> annotations.</li> </ul> <h2>serde_with v3.5.0</h2> <h3>Added</h3> <ul> <li>Support for <code>schemars</code> integration added by <a href="https://github.com/swlynch99"><code>@swlynch99</code></a> (<a href="https://redirect.github.com/jonasbb/serde_with/issues/666">#666</a>) The support uses a new <code>Schema</code> top-level item which implements <code>JsonSchema</code> The <code>serde_as</code> macro can now detect <code>schemars</code> usage and emits matching annotations for all fields with <code>serde_as</code> attribute. Many types of this crate come already with support for the <code>schemars</code>, but support is not complete and will be extended over time.</li> </ul> <h2>serde_with v3.4.0</h2> <ul> <li> <p>Lower minimum required serde version to 1.0.152 (<a href="https://redirect.github.com/jonasbb/serde_with/issues/653">#653</a>) Thanks to <a href="https://github.com/banool"><code>@banool</code></a> for submitting the PR.</p> <p>This allows people that have a problem with 1.0.153 to still use <code>serde_with</code>.</p> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
||
Rakesh Emmadi
|
ce1d0d23e3 |
Deny unknown fields while deserializing Deprecated (#374)
Add `serde(deny_unknown_fields)` attribute for `Deprecated` struct. In v3-metadata-build-service, there's a test to ensure no arbitrary additional properties exists for any schema definition except `JWTClaimsMap` struct. It actually caught the missing `deny_unknown_fields` attribute for `Deprecated` struct. This PR also includes the same test to catch such misses in the future. V3_GIT_ORIGIN_REV_ID: 2c0a9d2efcd76946885f2e54a364a388e80c283b |
||
dependabot[bot]
|
596a5db1a0 |
Bump bson from 2.7.0 to 2.9.0 (#368)
Bumps [bson](https://github.com/mongodb/bson-rust) from 2.7.0 to 2.9.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/mongodb/bson-rust/releases">bson's releases</a>.</em></p> <blockquote> <h2>v2.9.0</h2> <p>The MongoDB Rust driver team is pleased to announce the v2.9.0 release of the <code>bson</code> crate.</p> <h2>Highlighted Changes</h2> <p>This release adds several externally contributed improvements!</p> <ul> <li>A new <code>RawIter</code> type that iterates over elements in a document without deserializing them,</li> <li>An improvement to the <code>doc</code> and <code>bson</code> macros (and their <code>raw</code> counterparts) that allows using types that implement <code>Into<Bson></code> or <code>Into<RawBson></code>,</li> <li>An impl of <code>From<&mut T></code> for <code>Bson</code> for types that implement <code>Into<Bson></code>,</li> <li>A smaller dependency tree thanks to updating the indexmap crate,</li> <li>And a fix for the <code>serde_with</code> 3.x support for the <code>Uuid</code> type.</li> </ul> <h2>Full Release Notes</h2> <h2>New Features</h2> <ul> <li>RUST-1815 provide lazy iterator implementation (thanks <a href="https://github.com/tychoish"><code>@tychoish</code></a>!)</li> <li>RUST-1716 Add BSON Binary Data subtype Sensitive (<a href="https://redirect.github.com/mongodb/bson-rust/issues/454">#454</a>)</li> </ul> <h2>Improvements</h2> <ul> <li>RUST-1822 Allow using the {,raw}{bson,doc} with types implementing Into<!-- raw HTML omitted --> (<a href="https://redirect.github.com/mongodb/bson-rust/issues/450">#450</a>) (thanks <a href="https://github.com/tyilo"><code>@tyilo</code></a>!)</li> <li>RUST-1825 Implement From<!-- raw HTML omitted --> for Bson (<a href="https://redirect.github.com/mongodb/bson-rust/issues/452">#452</a>) (thanks <a href="https://github.com/tyilo"><code>@tyilo</code></a>!)</li> <li>RUST-1814 minor: bump indexmap to 2.1.0 (<a href="https://redirect.github.com/mongodb/bson-rust/issues/448">#448</a>) (thanks <a href="https://github.com/froydnj"><code>@froydnj</code></a>!)</li> </ul> <h2>Bugfixes</h2> <ul> <li>RUST-1828 Fix feature name for serde_with Uuid implementation (<a href="https://redirect.github.com/mongodb/bson-rust/issues/453">#453</a>) (thanks <a href="https://github.com/jonasbb"><code>@jonasbb</code></a>!)</li> </ul> <h2>v2.8.1</h2> <p>The MongoDB Rust driver team is pleased to announce the v2.8.1 release of the <code>bson</code> crate.</p> <h2>Highlighted Changes</h2> <p>This release fixes compilation for the <code>wasm32-wasi</code> target, which broke in the 2.8.0 release.</p> <h2>Full Release Notes</h2> <h2>Bugfixes</h2> <ul> <li>Fix compilation on wasm32-wasi target <a href="https://redirect.github.com/mongodb/bson-rust/issues/445">#445</a> (thanks <a href="https://github.com/tyranron"><code>@tyranron</code></a>!)</li> </ul> <h2>v2.8.0</h2> <p>The MongoDB Rust driver team is pleased to announce the v2.8.0 release of the <code>bson</code> crate.</p> <h2>Highlighted Changes</h2> <p>This release adds optimizations to the <code>serde</code> integration that show up to 50% deserialization speed improvement in our benchmarks, as well as a variety of user-submitted fixes.</p> <h2>Full Release Notes</h2> <h2>Improvements</h2> <ul> <li>RUST-1132 Implement DeserializeSeed for owned and borrowed raw documents (<a href="https://redirect.github.com/mongodb/bson-rust/issues/433">#433</a>)</li> <li>RUST-1780 Bump MSRV to 1.61.0, upgrade ahash to 0.8.5 in <code>Cargo.lock.msrv</code> (<a href="https://redirect.github.com/mongodb/bson-rust/issues/436">#436</a>) (thanks <a href="https://github.com/stIncMale"><code>@stIncMale</code></a>!)</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
||
dependabot[bot]
|
2898a0dbe6 |
Bump openssl from 0.10.60 to 0.10.64 (#370)
Bumps [openssl](https://github.com/sfackler/rust-openssl) from 0.10.60 to 0.10.64. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/sfackler/rust-openssl/releases">openssl's releases</a>.</em></p> <blockquote> <h2>openssl-v0.10.64</h2> <h2>What's Changed</h2> <ul> <li>Make _STACK opaque for LibreSSL >= 3.9.0 by <a href="https://github.com/botovq"><code>@botovq</code></a> in <a href="https://redirect.github.com/sfackler/rust-openssl/pull/2153">sfackler/rust-openssl#2153</a></li> <li>enable x509 verify and groups list for boringssl by <a href="https://github.com/zh-jq"><code>@zh-jq</code></a> in <a href="https://redirect.github.com/sfackler/rust-openssl/pull/2155">sfackler/rust-openssl#2155</a></li> <li>Cleanup some not-required Path::new invocations by <a href="https://github.com/alex"><code>@alex</code></a> in <a href="https://redirect.github.com/sfackler/rust-openssl/pull/2158">sfackler/rust-openssl#2158</a></li> <li>fixed a clippy (nightly) warning by <a href="https://github.com/alex"><code>@alex</code></a> in <a href="https://redirect.github.com/sfackler/rust-openssl/pull/2161">sfackler/rust-openssl#2161</a></li> <li>Bump actions versions by <a href="https://github.com/alex"><code>@alex</code></a> in <a href="https://redirect.github.com/sfackler/rust-openssl/pull/2162">sfackler/rust-openssl#2162</a></li> <li>Add support for setting the nonce type and digest on a PKEY_CTX by <a href="https://github.com/facutuesca"><code>@facutuesca</code></a> in <a href="https://redirect.github.com/sfackler/rust-openssl/pull/2144">sfackler/rust-openssl#2144</a></li> <li>rebuild openssl-sys if the underlying openssl has changed by <a href="https://github.com/reaperhulk"><code>@reaperhulk</code></a> in <a href="https://redirect.github.com/sfackler/rust-openssl/pull/2157">sfackler/rust-openssl#2157</a></li> <li>Added binding for EVP_default_properties_enable_fips by <a href="https://github.com/alex"><code>@alex</code></a> in <a href="https://redirect.github.com/sfackler/rust-openssl/pull/2168">sfackler/rust-openssl#2168</a></li> <li>LibreSSL 3.9: fix CRYPTO_malloc/free signatures by <a href="https://github.com/botovq"><code>@botovq</code></a> in <a href="https://redirect.github.com/sfackler/rust-openssl/pull/2170">sfackler/rust-openssl#2170</a></li> <li>Expose alias on X509 structs by <a href="https://github.com/alex"><code>@alex</code></a> in <a href="https://redirect.github.com/sfackler/rust-openssl/pull/2167">sfackler/rust-openssl#2167</a></li> <li>bump openssl and openssl-sys + changelogs by <a href="https://github.com/reaperhulk"><code>@reaperhulk</code></a> in <a href="https://redirect.github.com/sfackler/rust-openssl/pull/2175">sfackler/rust-openssl#2175</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/sfackler/rust-openssl/compare/openssl-v0.10.63...openssl-v0.10.64">https://github.com/sfackler/rust-openssl/compare/openssl-v0.10.63...openssl-v0.10.64</a></p> <h2>openssl-v0.10.63</h2> <h2>What's Changed</h2> <ul> <li>Allow passing a passphrase callback when loading a public key by <a href="https://github.com/alex"><code>@alex</code></a> in <a href="https://redirect.github.com/sfackler/rust-openssl/pull/2135">sfackler/rust-openssl#2135</a></li> <li>Expose several additional ciphers for symmetry with symm by <a href="https://github.com/alex"><code>@alex</code></a> in <a href="https://redirect.github.com/sfackler/rust-openssl/pull/2140">sfackler/rust-openssl#2140</a></li> <li>brew: add openssl@3.0 (for 3.0.x LTS releases) by <a href="https://github.com/chenrui333"><code>@chenrui333</code></a> in <a href="https://redirect.github.com/sfackler/rust-openssl/pull/2141">sfackler/rust-openssl#2141</a></li> <li>Add PKey::from_dhx by <a href="https://github.com/alex"><code>@alex</code></a> in <a href="https://redirect.github.com/sfackler/rust-openssl/pull/2142">sfackler/rust-openssl#2142</a></li> <li>Make X509_PURPOSE opaque for LibreSSL >= 3.9.0 by <a href="https://github.com/botovq"><code>@botovq</code></a> in <a href="https://redirect.github.com/sfackler/rust-openssl/pull/2145">sfackler/rust-openssl#2145</a></li> <li>PEM parsing: check last error instead of first by <a href="https://github.com/botovq"><code>@botovq</code></a> in <a href="https://redirect.github.com/sfackler/rust-openssl/pull/2148">sfackler/rust-openssl#2148</a></li> <li>Expose brainpool NIDs on libressl by <a href="https://github.com/alex"><code>@alex</code></a> in <a href="https://redirect.github.com/sfackler/rust-openssl/pull/2150">sfackler/rust-openssl#2150</a></li> <li>Add two methods to the PKCS7 API by <a href="https://github.com/facutuesca"><code>@facutuesca</code></a> in <a href="https://redirect.github.com/sfackler/rust-openssl/pull/2111">sfackler/rust-openssl#2111</a></li> <li>add more boringssl methods by <a href="https://github.com/zh-jq"><code>@zh-jq</code></a> in <a href="https://redirect.github.com/sfackler/rust-openssl/pull/2138">sfackler/rust-openssl#2138</a></li> <li>Release openssl v0.10.63 and openssl-sys v0.9.99 by <a href="https://github.com/alex"><code>@alex</code></a> in <a href="https://redirect.github.com/sfackler/rust-openssl/pull/2152">sfackler/rust-openssl#2152</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/sfackler/rust-openssl/compare/openssl-v0.10.62...openssl-v0.10.63">https://github.com/sfackler/rust-openssl/compare/openssl-v0.10.62...openssl-v0.10.63</a></p> <h2>openssl-v0.10.62</h2> <h2>What's Changed</h2> <ul> <li>fixes <a href="https://redirect.github.com/sfackler/rust-openssl/issues/2119">#2119</a> -- use ErrorStack abstraction in X.509 error handling by <a href="https://github.com/alex"><code>@alex</code></a> in <a href="https://redirect.github.com/sfackler/rust-openssl/pull/2120">sfackler/rust-openssl#2120</a></li> <li>Fix building with latest BoringSSL by <a href="https://github.com/alex"><code>@alex</code></a> in <a href="https://redirect.github.com/sfackler/rust-openssl/pull/2121">sfackler/rust-openssl#2121</a></li> <li>Fix tests on macOS by <a href="https://github.com/alex"><code>@alex</code></a> in <a href="https://redirect.github.com/sfackler/rust-openssl/pull/2123">sfackler/rust-openssl#2123</a></li> <li>Upcoming API changes in LibreSSL 3.9 by <a href="https://github.com/botovq"><code>@botovq</code></a> in <a href="https://redirect.github.com/sfackler/rust-openssl/pull/2124">sfackler/rust-openssl#2124</a></li> <li>Add <code>rand_priv_bytes</code> by <a href="https://github.com/overvenus"><code>@overvenus</code></a> in <a href="https://redirect.github.com/sfackler/rust-openssl/pull/2126">sfackler/rust-openssl#2126</a></li> <li>Add nid constant for curve brainpoolP320r1 by <a href="https://github.com/nicklaswj"><code>@nicklaswj</code></a> in <a href="https://redirect.github.com/sfackler/rust-openssl/pull/2129">sfackler/rust-openssl#2129</a></li> <li>Release openssl v0.10.62 and openssl-sys v0.9.98 by <a href="https://github.com/alex"><code>@alex</code></a> in <a href="https://redirect.github.com/sfackler/rust-openssl/pull/2133">sfackler/rust-openssl#2133</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/overvenus"><code>@overvenus</code></a> made their first contribution in <a href="https://redirect.github.com/sfackler/rust-openssl/pull/2126">sfackler/rust-openssl#2126</a></li> <li><a href="https://github.com/nicklaswj"><code>@nicklaswj</code></a> made their first contribution in <a href="https://redirect.github.com/sfackler/rust-openssl/pull/2129">sfackler/rust-openssl#2129</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/sfackler/rust-openssl/compare/openssl-v0.10.61...openssl-v0.10.62">https://github.com/sfackler/rust-openssl/compare/openssl-v0.10.61...openssl-v0.10.62</a></p> <h2>openssl v0.10.61</h2> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
||
Rakesh Emmadi
|
1895e87e84 |
add deprecated config for opendd metadata (#372)
Add an optional `deprecated` key to the following OpenDD metadata - Object type field definitions - Model select unique and select many graphql API - Command GraphQL API - Relationship The `deprecated` value is an object with an optional `reason` key. ``` "deprecated": { "reason": "Optional reason" } ``` Produce `@deprecated` against GraphQL fields generated from aforementioned OpenDD metadata using `deprecated` config. V3_GIT_ORIGIN_REV_ID: b26fe8a8b62de24d04820578b8201d3ff8585375 |
||
Daniel Harvey
|
0b69370cc9 |
add support for argument presets in models (#348)
<!-- Thank you for submitting this PR! :) --> ## Description Following on https://github.com/hasura/v3-engine/pull/340 (and stacked on top of it, as such) - this adds preset arguments for models, allowing hard coded values for different roles. ```yaml kind: ModelPermissions version: v1 definition: modelName: ActorsByMovie permissions: - role: admin select: filter: argumentPresets: - argument: movie_id value: literal: 3 ``` <!-- Questions to consider answering: 1. What user-facing changes are being made? 2. What are issues related to this PR? (Consider adding `(close #<issue-no>)` to the PR title) 3. What is the conceptual design behind this PR? 4. How can this PR be tested/verified? 5. Does the PR have limitations? 6. Does the PR introduce breaking changes? --> ## Changelog - Add a changelog entry (in the "Changelog entry" section below) if the changes in this PR have any user-facing impact. See [changelog guide](https://github.com/hasura/graphql-engine-mono/wiki/Changelog-Guide). - If no changelog is required ignore/remove this section and add a `no-changelog-required` label to the PR. ### Product _(Select all products this will be available in)_ - [X] community-edition - [X] cloud <!-- product : end : DO NOT REMOVE --> ### Type <!-- See changelog structure: https://github.com/hasura/graphql-engine-mono/wiki/Changelog-Guide#structure-of-our-changelog --> _(Select only one. In case of multiple, choose the most appropriate)_ - [ ] highlight - [X] enhancement - [ ] bugfix - [ ] behaviour-change - [ ] performance-enhancement - [ ] security-fix <!-- type : end : DO NOT REMOVE --> ### Changelog entry <!-- - Add a user understandable changelog entry - Include all details needed to understand the change. Try including links to docs or issues if relevant - For Highlights start with a H4 heading (#### <entry title>) - Get the changelog entry reviewed by your team --> Allow setting preset values for arguments on models, based on user's role. <!-- changelog-entry : end : DO NOT REMOVE --> <!-- changelog : end : DO NOT REMOVE --> V3_GIT_ORIGIN_REV_ID: 7dd23bf78e92980384cb2b2e109305cdb42d1c0b |
||
Daniel Harvey
|
bdd5d06437 |
Move all crates into a folder (#355)
<!-- Thank you for submitting this PR! :) --> ## Description This moves all the crates into a `/crates` folder. Everything appears to just work, thanks Cargo! V3_GIT_ORIGIN_REV_ID: 8e3ef287b1a46cabdb4d919a50e813ab2cddf8b1 |