-
Notifications
You must be signed in to change notification settings - Fork 272
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
release: v1.57.0 #6169
base: main
Are you sure you want to change the base?
release: v1.57.0 #6169
Conversation
This reverts PR #6048 now that rust-lang/rust#130769 is fixed.
Co-authored-by: Renée <[email protected]>
Co-authored-by: Andrew McGivery <[email protected]>
Co-authored-by: Renée <[email protected]>
Co-authored-by: Jesse Rosenberger <[email protected]>
…etween Rust QP and JS QP (#6090)
Co-authored-by: Renée <[email protected]>
…on the same selection (#6120)
The following is now done in `QueryAnalysisLayer` instead of in the `BridgeQueryPlanner` service: * Finding the relevant operation in a GraphQL document based on `operationName`. Now `ParsedDocument` in context contains a reference to the parsed `apollo_compiler::executable::Operation`. * Scan that operation’s root fields to find which are present: root `__typename`, schema intropsection, and "normal" non-meta fields. This is a preliminary step to moving introspection out of `BridgeQueryPlanner`. As a side-effect observable to clients, the exact response for some error cases like an empty document changes slightly as the error no longer comes from JavaScript code. Also drive-by refactor: change `spec::Query` to contain a single `Operation` instead of a `Vec<Operation>`. This removes conditionals and the need to pass `operationName` around in a lot of places, notably in execution code.
Add an Environment variable to the container that's deployed so that we can easily scan if customers are deploying using the official Helm Chart or some other way.
…e same selection (#6137)
…e __typename selections (#6141) - updated sibling typename optimization to only fold a plain __typename without alias/directives. - also, fixed __typename ordering in fetch operations to put the plain __typename ahead of others.
Signed-off-by: Benjamin <[email protected]> Co-authored-by: Andrew McGivery <[email protected]>
Schema introspection now runs natively without involving JavaScript code. We have high confidence that the two implementations return matching responses based on differential testing fuzzing arbitrary queries against a large schema, and testing a corpus of customer schemas against a comprehensive query. In Router YAML configuration: * The `experimental_introspection_mode` key is removed, `new` is now the only behavior * The `supergraph.query_planning.legacy_introspection_caching` key is removed, the behavior is now similar to what was `false`: introspection responses are not part of the query plan cache but instead in a separate, small, in-memory only cache. Migrations ensure that existing configuration files will keep working.
Co-authored-by: Simon Sapin <[email protected]> Co-authored-by: Jesse Rosenberger <[email protected]>
Updates to latest router-bridge and federation version. This federation version: - Fixes a query planning bug where operation variables for a subgraph query wouldn't match what's used in that query. - Fixes a query planning bug where directives applied to `__typename` may be omitted in the subgraph query. - Fixes a query planning inefficiency where some redundant subgraph queries were not removed. - Fixes a query planning inefficiency where some redundant inline fragments in `@key`/`@requires` selection sets were not optimized away. - Fixes a query planning inefficiency where unnecessary subgraph jumps were being added when using `@context`/`@fromContext`.
Co-authored-by: Lucas Leadbetter <[email protected]>
…dd schema id in context (#6160) Signed-off-by: Benjamin <[email protected]>
✅ Docs Preview ReadyNo new or changed pages found. |
CI performance tests
|
request_context: "apollo::supergraph_schema_id" # The key containing the supergraph schema id | ||
``` | ||
|
||
It can be used in any services at any stages. This example is using selectors on event's attributes but it can also be done on spans and instruments. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It can be used in any services at any stages. This example is using selectors on event's attributes but it can also be done on spans and instruments. | |
You can use the selector in any service at any stage. While this example applies to `events` attributes, the selector can also be used on spans and instruments. |
@@ -0,0 +1,21 @@ | |||
### Add support of router request_context selector and add schema id in context ([PR #6160](https://github.com/apollographql/router/pull/6160)) | |||
|
|||
Added a new selector `request_context` for the router service for telemetry. Now the supergraph schema id is also available through the context so if you want to access or display this schema id at the router service level you can now configure it like this: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a new selector `request_context` for the router service for telemetry. Now the supergraph schema id is also available through the context so if you want to access or display this schema id at the router service level you can now configure it like this: | |
The router supports a new `request_context` selector for telemetry that enables access to the supergraph schema ID. | |
You can configure the context to access the supergraph schema ID at the router service level: |
@@ -0,0 +1,21 @@ | |||
### Add support of router request_context selector and add schema id in context ([PR #6160](https://github.com/apollographql/router/pull/6160)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
### Add support of router request_context selector and add schema id in context ([PR #6160](https://github.com/apollographql/router/pull/6160)) | |
### Support new `request_context` selector for telemetry ([PR #6160](https://github.com/apollographql/router/pull/6160)) |
@@ -0,0 +1,20 @@ | |||
### Support to get/set URI port in Rhai ([Issue #5437](https://github.com/apollographql/router/issues/5437)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
### Support to get/set URI port in Rhai ([Issue #5437](https://github.com/apollographql/router/issues/5437)) | |
### Support reading URI port of request in Rhai ([Issue #5437](https://github.com/apollographql/router/issues/5437)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This still reads a bit funny to me — what about:
### Support to get/set URI port in Rhai ([Issue #5437](https://github.com/apollographql/router/issues/5437)) | |
### Support reading `port` value of request URIs using Rhai ([Issue #5437](https://github.com/apollographql/router/issues/5437)) |
?
@@ -0,0 +1,20 @@ | |||
### Support to get/set URI port in Rhai ([Issue #5437](https://github.com/apollographql/router/issues/5437)) | |||
|
|||
This adds support to read the port from the `request.uri.port`/`request.subgraph.uri.port` functions in Rhai, enabling the ability to update the full URI for subgraph fetches. For example: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This adds support to read the port from the `request.uri.port`/`request.subgraph.uri.port` functions in Rhai, enabling the ability to update the full URI for subgraph fetches. For example: | |
Custom Rhai scripts in the router now support the `request.uri.port` and `request.subgraph.uri.port` functions for reading URI ports. These functions enable you to update the full URI for subgraph fetches. For example: |
* The `experimental_introspection_mode` key is removed, `new` is now the only behavior | ||
* The `supergraph.query_planning.legacy_introspection_caching` key is removed, the behavior is now similar to what was `false`: introspection responses are not part of the query plan cache but instead in a separate, small, in-memory only cache. | ||
|
||
Migrations ensure that existing configuration files will keep working. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SimonSapin does this mean the router supports existing config files with these removed keys automatically? Or do users need to do manual migration steps of removing/updating them?
### Add uri and method properties on router request in Rhai ([PR #6114](https://github.com/apollographql/router/pull/6114)) | ||
|
||
Previously, when trying to access `request.uri` and `request.method` on a Router Request in Rhai, Router would error saying the properties are undefined. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
### Add uri and method properties on router request in Rhai ([PR #6114](https://github.com/apollographql/router/pull/6114)) | |
Previously, when trying to access `request.uri` and `request.method` on a Router Request in Rhai, Router would error saying the properties are undefined. | |
### Support URI and method properties for router request in Rhai ([PR #6114](https://github.com/apollographql/router/pull/6114)) | |
The router now supports accessing `request.uri` and `request.method` properties from custom Rhai scripts. | |
Previously, when trying to access `request.uri` and `request.method` on a router request in Rhai, the router would return error messages stating the properties were undefined. | |
An example Rhai script using these properties: |
|
||
The router now correctly handles the `__typename` field used on operation root types, even when the subgraph's root type has a name that differs from the supergraph's root type. | ||
|
||
For example, in query like this: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For example, in query like this: | |
For example, given a query like this: | |
main
branch of an upcoming release (version number in the title).main
)