instance_id stringlengths 10 65 | repo stringlengths 5 59 | pr_number int64 1 313k | task_type stringclasses 1
value | base_commit stringlengths 40 40 | review_commit stringlengths 40 40 | title stringlengths 2 282 | body stringlengths 7 3k | patch stringlengths 202 204k | n_defects int64 1 72 | n_supported int64 1 65 | n_major int64 0 32 | defects stringlengths 140 18.8k | certifier_count int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
apollographql__apollo-tooling__1618 | apollographql/apollo-tooling | 1,618 | defect | ff02fd093b7fde7d496dbbee99adc68ce5cce6c6 | 0eb71cdf117b2e94cc9964e891986ba72efc21e1 | Fixes #1617: Federation Enum not parsing value 0 | Fixes https://github.com/apollographql/apollo-tooling/issues/1617
Updated buildSchemaFromSDL to handle enums with a value of 0. Previously, when an enum had a value of 0, the name would be used as the enum value.
Added a unit test to ensure 0 is parsed correctly.
TODO:
- [X] Update CHANGELOG.md\* with your ... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index b3f888685d..9cde5a06a6 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -18,7 +18,7 @@
[#1611](https://github.com/apollographql/apollo-tooling/pull/1611) This PR likely warrants a pre-major version bump so that it isn't accidentally upgraded to for dependents using the... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new undefined check should use strict equality (`===`) instead of loose equality (`==`).", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apollographql__apollo-tooling__715 | apollographql/apollo-tooling | 715 | defect | a0a26a10e874550bd2ddb854aacf236976f90297 | 0c321744bd5bd3498a3cb26bd2efef208da561aa | pass directives from schema modules through buildServiceDefinition | Directive definitions were discarded when merging types from modules in `buildServiceSchema`. The fix is nearly trivial, because `Kind.DIRECTIVE_DEFINITION` is a unique case that is neither a schema definition nor a type definition. | diff --git a/packages/apollo-tools/src/__tests__/buildServiceDefinition.test.ts b/packages/apollo-tools/src/__tests__/buildServiceDefinition.test.ts
index 80b822e3a2..ff82278f80 100644
--- a/packages/apollo-tools/src/__tests__/buildServiceDefinition.test.ts
+++ b/packages/apollo-tools/src/__tests__/buildServiceDefiniti... | 4 | 4 | 3 | [{"id": "G0", "claim": "Adding directive definitions to `typeDefinitionsMap` clashes with similarly named type definitions because directives live in their own namespace; the pull request should keep a separate list of `directiveDefinitions` as `buildASTSchema` does.", "category": "correctness", "verdict": "supported",... | null |
apollographql__apollo-tooling__829 | apollographql/apollo-tooling | 829 | defect | c9c0c402b1aa3b4a654f157f6db50791e792dec4 | 08fc56d2cc772972d1b7cef09f1b58136c0eaa71 | VSCode Testing Suite | This PR sets up the testing framework for the VSCode extension 🎉
There's a lot of hacky business in making this work that I'm not excited about. By default, VSCode is prescriptive about Mocha. We chose to explore Jest since that's what we use across the repo, and I found this which was very helpful:
https://github... | diff --git a/.vscode/launch.json b/.vscode/launch.json
index 57be3e72ec..e12ec388d4 100644
--- a/.vscode/launch.json
+++ b/.vscode/launch.json
@@ -21,7 +21,28 @@
"request": "attach",
"protocol": "inspector",
"port": 6009,
- "sourceMaps": true,
- }
+ "sourceMaps": true
+ },
+ {
+ ... | 11 | 8 | 1 | [{"id": "G0", "claim": "The underscore prefix on the private statusBarItem field may be unnecessary given the field is already declared private in TypeScript, and the reviewer questions why the convention was chosen.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", ... | null |
apollographql__apollo-tooling__953 | apollographql/apollo-tooling | 953 | defect | e6db9132b2968c551075b88fd3850099b0bbfd16 | 885b61cfd2b2a6e353d936d645ef5b9d88d294c4 | Support validation parameters for service:check | This PR adds functionality for 3 new flags in the service:check command:
* validationPeriod - the duration (from now) to validate the service against
* queryCountThreshold - minimum number of requests within the requested time window for a query to be considered
* queryCountThresholdPercentage - number of requests... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3b400cbfd0..ea7ceb3623 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,11 @@
## Upcoming
+- `apollo`
+ - Support validation parameters for service:check [#953](https://github.com/apollographql/apollo-tooling/pull/953)
+- `apollo-language-server`
+ - Better e... | 2 | 1 | 0 | [{"id": "G0", "claim": "Use a lighter date library than moment, such as date-fns, for the new moment dependency added for duration parsing.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Move the validateHistoricParams helper out of the service:check comma... | null |
apollographql__federation-jvm__133 | apollographql/federation-jvm | 133 | defect | aa702b0deff90ab967c189672250ee33a0f02660 | 226522fb10c1cea0aa64267345e1085dacd9f81f | feat: cache-control calculation from directives | This change adds support for the @cacheControl directive in the form of a graphql-java instrumentation class, matching the behavior of the apollo-server's built-in cache control plugin:
https://github.com/apollographql/apollo-server/tree/291c17e255122d4733b23177500188d68fac55ce/packages/apollo-server-core/src/plugin... | diff --git a/graphql-java-support/src/main/java/com/apollographql/federation/graphqljava/_Entity.java b/graphql-java-support/src/main/java/com/apollographql/federation/graphqljava/_Entity.java
index cba85232..54453432 100644
--- a/graphql-java-support/src/main/java/com/apollographql/federation/graphqljava/_Entity.java
... | 24 | 16 | 4 | [{"id": "G0", "claim": "The field-hint cache could use the fieldDefinition itself as its key instead of a formatted string, avoiding the parentType argument, which should be unique once the schema is parsed (though strings are certainly safer).", "category": "maintainability", "verdict": "supported", "priority": "P3", ... | null |
apollographql__federation-jvm__144 | apollographql/federation-jvm | 144 | defect | f9445b8bb7f3d35da53eda5a31392110ff6b4e5b | f107a1eb365e2c4b798dcb9f466be715c7bc799b | Add the Fed2 directives | See https://github.com/apollographql/federation-jvm/issues/143
See also https://github.com/apollographql/supergraph-demo-fed2/pull/61 for usage in a real life environment | diff --git a/graphql-java-support/src/main/java/com/apollographql/federation/graphqljava/Federation.java b/graphql-java-support/src/main/java/com/apollographql/federation/graphqljava/Federation.java
index 55d862cf..97a254fb 100644
--- a/graphql-java-support/src/main/java/com/apollographql/federation/graphqljava/Federat... | 4 | 3 | 3 | [{"id": "G0", "claim": "The directive-definition-kind GraphQLDirective constant for @link lacks its url and import arguments and there is no convenience function to create a directive-application-kind GraphQLDirective for @link, so private urlArgument and importArgument helpers similar to fieldsArgument should be creat... | null |
apollographql__federation-jvm__271 | apollographql/federation-jvm | 271 | defect | 9c6ccdd637fa395e77b7936ad69d2e4947ca9973 | e8c5a99c08b8073ad8f35dd515dcdbbccfdf7889 | feat: update graphql-java to 20.0 | Invalid syntax errors were rewritten here, in favor of using i18n
https://github.com/graphql-java/graphql-java/pull/2921/files#diff-88d1b060f1644180e2ae08c4f52af7da36b1d75de50d204f7cc9d4a0e081a90bL31
-- thats why the change in the test to match
https://github.com/graphql-java/graphql-java/pull/2921/files#diff-93... | diff --git a/compatibility/build.gradle.kts b/compatibility/build.gradle.kts
index e146b12f..2345b0ea 100644
--- a/compatibility/build.gradle.kts
+++ b/compatibility/build.gradle.kts
@@ -10,6 +10,7 @@ repositories {
dependencies {
implementation("com.apollographql.federation", "federation-graphql-java-support")... | 1 | 1 | 0 | [{"id": "G0", "claim": "The explicitly declared graphql-java 20.0 dependency in compatibility/build.gradle.kts is unnecessary; instead add `graphql-java.version = 20.0` to gradle.properties to override the Spring-managed version.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "intro... | null |
apollographql__federation-jvm__392 | apollographql/federation-jvm | 392 | defect | 0f9eca82a440b6dcf7ca998f4683150303940486 | c087a47f32721fc2c7856626a19f066f9bd04be1 | feat: add flag to CacheControlInstrumentation to optionally allow max-age of zero | This change adds an optional flag to `CacheControlInstrumentation`, `allowZeroMaxAge`, to allow consumers to configure the behavior such that resolved header can validly resolve a header value of `max-age=0`. | diff --git a/graphql-java-support/src/main/java/com/apollographql/federation/graphqljava/caching/CacheControlInstrumentation.java b/graphql-java-support/src/main/java/com/apollographql/federation/graphqljava/caching/CacheControlInstrumentation.java
index da70e1b9..059e2818 100644
--- a/graphql-java-support/src/main/jav... | 1 | 1 | 1 | [{"id": "G0", "claim": "In CacheControlPolicy.maybeAsString(), the condition should distinguish maxAge being null from being 0, e.g. `if (maxAge == null || (!allowZeroMaxAge && maxAge.equals(0))) { return Optional.empty(); }`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}... | null |
apollographql__federation-jvm__449 | apollographql/federation-jvm | 449 | defect | f7013646f4e0adccb6fd694bc237ae997c86c584 | 053b82757f47d5d04cbe31a3d9267d388a30b1f7 | Upgrade to graphql-java 25.0 and Spring Boot 4 | This PR upgrades the project to graphql-java to 25.0 and Spring Boot 4.0.2 and updates all dependencies to their latest compatible stable versions.
### Major Version Updates
- **Spring Boot**: 3.3.6 → 4.0.2
- **Spring GraphQL**: 1.3.3 → 2.0.2
- **graphql-java**: 22.3 → 25.0
### Dependency Updates
- **JetBrain... | diff --git a/gradle.properties b/gradle.properties
index e993e219..f361cfa8 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -2,18 +2,18 @@ group = com.apollographql.federation
version = 3.0-SNAPSHOT
# dependencies
-annotationsVersion = 24.1.0
-graphQLJavaVersion = 22.3
+annotationsVersion = 26.0.1
+graphQ... | 3 | 3 | 2 | [{"id": "G0", "claim": "The change setting `verifier = callbackUrl` in SubscriptionCallbackHandlerTest should be reverted, since the verifier is separate from the callback URL per the callback protocol docs.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "cla... | null |
apollographql__federation-jvm__52 | apollographql/federation-jvm | 52 | defect | e4baedef14be86a0a2efa6fd9ade5dd5417890cc | e2f0b83ae9813a4dc731ba779b5abf317d9b481c | graphql-java-support: Fix grammar violation in graphql-java's SchemaPrinter | `graphql-java`'s `SchemaPrinter` outputs grammar-violating SDL, as described in graphql-java/graphql-java#1823 . This has affected users of `federation-jvm`, as shown in #21 and #23 .
It's been fixed upstream by graphql-java/graphql-java#1798 , but this hasn't been released yet. This PR introduces a hotfix until `gr... | diff --git a/graphql-java-support/src/main/java/com/apollographql/federation/graphqljava/FederationSdlPrinter.java b/graphql-java-support/src/main/java/com/apollographql/federation/graphqljava/FederationSdlPrinter.java
new file mode 100644
index 00000000..3e1af8f0
--- /dev/null
+++ b/graphql-java-support/src/main/java/... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add a comment in the code marking FederationSdlPrinter as a temporary patch (with a back-link) so it can be reverted to graphql-java's SchemaPrinter once upstream fixes the grammar bug.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apollographql__federation-jvm__58 | apollographql/federation-jvm | 58 | defect | 47efab56e113724ac631f1a93c22ed58b347023a | 7df6e4509eb499daf7e1ab7cb6ec8f5af9fe54d1 | Update valid locations for @extends | According to the spec `@extends` is valid for both OBJECT and INTERFACE: https://www.apollographql.com/docs/apollo-server/federation/federation-spec/#federation-schema-specification | diff --git a/.idea/encodings.xml b/.idea/encodings.xml
index b6d43ba2..2415ef3f 100644
--- a/.idea/encodings.xml
+++ b/.idea/encodings.xml
@@ -3,6 +3,9 @@
<component name="Encoding">
<file url="file://$PROJECT_DIR$" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/graphql-java-support" charset="UTF-8" />... | 2 | 1 | 0 | [{"id": "G0", "claim": "The static methods should not be marked as final.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The .idea/inspectionProfiles/Project_Default.xml file added by this pull request should be excluded from the PR and ignored ... | null |
apollographql__federation-jvm__8 | apollographql/federation-jvm | 8 | defect | d6ba68f2baa39d7827043cb84f20ca78535a1c03 | 0580ba914740b22b461bb1c4110750da5f315233 | v0.1.0: valued directive creation, spec update, bugfix, CI fix | - Make some names public, when likely to be accessed
- Make it easy to construct directives with values
- `@external` isn't allowed on `OBJECT`
- Fix a bug around building multiple schemas (`_Entity.field` was mutated during schema builds to resolve type references)
- Fix `pom.xml` files for bintray uploads
- Drop... | diff --git a/.circleci/config.yml b/.circleci/config.yml
index 38338ad6..ab955ece 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -24,3 +24,9 @@ jobs:
- run:
name: Test
command: ./mvnw --settings settings.xml --batch-mode test
+
+workflows:
+ version: 2
+ Build and Test:
+... | 3 | 1 | 1 | [{"id": "G0", "claim": "The new public APIs (e.g. the per-value directive factory methods in FederationDirectives) should have javadoc — at least a usage note and a link to the spec doc.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Making federa... | null |
apollographql__router__3104 | apollographql/router | 3,104 | defect | 8deaec497e1579c02cf2140084aaa5a6d8445705 | d0e7926c8066aa749aa7817c8d1c9eb16ac24247 | coprocessor: add support for deferred responses and fix body data type | Modifies the implementation to process deferred results gradually rather than blocking.
Changes the coprocessor router body payload to be a String, rather than a JSON Value (Map, effectively)
In retrospect, it was a mistake to have made the Router coprocessor body payload be a JSON Value. It should just be a String... | diff --git a/.changesets/fix_garypen_3015_and_friends.md b/.changesets/fix_garypen_3015_and_friends.md
new file mode 100644
index 00000000000..2b809e85bc1
--- /dev/null
+++ b/.changesets/fix_garypen_3015_and_friends.md
@@ -0,0 +1,11 @@
+### Fix router deferred response and body type issues ([Issue #3015](https://github... | 3 | 1 | 0 | [{"id": "G0", "claim": "The requirement that a coprocessor returning ControlFlow::Break at the RouterService Request level supply a JSON body should be justified or reconsidered.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The builder's runtime assertio... | null |
apollographql__router__3200 | apollographql/router | 3,200 | defect | 2652e5a3a31f6d5086773005e566dbe038104b7f | 583d829b8078f5f891181d9ab83aab7fb71aa2ef | Expose the apollo compiler at the supergraph service level | This adds a query analysis phase inside the router service, before sending the query through the supergraph plugins. it makes a compiler available to supergraph plugins. That compiler is then used to create the `Query` object containing selections for response formatting
Todo:
- [x] fix tests
- [x] cache the compi... | diff --git a/apollo-router/src/axum_factory/tests.rs b/apollo-router/src/axum_factory/tests.rs
index 1daf6ead934..586fc4c5f87 100644
--- a/apollo-router/src/axum_factory/tests.rs
+++ b/apollo-router/src/axum_factory/tests.rs
@@ -68,6 +68,7 @@ use crate::query_planner::BridgeQueryPlanner;
use crate::router_factory::cre... | 10 | 7 | 2 | [{"id": "G0", "claim": "The unused `_schema`/schema parameter kept on execution::Request::internal_new to avoid breaking the public API should be marked deprecated (or otherwise resolved, e.g. wrapped in an Option since this is a builder).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "intr... | null |
apollographql__router__3234 | apollographql/router | 3,234 | defect | 6ff43869e0cf8ab0de8dd0e898f80c08ad135552 | 615019b41a883aa38d3ff9f1ebf4c97f9675403b | provide a rhai interface to the router service | Adds `Rhai` support for the `router_service`.
It is now possible to interact with requests and responses at the `router_service` level from `Rhai`. The functionality is very similar to that provided for interacting with existing services, for example `supergraph_service`. For instance, you may map requests and respo... | diff --git a/.changesets/feat_garypen_2278_rhai_router_service.md b/.changesets/feat_garypen_2278_rhai_router_service.md
new file mode 100644
index 00000000000..8f53f1e94f3
--- /dev/null
+++ b/.changesets/feat_garypen_2278_rhai_router_service.md
@@ -0,0 +1,43 @@
+### Provide a rhai interface to the router service ([Iss... | 9 | 5 | 2 | [{"id": "G0", "claim": "The deferred router response should carry Bytes rather than a hyper Body: the Body-based symmetry forces a blocking executor and a spawned thread on every request and response body chunk, and users of the router-level rhai script would expect a string or bytes array.", "category": "performance",... | null |
apollographql__router__3969 | apollographql/router | 3,969 | defect | 765e9b233e8d91fb8a131642476ad277e939f72f | 932095252727c13756cfc9b9d9efd018a2f6d8b6 | test graceful shutdown with idle connections | Fix #3124
Fix #3941
<!-- start metadata -->
---
**Checklist**
Complete the checklist (and note appropriate exceptions) before the PR is marked ready-for-review.
- [ ] Changes are compatible[^1]
- [ ] Documentation[^2] completed
- [ ] Performance impact assessed and acceptable
- Tests added and passing[... | diff --git a/.changesets/fix_geal_idle_connections.md b/.changesets/fix_geal_idle_connections.md
new file mode 100644
index 00000000000..9bb01f3dc1e
--- /dev/null
+++ b/.changesets/fix_geal_idle_connections.md
@@ -0,0 +1,9 @@
+### Fix router hang when opening the explorer, prometheus or health check page ([Issue #3941]... | 2 | 2 | 1 | [{"id": "G0", "claim": "The changeset description should be rewritten as suggested, replacing the wordy first paragraph (with its typo 'connectionsi') with the proposed clearer wording.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The same idle-... | null |
apollographql__router__4119 | apollographql/router | 4,119 | defect | 619bd0155b7d96c4eedf539b74d322b98fff14ff | 14dce587d0516fb78ddb98fe8200c6988fc6048f | Record Replay Plugin | Request recording plugin and replay test runner
<!-- start metadata -->
---
**Checklist**
Complete the checklist (and note appropriate exceptions) before the PR is marked ready-for-review.
- [ ] Changes are compatible[^1]
- [ ] Documentation[^2] completed
- [ ] Performance impact assessed and acceptable
... | diff --git a/Cargo.lock b/Cargo.lock
index b0560e24561..b301cd0d710 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -288,6 +288,7 @@ dependencies = [
"bytes",
"ci_info",
"clap 4.4.6",
+ "console 0.15.7",
"console-subscriber",
"dashmap",
"derivative",
@@ -374,6 +375,7 @@ dependencies = [
"sha1 0.10.6",
"sha2... | 21 | 15 | 3 | [{"id": "G0", "claim": "Recording filenames derived from the operation name and unix seconds risk collisions, and reviewers asked for collision-proof names (e.g. uuid v7) or a hash of the request instead of a timestamp.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id"... | null |
apollographql__router__4175 | apollographql/router | 4,175 | defect | a4141051474e70c0117c7ccf710246d7c2496f36 | 4be8738aae2dc98bc5393ed758a8814a16f93998 | Entity caching: hash queries according to their usage of the schema | Fix #4192
If a schema update does not affect an existing query (example: adding a field to a type), then we could detect it and keep using cached entities across reloads
<!-- start metadata -->
---
**Checklist**
Complete the checklist (and note appropriate exceptions) before the PR is marked ready-for-revi... | diff --git a/Cargo.lock b/Cargo.lock
index a0bc01b13c..2b5b1bf926 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3209,6 +3209,9 @@ name = "hex"
version = "0.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"
+dependencies ... | 3 | 3 | 1 | [{"id": "G0", "claim": "The `_entities` string should be a shared constant used everywhere instead of the literal repeated in change.rs.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Hasher::finish implementation is just todo!(), which will... | null |
apollographql__router__4255 | apollographql/router | 4,255 | defect | 0ba526a6979f75573032984214413e8d51513dd2 | 565bd29c777edf00ea714678787d670e73dc47a6 | test the impact of merging integration tests | integration tests require linking an entire router with each of them, which can significantly increase build times, along with CPU and RAM usage.
This is an experiment where I merge:
- metrics_tests and tracing_test in telemetry_test
- rhai_test and validation_test in integration_test
**This is the impact of buil... | diff --git a/.circleci/config.yml b/.circleci/config.yml
index cd4cf85b6c..58d777ca7e 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -63,7 +63,7 @@ executors:
windows_test: &windows_test_executor
machine:
image: "windows-server-2019-vs2019:stable"
- resource_class: windows.xlarge
+ ... | 4 | 1 | 0 | [{"id": "G0", "claim": "Asks why the Windows CI executor's resource_class was lowered from windows.xlarge to windows.large and what the impact of that change is.", "category": "performance", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Merging integration tests into the integra... | null |
apollographql__router__4276 | apollographql/router | 4,276 | defect | e285b44b301d8722f58364e06c4c3e70fa734623 | e5b4525c0576a7b2bda2c6db734e924d630df334 | Entity cache: link cache and authorization | This builds upon #4208 to use subgraph level authorization status in the cache key, to split cache entries per authorization contexts
<!-- start metadata -->
---
**Checklist**
Complete the checklist (and note appropriate exceptions) before the PR is marked ready-for-review.
- [ ] Changes are compatible[^1... | diff --git a/apollo-router/src/plugins/authorization/scopes.rs b/apollo-router/src/plugins/authorization/scopes.rs
index 24ec5a19bc..6758ea7b8f 100644
--- a/apollo-router/src/plugins/authorization/scopes.rs
+++ b/apollo-router/src/plugins/authorization/scopes.rs
@@ -291,11 +291,6 @@ impl<'a> ScopeFilteringVisitor<'a> {... | 4 | 4 | 0 | [{"id": "G0", "claim": "The debug println! of the raw Redis value after fetching the products cache entry should be deleted.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Write `let s: String` with a space after the colon instead of `let s:Stri... | null |
apollographql__router__4480 | apollographql/router | 4,480 | defect | 5a2e140508e6fbcf531e328b1148e7fe80bc040d | 8eb9d35b94768a135fd508081be694948fe64b8f | create a trace during router creation and plugin initialization | Fix #4472
Here's the trace this generates when creating the router (I added a fake error log for the test):

Issues to fix:
* [x] the root span of the trace currently needs to be ca... | diff --git a/.changesets/feat_geal_plugin_init_spans.md b/.changesets/feat_geal_plugin_init_spans.md
new file mode 100644
index 0000000000..d501289e2f
--- /dev/null
+++ b/.changesets/feat_geal_plugin_init_spans.md
@@ -0,0 +1,5 @@
+### Create a trace during router creation and plugin initialization ([Issue #4472](https:... | 3 | 2 | 0 | [{"id": "G0", "claim": "The comment \"// for now we need the root span to be named request, otherwise the trace is not registered\" above the router span creation should be deleted.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Span names should ... | null |
apollographql__router__4563 | apollographql/router | 4,563 | defect | 2ffcb89e1e159d532af3382ae9a464221c03254f | cb761da7d57682e6a453ad0c178be4ac1016745c | Entity cache: move to preview | *Description here*
Fixes #**issue_number**
<!-- start metadata -->
---
**Checklist**
Complete the checklist (and note appropriate exceptions) before the PR is marked ready-for-review.
- [ ] Changes are compatible[^1]
- [ ] Documentation[^2] completed
- [ ] Performance impact assessed and acceptable
-... | diff --git a/apollo-router/feature_discussions.json b/apollo-router/feature_discussions.json
index 1b6f7b5717..04c97230c1 100644
--- a/apollo-router/feature_discussions.json
+++ b/apollo-router/feature_discussions.json
@@ -5,5 +5,7 @@
"experimental_when_header": "https://github.com/apollographql/router/discussions... | 2 | 1 | 0 | [{"id": "G0", "claim": "The `preview_entity_cache` entry in feature_discussions.json points to \"TBD\"; the discussion has to be created and its URL filled in (M005 proposes exactly that replacement).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ... | null |
apollographql__router__4583 | apollographql/router | 4,583 | defect | b506cd8e8cd64e4400d6655f0ada6b1d58bb09d5 | 4192237ecf15b0c73688516ec55cd58e2e9b2a02 | Graduate query plan cache from experimental | Fix https://github.com/apollographql/router/issues/4575
Fix #4574
Partially addresses https://github.com/apollographql/router/issues/4473 (adds federation version to the cache key)
This PR brings the query plan cache out of experimental, along with some improvements to the way we use Redis
TODO:
- [x] replace ... | diff --git a/.changesets/feat_geal_query_plan_cache_prod.md b/.changesets/feat_geal_query_plan_cache_prod.md
new file mode 100644
index 0000000000..7962734a0f
--- /dev/null
+++ b/.changesets/feat_geal_query_plan_cache_prod.md
@@ -0,0 +1,12 @@
+### Graduate query plan cache from experimental ([Issue #4575](https://githu... | 1 | 1 | 0 | [{"id": "G0", "claim": "The changeset entry should be reworded as given in the suggestion block: the opening sentence rephrased to 'has been successfully running in production deployments for a long time. It's now ready to no longer be experimental.' and the improvements list rewritten as a numbered list.", "category":... | null |
apollographql__router__4604 | apollographql/router | 4,604 | defect | 9ed2d0cdba73ef35778a4a95363a2989e42f055a | ffa4ae65ee4e7bbfea98de61f86ac31aa52bf1de | refresh query plan expiration on GET | Fix https://github.com/apollographql/router/issues/4473
We want the query plan cache to act like a LRU, so if a TTL is set in its Redis configuration, we will reset the plan cache key's current expiration when reding it
~unclear to me here: should we instead make it an option on the common redis configuration type?... | diff --git a/apollo-router/src/cache/redis.rs b/apollo-router/src/cache/redis.rs
index 31429810c0..a20aca6434 100644
--- a/apollo-router/src/cache/redis.rs
+++ b/apollo-router/src/cache/redis.rs
@@ -49,6 +49,7 @@ pub(crate) struct RedisCacheStorage {
inner: Arc<RedisClient>,
namespace: Option<Arc<String>>,
... | 3 | 3 | 2 | [{"id": "G0", "claim": "The TTL-reset behaviour should instead be made an option on the common redis configuration type, so that it can be controlled for APQ and introspection too, rather than being hard-coded per call site.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id"... | null |
apollographql__router__4701 | apollographql/router | 4,701 | defect | 6b77cb46d01274624d4e80e6ac330ac896ad5103 | 3937678acd54c94423d7222a94cab96c4269dff6 | Update experimental API schema and implement robust comparison | This adds the standardisation code that I used successfully for harness runs, so we should get quite robust results.
I tested this manually by adding a `panic!()` in the mismatch case and intentionally adding a bug in the fed-next implementation locally.
Ref #4649
<!-- start metadata -->
---
**Checklist**
... | diff --git a/.changesets/feat_renee_api_schema.md b/.changesets/feat_renee_api_schema.md
new file mode 100644
index 00000000000..fada3148b9f
--- /dev/null
+++ b/.changesets/feat_renee_api_schema.md
@@ -0,0 +1,11 @@
+## Experimental support for API Schema generation in Rust
+
+As part of the process of replacing JavaScr... | 3 | 2 | 1 | [{"id": "G0", "claim": "The new `experimental_api_schema_generation_mode` option should not be documented for users; the switch to the Rust implementation is low-risk and should happen silently instead.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim"... | null |
apollographql__router__6108 | apollographql/router | 6,108 | defect | b75689cf8e649cca268771b20688997a5b187d9e | 487bf792c8a6e50cf82a5a308065488b8efcf3d6 | Progressive override: fix query planner cache warmup | The query planner needs various metadata along with the query to influence planning, and due to historical reasons that data was passed through the request context, not the planner request. The progressive override labels list was communicated like that, but missed the case of query plan cache warmup, where upon schema... | diff --git a/.circleci/config.yml b/.circleci/config.yml
index eea532b73b..91bce18b05 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -1,5 +1,7 @@
version: 2.1
+# Cache key bump: 1
+
# These "CircleCI Orbs" are reusable bits of configuration that can be shared
# across projects. See https://circle... | 2 | 1 | 0 | [{"id": "G0", "claim": "The pull request lacks a changeset entry in /.changesets/ and should add one describing the change.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The temporary '# Cache key bump: 1' comment in .circleci/config.yml can be r... | null |
apollographql__router__6198 | apollographql/router | 6,198 | defect | b49acf3e0cca4866e3aa71eeb2cbedaaa4c8ec3e | 810669f7ec1b387b71e71359520d51ecebb67f7f | persisted queries have client names | (This depends on functionality of GraphOS that is not currently enabled for all users, as well as an unreleased version of Rover.)
The persisted query manifest fetched from Uplink can now contain a `clientName` field in each operation. Two operations with the same `id` but different `clientName` are considered to be... | diff --git a/apollo-router/src/plugins/telemetry/mod.rs b/apollo-router/src/plugins/telemetry/mod.rs
index b6a0e7a1a23..3b28449c7e1 100644
--- a/apollo-router/src/plugins/telemetry/mod.rs
+++ b/apollo-router/src/plugins/telemetry/mod.rs
@@ -172,7 +172,7 @@ pub(crate) mod tracing;
pub(crate) mod utils;
// Tracing co... | 6 | 4 | 2 | [{"id": "G0", "claim": "The new client-name feature appears to work only when Apollo telemetry is enabled, and that constraint should at least be documented.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The else-if in get_operation_body looks wr... | null |
apollographql__router__6206 | apollographql/router | 6,206 | defect | b49acf3e0cca4866e3aa71eeb2cbedaaa4c8ec3e | 7813595130b5a48274882470a786aada7b560cbd | Query planner cache key improvements | Fix #5160
This splits part of the work from https://github.com/apollographql/router/pull/5255 to make it easier to merge.
This covers improvements and fixes to the query planner cache key from changes related to the query hashing algorithm and query plan reuse during warmup.
Fixed:
- use prefixes for each part ... | diff --git a/apollo-router/src/configuration/mod.rs b/apollo-router/src/configuration/mod.rs
index 00657cc11d6..affac4acac2 100644
--- a/apollo-router/src/configuration/mod.rs
+++ b/apollo-router/src/configuration/mod.rs
@@ -412,6 +412,22 @@ impl Configuration {
type_conditioned_fetching: self.experimental... | 2 | 2 | 1 | [{"id": "G0", "claim": "The new rust_query_planner_config should forward supergraph.generate_query_fragments instead of hardcoding generate_query_fragments to false.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The local variable holding the plann... | null |
apollographql__router__6318 | apollographql/router | 6,318 | defect | 85a745057377206470f8b1b06f9c7fcbf7b738b5 | 79ef5770c25beba62b814a3a8363624259fac5b1 | make $context available everywhere with variable optimizations | this also lazily adds data to the variables map based on the presence of variable namespaces in the expressions. this avoid unnecessary work and allocations if e.g. `$context` is not used to at all
<!-- https://apollographql.atlassian.net/browse/CNN-270 -->
<!-- start metadata -->
---
**Checklist**
Complet... | diff --git a/apollo-federation/src/sources/connect/expand/tests/snapshots/it_expand_supergraph@carryover.graphql-2.snap b/apollo-federation/src/sources/connect/expand/tests/snapshots/it_expand_supergraph@carryover.graphql-2.snap
index 34ddc48768..1c737d571c 100644
--- a/apollo-federation/src/sources/connect/expand/test... | 2 | 2 | 0 | [{"id": "G0", "claim": "Namespace has an as_str() (which may need to be made pub in this PR) so the code should not duplicate the namespace strings like \"$args\" in make_requests.rs.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Duplicate stri... | null |
apollographql__router__6558 | apollographql/router | 6,558 | defect | 817e8780571945934559d113f1bf13201109cba2 | da540e56678be5cbf201d0c726a8e67409c4b046 | Add batch exporter metrics and logging enhancements | When exporters fall behind they emit an error message that is not useful. It neither outputs the name of the batch processor or the has metrics on how many spans were dropped.
The message now contains the provider: `OpenTelemetry trace error occurred: cannot send message to batch processor '<provider>-tracing' as th... | diff --git a/.changesets/feat_bryn_named_runtime_channel.md b/.changesets/feat_bryn_named_runtime_channel.md
new file mode 100644
index 0000000000..a1cf96d520
--- /dev/null
+++ b/.changesets/feat_bryn_named_runtime_channel.md
@@ -0,0 +1,13 @@
+### Improved BatchProcessor observability ([Issue #6558](https://github.com/... | 1 | 1 | 1 | [{"id": "G0", "claim": "The documentation for `apollo.router.telemetry.batch_processor.errors` should also list `jaeger-collector` among the possible values of the `name` attribute.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
apollographql__router__6757 | apollographql/router | 6,757 | defect | 85976da3ba3cf040d46e953baceba7f1916dd3a3 | 62917e8d03d254754d64308623a236ac89c0cc41 | Adjust plugin order to correct interaction with telemetry & traffic shaping | - Update the layer inventory document
- This doesn't fully bring it up to date with the current state of 2.x, I think, but the plan for today will be to use this to audit the order of plugins and to document an understanding of the way requests flow through the router and the constraints on the placement of various ... | diff --git a/apollo-router/src/plugins/csrf/fixtures/default.router.yaml b/apollo-router/src/plugins/csrf/fixtures/default.router.yaml
new file mode 100644
index 0000000000..941c3f6298
--- /dev/null
+++ b/apollo-router/src/plugins/csrf/fixtures/default.router.yaml
@@ -0,0 +1,2 @@
+csrf:
+ unsafe_disabled: false
diff -... | 1 | 1 | 0 | [{"id": "G0", "claim": "The `unsafe_disabled` config option should be renamed to `enabled` to be in line with the other plugins (the TODO this PR added records the wish), and bnjjj asks whether that should be done before merging this PR.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope"... | null |
apollographql__router__6761 | apollographql/router | 6,761 | defect | 85976da3ba3cf040d46e953baceba7f1916dd3a3 | 8ca61cc7f4a0bc035ae20c80560381ae12e4d71b | Fix backpressure for compute jobs | Since version 1.58.0, Apollo Router has a dedicated thread pool for computation-heavy jobs with a priority queue. When the queue was full above a certain threshold, it attempted to exert backpressure by returning `Poll::Pending` in `tower::Service::poll_ready` for the query planner service. However this was not suffici... | diff --git a/apollo-router/Cargo.toml b/apollo-router/Cargo.toml
index fa0a427ff1..8645525c9c 100644
--- a/apollo-router/Cargo.toml
+++ b/apollo-router/Cargo.toml
@@ -365,6 +365,12 @@ name = "samples"
path = "tests/samples_tests.rs"
harness = false
+[[test]]
+# This test is separated because it needs to run in a de... | 3 | 3 | 0 | [{"id": "G0", "claim": "Now that `send` returns an error, it should also return an error instead of `expect`ing the inner channel send to succeed.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Delete the `#[macro_use]` attribute added on `mod compute_jo... | null |
apollographql__router__6888 | apollographql/router | 6,888 | defect | 2cdfd39db5d5c08cadd6887ffcfc5ab52c9fc208 | e0a04e2c8709b5258fdd216a83e25b833566e54a | fix(entity_caching): do not include other fields from representation variable than the entity keys | Separate entity keys and representation variable value in the cache key to avoid issues with `@requires` for example.
close #6673
<!-- [ROUTER-1007] -->
<!-- [ROUTER-1008] -->
[ROUTER-1007]: https://apollographql.atlassian.net/browse/ROUTER-1007?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjU... | diff --git a/Cargo.lock b/Cargo.lock
index 578c3b1374..4937bc0671 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4040,7 +4040,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fc2f4eb4bc735547cfed7c0a4922cbd04a4655978c09b54f1f7b228750664c34"
dependencies = [
"cfg-if",
- "windows-target... | 3 | 3 | 1 | [{"id": "G0", "claim": "With apollo-compiler 1.27.0, `selection_set.root_fields()` returns an iterator that can replace the pull request's custom `get_root_field_names` helper.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "When the Parser param... | null |
apollographql__router__6966 | apollographql/router | 6,966 | defect | a857c770a4e4e661054b5019e1be5b9924fab56f | 996c5a78818b86e1732f905a801675a461b57c88 | Error categorization: touch-ups around configuration | In 2.0.0, an experimental option `telemetry.apollo.errors.experimental_otlp_error_metrics` was introduced to track errors with additional attributes. A few related changes are included here:
- Sending these metrics now also respects the subgraph's `send` flag e.g. `telemetry.apollo.errors.subgraph.[all|(subgraph nam... | diff --git a/.changesets/feat_error_metrics_config.md b/.changesets/feat_error_metrics_config.md
new file mode 100644
index 0000000000..29369a3a0e
--- /dev/null
+++ b/.changesets/feat_error_metrics_config.md
@@ -0,0 +1,9 @@
+### Changes to experimental error metrics ([PR #6966](https://github.com/apollographql/router/p... | 6 | 3 | 0 | [{"id": "G0", "claim": "When the configuration is marked non-experimental, the default redaction_policy should be updated to Extended.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Use ErrorRedactionPolicy::default() instead of naming the Strict variant s... | null |
apollographql__router__6985 | apollographql/router | 6,985 | defect | 5c5503510648b292959d2adfd30c778aa64f4e72 | 1cac24644a6f716bf7ba603070bd738219e493d8 | Add apollo.router.pipelines metrics (backport #6967) | To enable debugging when request pipelines are being kept around a new gauge metric has been added:
- `apollo.router.pipelines` - The number of request pipelines active in the router
- `schema.id` - The Apollo Studio schema hash associated with the pipeline.
- `launch.id` - The Apollo Studio launch id asso... | diff --git a/.changesets/feat_pipeline_metrics.md b/.changesets/feat_pipeline_metrics.md
new file mode 100644
index 0000000000..3e35ecbe49
--- /dev/null
+++ b/.changesets/feat_pipeline_metrics.md
@@ -0,0 +1,14 @@
+### Add apollo.router.pipelines metrics ([PR #6967](https://github.com/apollographql/router/pull/6967))
+
... | 1 | 1 | 1 | [{"id": "G0", "claim": "The 1.x docs should keep the Deleted metrics section that the pull request removes, with the new Internals header placed above it.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
apollographql__router__7021 | apollographql/router | 7,021 | defect | ce6f2c50f5888ae843b1067fab063a57eef03ce9 | 0e5b06de2649ce4a642720c8b0fa39ed2a8b117f | Fix Apollo operation ID/name generation for parse, validation, and invalid operation name errors | * Fixes the "Apollo operation ID" and opeation name generated for generated for requests that fail due to parse, validation, or invalid operation name errors.
* Refactors the error counting code so that it can be more easily used outside the router service.
* Updates the error code generated for operations with an in... | diff --git a/.changesets/fix_error_apollo_operation_id_fix.md b/.changesets/fix_error_apollo_operation_id_fix.md
new file mode 100644
index 0000000000..8f9ae07ae1
--- /dev/null
+++ b/.changesets/fix_error_apollo_operation_id_fix.md
@@ -0,0 +1,5 @@
+### Brief but complete sentence that stands on its own ([PR #7021](http... | 3 | 3 | 1 | [{"id": "G0", "claim": "The changeset file keeps the template placeholder as its heading and needs a brief but complete sentence of its own as the title.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The count_operation_error_codes parameter shou... | null |
apollographql__router__7023 | apollographql/router | 7,023 | defect | bee0b653fc5dc900ed8fa44f35b1ccd9289d844e | c8a3b6b9a4e7f6da1140d5864feb23ae257eea6b | Add apollo.router.open_connections metric | To help users to diagnose when connections are keeping pipelines hanging around the following metric has been added:
- `apollo.router.open_connections` - The number of request pipelines active in the router
- `schema.id` - The Apollo Studio schema hash associated with the pipeline.
- `launch.id` - The Apollo Stu... | diff --git a/apollo-router/src/axum_factory/axum_http_server_factory.rs b/apollo-router/src/axum_factory/axum_http_server_factory.rs
index 2d04004c05..1dfbb26a52 100644
--- a/apollo-router/src/axum_factory/axum_http_server_factory.rs
+++ b/apollo-router/src/axum_factory/axum_http_server_factory.rs
@@ -160,6 +160,7 @@ i... | 2 | 2 | 0 | [{"id": "G0", "claim": "The explanatory comment about the new metric being implemented in router 2.0 is misleading on 1.x since the other metric it contrasts with doesn't exist here, so it can be dropped.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "clai... | null |
apollographql__router__7095 | apollographql/router | 7,095 | defect | d570f89e08f127d3873c5cf662325b28bca80d98 | bc4618a0ddd740875d547e7e7f23423c702adc08 | Connection shutdown timeout 2.x | Forward port of #7058
When a connection is closed we call `graceful_shutdown` on hyper and then await for the connection to close.
This PR introduces a configurable timeout from signal to terminate to actual termination defaulted to 60 seconds. After the timeout is reached the connection is forcibly terminated.
... | diff --git a/.changesets/feat_bryn_connection_metrics_2_0.md b/.changesets/feat_bryn_connection_metrics_2_0.md
index c79a5bc397..8bf74f6756 100644
--- a/.changesets/feat_bryn_connection_metrics_2_0.md
+++ b/.changesets/feat_bryn_connection_metrics_2_0.md
@@ -1,4 +1,4 @@
-### Add `apollo.router.open_connections` metric ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The warning log's timeout attribute should use `as_secs()` instead of `as_millis() / 1000`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apollographql__router__7141 | apollographql/router | 7,141 | defect | 8cfd79527bfe6d4d646be69660af34ff0f0246a9 | 5608ca9daea4defec3fb550b7373927e68760fe9 | coprocessor: fix parsing of graphql responses with null as `data` | Coprocessor deserialized GraphQL response using serde_json directly that resulted in `data: null` were ignored.
After my change, it's using `Response::from_value`, which applies the same steps for parsing GraphQL response that we are already using for parsing subgraph response.
<!-- start metadata -->
<!-- [ROUTER... | diff --git a/apollo-router/src/graphql/mod.rs b/apollo-router/src/graphql/mod.rs
index f7cc2b94759..9932fafa02f 100644
--- a/apollo-router/src/graphql/mod.rs
+++ b/apollo-router/src/graphql/mod.rs
@@ -13,6 +13,7 @@ use futures::Stream;
use heck::ToShoutySnakeCase;
pub use request::Request;
pub use response::Incremen... | 5 | 1 | 1 | [{"id": "G0", "claim": "process_query_values (and process_batch_values) needlessly changed to take ownership of the Value instead of borrowing it as before.", "category": "performance", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The builder-flow rewrite of Request::from_url... | null |
apollographql__router__7184 | apollographql/router | 7,184 | defect | 060b1339bfcc327730812ad783521656647921b3 | 500df666b622912e4b33d5301ad3d9c6f285a802 | Add compute pool metrics | This PR extracts some of the work done in #7111 to make use of those metrics in router `v2.x`. It does not include any of the spans, which I assume will be added in #7124.
There are a few changes and some refactoring, which I can revert if it's not helpful - the main change was to promote `compute_job` to a module a... | diff --git a/apollo-router/src/compute_job/metrics.rs b/apollo-router/src/compute_job/metrics.rs
new file mode 100644
index 0000000000..c6d6148f94
--- /dev/null
+++ b/apollo-router/src/compute_job/metrics.rs
@@ -0,0 +1,107 @@
+use std::time::Duration;
+use std::time::Instant;
+
+use crate::compute_job::ComputeJobType;
... | 10 | 5 | 3 | [{"id": "G0", "claim": "The apollo.router.compute_jobs.queue_is_full counter is no longer needed because apollo.router.compute_jobs.duration now records a RejectedQueueFull outcome, so it should be removed.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A ... | null |
apollographql__router__7319 | apollographql/router | 7,319 | defect | f4ff8225124318c22c7748808ee3efbc9bd7eb8f | 5f58bc8c9afc243f79c7ee516286aa19139e1b2b | fix: terminate unused Redis connections on schema update | The router performs a 'hot reload' whenever it detects a schema update. During this reload, it effectively instantiates a new internal router, warms it up (optional), redirects all traffic to this new router, and drops the old internal router.
This PR fixes a bug in that drop process where the Redis connections are ... | diff --git a/apollo-router/src/cache/redis.rs b/apollo-router/src/cache/redis.rs
index b6d5be6496..94f1069570 100644
--- a/apollo-router/src/cache/redis.rs
+++ b/apollo-router/src/cache/redis.rs
@@ -1,5 +1,6 @@
use std::collections::HashMap;
use std::fmt;
+use std::ops::Deref;
use std::pin::Pin;
use std::sync::Arc;... | 2 | 2 | 0 | [{"id": "G0", "claim": "The second clone of `inner` in the drop task is probably unnecessary since `inner` is already owned.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Redis client events could drive an up-down counter exported as a router-s... | null |
apollographql__router__7344 | apollographql/router | 7,344 | defect | 23e580e22a4401cc2e7a952b241a1ec955b29c99 | 18e17d502cd074999055f63ac1e21f29d983577a | Add _dd.measured to spans when agent sampling is enabled | The 2.x branch doesn't seem to be adding the _dd.measured attribute to spans. And the tests look incorrect.
The tests are now fixed and the attribute is added when enabling datadog agent sampling.
This will need backporting as the test is likely incorrect in 1.x.
It seems that this is working in 1.x because th... | diff --git a/apollo-router/src/plugins/telemetry/tracing/datadog/span_processor.rs b/apollo-router/src/plugins/telemetry/tracing/datadog/span_processor.rs
index e362ca967c..731c6a6138 100644
--- a/apollo-router/src/plugins/telemetry/tracing/datadog/span_processor.rs
+++ b/apollo-router/src/plugins/telemetry/tracing/dat... | 2 | 1 | 1 | [{"id": "G0", "claim": "For the 1.x release this attribute push should not be added, and the test should just be updated so it works properly.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Setting _dd.measured on all spans may be unintended, and the que... | null |
apollographql__router__7380 | apollographql/router | 7,380 | defect | f9716849e08d156f2f90795ec090c51d51ff8134 | 832563a68e5d0c6bd3eca9f1541fb64082d7c322 | Support non-JSON and JSON-like content types for connectors | Support non-JSON and JSON-like content types for connectors
<!-- start metadata -->
---
**Checklist**
Complete the checklist (and note appropriate exceptions) before the PR is marked ready-for-review.
- [x] Changes are compatible[^1]
- [ ] Documentation[^2] completed
- [ ] Performance impact assessed and... | diff --git a/.changesets/feat_andrew_deserializenonjson.md b/.changesets/feat_andrew_deserializenonjson.md
new file mode 100644
index 0000000000..04a138e9bb
--- /dev/null
+++ b/.changesets/feat_andrew_deserializenonjson.md
@@ -0,0 +1,25 @@
+### Support non-JSON and JSON-like content types for connectors ([PR #7380](htt... | 6 | 6 | 1 | [{"id": "G0", "claim": "The changeset's opening sentence should fix its grammar: \"Connectors now inspects\" should be \"Connectors now inspect\" and \"how it should treat\" should be \"how they should treat\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1",... | null |
apollographql__router__7559 | apollographql/router | 7,559 | defect | 678dee7e1a85d4520d84e90ef0913b892a55ee65 | b81fa002e8efb8340643e5b3075e94ba6eccaf4b | Take advantage of improvement in the http crate for cloning | In an older version of the crate, `http::Extensions` were not `Clone`. This had the consequence that `http::Request` and `http::Response` were also not clone. To work-around this limitation, we had functions in our http_ext module which would "clone" a `Request` or a `Response`, but they'd omit `Extensions`.
General... | diff --git a/apollo-router/src/http_ext.rs b/apollo-router/src/http_ext.rs
index 897b1f99a36..c7a89027daa 100644
--- a/apollo-router/src/http_ext.rs
+++ b/apollo-router/src/http_ext.rs
@@ -216,27 +216,22 @@ pub(crate) fn header_map(
Ok(http)
}
-/// Ignores `http::Extensions`
+// In an earlier version of the htt... | 2 | 1 | 1 | [{"id": "G0", "claim": "The clone_http_request/clone_http_response helpers should be removed and their callsites replaced with direct clone, because the comment at the router service callsite is now incorrect.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": ... | null |
apollographql__router__7605 | apollographql/router | 7,605 | defect | f7b0efe2338b73bbaf52a6b35ea90c352c311fef | 82ed46a4b6b3006f2963110d184fbc22cd6b1ca7 | Stop using `tracing_test::traced_test` macro | `tracing_test::traced_test` installs a global tracing subscriber via a `OnceLock`; this can cause other tests to fail.
Instead, make use of some of the internals of `tracing_test` to capture log output.
<!-- start metadata -->
<!-- ROUTER-1314 -->
---
**Checklist**
Complete the checklist (and note approp... | diff --git a/apollo-router/src/plugins/authentication/jwks.rs b/apollo-router/src/plugins/authentication/jwks.rs
index 1f23431d1e..a3f78eecfa 100644
--- a/apollo-router/src/plugins/authentication/jwks.rs
+++ b/apollo-router/src/plugins/authentication/jwks.rs
@@ -722,6 +722,7 @@ mod test {
use super::APOLLO_AUTHENT... | 2 | 2 | 0 | [{"id": "G0", "claim": "Access to tracing-test internals should be wrapped in a function in test_harness so all such access lives in one place and can be updated together later.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The exact version of... | null |
apollographql__router__7606 | apollographql/router | 7,606 | defect | 731fd23cc696191f87d0b3c9d9e9cd84dd8f8d79 | b9b8f7d1c2a34ff9fda9c2c88984585d4a03925c | feat(subscription): add operation_name label to apollo.router.opened.subscriptions counter | This PR adds a new label on `apollo.router.opened.subscriptions` metric to know exactly which subscription is still opened.
<!-- start metadata -->
<!-- [ROUTER-1330] -->
---
**Checklist**
Complete the checklist (and note appropriate exceptions) before the PR is marked ready-for-review.
- [ ] Changes ar... | diff --git a/.changesets/fix_bnjjj_add_operation_name_subscription_metric.md b/.changesets/fix_bnjjj_add_operation_name_subscription_metric.md
new file mode 100644
index 0000000000..7bdae49ded
--- /dev/null
+++ b/.changesets/fix_bnjjj_add_operation_name_subscription_metric.md
@@ -0,0 +1,5 @@
+### Add graphql.operation.... | 1 | 1 | 0 | [{"id": "G0", "claim": "The docs for the subscription metric need to be updated (to document the new operation name label).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apollographql__router__7712 | apollographql/router | 7,712 | defect | 6d977dd06ec1fc716127ade6274f515ded36c167 | b30f3ff0698c1058e279900a18af8a798e7654cd | [Error Counting] Add ID to graphql::Error | This makes two major changes to `graphql::Error`:
1. Adds an `apollo_id` UUID to errors to allow us to uniquely identify Errors. These IDs are randomly generated on construction unless one is specified by the input. Its setter is private so that Error construction is forced through `new()` where we randomly generate ... | diff --git a/apollo-router/src/axum_factory/tests.rs b/apollo-router/src/axum_factory/tests.rs
index 0e53641a66d..c7423a68a8f 100644
--- a/apollo-router/src/axum_factory/tests.rs
+++ b/apollo-router/src/axum_factory/tests.rs
@@ -54,6 +54,7 @@ use tower::BoxError;
use tower::Service;
use tower::ServiceExt;
use tower:... | 7 | 6 | 1 | [{"id": "G0", "claim": "Overwriting error IDs in the tests is messy, heavy-handed and not DRY, and the boilerplate should be abstracted (e.g. mock the ID or compare errors ignoring IDs) rather than overriding the ID in every test.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "intr... | null |
apollographql__router__7737 | apollographql/router | 7,737 | defect | 5b437e76f61c7b2beaf73dce28bc7222b2b60eba | 66a769bd3ea1cdfc393f4972b1878952a29dd4b2 | Naomijub/connectors test support | <!-- start metadata -->
<!-- [ROUTER-####] -->
---
**Checklist**
Complete the checklist (and note appropriate exceptions) before the PR is marked ready-for-review.
- [ ] PR description explains the motivation for the change and relevant context for reviewing
- [ ] PR description links appropriate GitHub/J... | diff --git a/Cargo.lock b/Cargo.lock
index 86823aa1b1..894a478734 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1856,9 +1856,9 @@ dependencies = [
[[package]]
name = "crossbeam-deque"
-version = "0.8.5"
+version = "0.8.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "613f8cc01fe9cf1a... | 6 | 5 | 1 | [{"id": "G0", "claim": "The path serialized by RuntimeError's new Serialize impl is not the correct full path (the full path combines router-only information with a transformation of this value), so it should probably be left out of the serialization.", "category": "correctness", "verdict": "supported", "priority": "P1... | null |
apollographql__router__7741 | apollographql/router | 7,741 | defect | 14eb883049152e39ece20d2f30eb2b774a59b682 | 8be1ef73af7aadb4999f126acc68330dbb5116a3 | new error container for connector errors | instead of using the more generic `graphql::Error` type, that we don't want to bring into apollo-federation, this is a more specific type that can be converted to `graphql::Error` at the end of mapping.
this is not the ideal API, but it unblocked moving the mapping code into apollo-federation.
<!-- start metadata... | diff --git a/apollo-federation/src/connectors/runtime.rs b/apollo-federation/src/connectors/runtime.rs
index f372589fb75..4d11a02d569 100644
--- a/apollo-federation/src/connectors/runtime.rs
+++ b/apollo-federation/src/connectors/runtime.rs
@@ -1,5 +1,7 @@
pub mod debug;
+pub mod errors;
pub mod form_encoding;
pub m... | 9 | 9 | 1 | [{"id": "G0", "claim": "RuntimeError::code should return a &str (e.g. via as_str) instead of an owned String, letting the caller allocate only if it needs to.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "RuntimeError should avoid the hidden clone ... | null |
apollographql__router__7900 | apollographql/router | 7,900 | defect | 9d09473c1e94ff07acf37229ddbf59a0e67ff7c4 | 5730901bd5e7a1b285626cb550c2fcf36f752d2f | response_cache: check failure mode when pg is unavailable and improve observability | If the router cannot connect to Postgres and the configuration is set to `required_to_start: false`, it will continue to serve responses correctly even if the cache is not working. Spans will be marked with errors, and counters in metrics will be incremented.
This PR introduces support for various metrics:
- `apoll... | diff --git a/apollo-router/src/configuration/snapshots/apollo_router__configuration__tests__schema_generation.snap b/apollo-router/src/configuration/snapshots/apollo_router__configuration__tests__schema_generation.snap
index d5073ac785..e0ff8452be 100644
--- a/apollo-router/src/configuration/snapshots/apollo_router__co... | 5 | 4 | 0 | [{"id": "G0", "claim": "The new invalidation error counter only matches InvalidationError::Postgres, so other InvalidationError variants are not counted (unless they are counted elsewhere).", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The span nam... | null |
apollographql__router__7920 | apollographql/router | 7,920 | defect | 43a7b5da93559890d49a4db8d613188c6dc85245 | f6c5ead3c1c9119676b0e5ed7eacc213b046b2b1 | Redis metrics | What was added
This PR adds some best effort metrics until we can have changes in Fred to allow better metrics collection: https://github.com/aembke/fred.rs/issues/357
The latency metrics are marked as experimental because we will change them if we have an upstream change in fred.
**Connection and performance... | diff --git a/.changesets/feat_bryn_redis_metrics.md b/.changesets/feat_bryn_redis_metrics.md
new file mode 100644
index 0000000000..b7e26ec4a8
--- /dev/null
+++ b/.changesets/feat_bryn_redis_metrics.md
@@ -0,0 +1,46 @@
+### Redis cache metrics ([PR #7920](https://github.com/apollographql/router/pull/7920))
+
+The route... | 3 | 2 | 0 | [{"id": "G0", "claim": "The changeset should be framed around the query plan cache rather than the entity cache, and should not direct readers to the entity cache preview.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Use .inspect_err(|e| self.re... | null |
apollographql__router__7940 | apollographql/router | 7,940 | defect | 0d3a8c98d0dd9fffa9770ba6c4045b6bf5ca9af1 | 532653a6b756a71d1d4d93c83093bd2550b9edcd | response_cache: change structure of debugger data | Change the structure of caching to be consistent with connectors debugger structure
<!-- [ROUTER-1386] -->
---
**Checklist**
Complete the checklist (and note appropriate exceptions) before the PR is marked ready-for-review.
- [x] PR description explains the motivation for the change and relevant context fo... | diff --git a/apollo-router/src/plugins/response_cache/plugin.rs b/apollo-router/src/plugins/response_cache/plugin.rs
index b7c53f054d..24e7197af0 100644
--- a/apollo-router/src/plugins/response_cache/plugin.rs
+++ b/apollo-router/src/plugins/response_cache/plugin.rs
@@ -86,6 +86,7 @@ pub(crate) const CONTEXT_CACHE_KEY:... | 1 | 1 | 0 | [{"id": "G0", "claim": "The ~same 20-line cache-check block used multiple times in the postgres integration tests could be extracted into a helper function.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apollographql__router__8013 | apollographql/router | 8,013 | defect | 1ec121463a379ad3928e996e61c16ec5bf0e7670 | 98608c51b3f5ce00ce11564e23e2aadc93f8d8d5 | [Subgraph Insights] Add Apollo Subgraph Fetch Histogram to Telemetry Plugin | <!-- start metadata -->
<!-- [ROUTER-1406] -->
---
**Description**
This change adds a new, experimental histogram to capture subgraph fetch duration for Apollo Studio. The instrument,
`apollo.router.operations.fetch.duration` has the following attributes:
- `apollo.client.name`
- `apollo.client.version`
- `ha... | diff --git a/.changesets/feat_rreg_experimental_subgraph_metrics.md b/.changesets/feat_rreg_experimental_subgraph_metrics.md
new file mode 100644
index 00000000000..2b0c32d9a9f
--- /dev/null
+++ b/.changesets/feat_rreg_experimental_subgraph_metrics.md
@@ -0,0 +1,27 @@
+### [Subgraph Insights] Experimental Apollo Subgra... | 12 | 11 | 4 | [{"id": "G0", "claim": "The internal Pulsr ticket reference tag should be removed from the changeset file.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer questioned whether seconds is the right unit for the fetch-duration histogram, w... | null |
apollographql__router__8045 | apollographql/router | 8,045 | defect | 9a0ac15e399b7cdd261858b0ac017fb7acf4ae37 | 02c13a37f6056a3bb77240ada084273d19850f53 | [Subgraph Insights] Add Apollo Connectors Fetch Histogram to Telemetry Plugin | <!-- start metadata -->
<!-- [ROUTER-1406] -->
---
## Description
This is a follow-up to #8013 to add the same functionality for connector fetches. It also adds additional connector instrument selectors that can also be utilized for user-defined custom instruments.
### New Apollo Connector Fetch Histogram
Thi... | diff --git a/.changesets/feat_rreg_additional_connector_instrument_selectors.md b/.changesets/feat_rreg_additional_connector_instrument_selectors.md
new file mode 100644
index 0000000000..a00c65c7bb
--- /dev/null
+++ b/.changesets/feat_rreg_additional_connector_instrument_selectors.md
@@ -0,0 +1,20 @@
+### Additional C... | 1 | 1 | 0 | [{"id": "G0", "claim": "The test error message \"Server did bad thing\" in connector_response_with_mapped_error should be updated.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apollographql__router__8104 | apollographql/router | 8,104 | defect | 8ac0bd955bcb021c0894619769f1a431ebfbeb78 | 4b1af3d1c595434a4865894090bc4dff1fa5c937 | fix(subscription): fix deduplication and websocket stream termination | A regression was introduced in https://github.com/apollographql/router/pull/7879 while attempting to fix an earlier regression. In this PR, we removed the client connection closing signal, which had been unnecessary and was causing deduplicated subscriptions to stop receiving events when the original (first) matching s... | diff --git a/apollo-router/src/notification.rs b/apollo-router/src/notification.rs
index 0acaccb161b..4af6fc542cd 100644
--- a/apollo-router/src/notification.rs
+++ b/apollo-router/src/notification.rs
@@ -53,11 +53,14 @@ pub(crate) enum NotifyError<K, V> {
type ResponseSender<V> =
oneshot::Sender<Option<(broadcas... | 12 | 9 | 0 | [{"id": "G0", "claim": "The doc comment on create_or_subscribe should be rewritten to properly describe the returned tuple (handle, created flag, closing signal), as proposed in the suggestion block.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "... | null |
apollographql__router__8161 | apollographql/router | 8,161 | defect | 54cc75dd089354873aa00c4ba2cb24a8febefa2d | b9aed42ae8dd208f71afa24777651831df599815 | fix: correct Redis client counting metric | This PR removes the `apollo.router.cache.redis.connections` metric and replaces it with a `apollo.router.cache.redis.clients`.
The `connections` metric was implemented with an up-down counter which would sometimes not be collected properly (i.e. it could go negative). The name `*.connections` was also inaccurate giv... | diff --git a/apollo-router/src/cache/metrics.rs b/apollo-router/src/cache/metrics.rs
index c128d43f5ca..135ea3f199e 100644
--- a/apollo-router/src/cache/metrics.rs
+++ b/apollo-router/src/cache/metrics.rs
@@ -10,6 +10,7 @@ use opentelemetry::metrics::MeterProvider;
use opentelemetry::metrics::ObservableGauge;
use tok... | 5 | 5 | 0 | [{"id": "G0", "claim": "The pull request still needs docs and changelog entries.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new client-count gauge lacks a unit on its instrument.", "category": "correctness", "verdict": "supported", "priori... | null |
apollographql__router__8185 | apollographql/router | 8,185 | defect | b9c3047d758be3eed0f37ccd2ed0e4c84bf5e456 | de7d98c9a88ab8bd139bb4c8de52f836e69ab1d3 | fix: respect Redis cluster slots when inserting multiple items | The existing insert code will silently fail when we try to insert multiple values which correspond to different [Redis cluster hash slots](https://redis.io/docs/latest/operate/oss_and_stack/reference/cluster-spec/#key-distribution-model). This PR corrects that behavior, raises errors when inserts fail, adds new metrics... | diff --git a/.changesets/fix_caroline_redis_fixes.md b/.changesets/fix_caroline_redis_fixes.md
new file mode 100644
index 00000000000..cc7e994f265
--- /dev/null
+++ b/.changesets/fix_caroline_redis_fixes.md
@@ -0,0 +1,13 @@
+### Respect Redis cluster slots when inserting multiple items ([PR #8185](https://github.com/ap... | 5 | 2 | 0 | [{"id": "G0", "claim": "The PR should state (and have) a testing strategy: nothing shows how the Redis cluster insert behaviour is actually tested.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The changeset's `kind` values (`APQ`, `query planner`, `... | null |
apollographql__router__8192 | apollographql/router | 8,192 | defect | be798af2e7653df0541eb819b748667865677a47 | c0cd5ad17923a95482a6b4f4c469da729488e836 | internal: Plugins get a copy of the previous config in init | This is prep work so that we can remove some of the complexities around telemetry startup and detect when we actually need to update exporters.
Currently this information is stored in a static. This PR will enable us to detect if the telemetry exported actually need replacing. e.g. if config changes.
For the vast... | diff --git a/apollo-router/src/plugin/mod.rs b/apollo-router/src/plugin/mod.rs
index 28cb9a0261..c579b6e317 100644
--- a/apollo-router/src/plugin/mod.rs
+++ b/apollo-router/src/plugin/mod.rs
@@ -69,6 +69,8 @@ pub static PLUGINS: [Lazy<PluginFactory>] = [..];
pub struct PluginInit<T> {
/// Configuration
pub c... | 3 | 3 | 0 | [{"id": "G0", "claim": "The unit-test module the pull request added to apollo-router/src/plugin/mod.rs should be deleted (the comment carries an empty suggestion block over the test code).", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "with_deserialized... | null |
apollographql__router__8392 | apollographql/router | 8,392 | defect | babc29d616e99eacbecef05d0cb566c85f99ce7e | b445f14d8f3e9aad2d8c7e43bb7b6b1e07460f4f | [Subgraph Insights] Promote Subgraph Metrics config to GA | This PR removes the `preview` prefix from the Apollo telemetry `subgraph_metrics` config which is now GA.
<!-- start metadata -->
<!-- [ROUTER-1476] -->
---
**Checklist**
Complete the checklist (and note appropriate exceptions) before the PR is marked ready-for-review.
- [ ] PR description explains the ... | diff --git a/.changesets/config_david_subgraph_metrics_ga.md b/.changesets/config_david_subgraph_metrics_ga.md
new file mode 100644
index 0000000000..d97cb68fc8
--- /dev/null
+++ b/.changesets/config_david_subgraph_metrics_ga.md
@@ -0,0 +1,11 @@
+### [Subgraph Insights] Subgraph metrics config flag now GA ([PR #8200](h... | 1 | 1 | 0 | [{"id": "G0", "claim": "The changeset file should link to PR #8392 instead of #8200, both in the title and at the bottom of the file.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apollographql__router__8514 | apollographql/router | 8,514 | defect | 494889cc743dcd89566ddca5964e238b5d9600e4 | 97386b124fe0aaa77abb329c1dbb03e38aed781e | Ensure datadog propagator is exclusively active | <!-- start metadata -->
<!-- [ROUTER-1361] -->
---
Adds validation for propagator configuration, ensuring that:
- If the datadog propagator is enabled, no other propagators can be enabled (except baggage)
- If datadog tracing is enabled and other propagators are enabled, the datadog one must be disabled
You... | diff --git a/.changesets/maint_rohan_b99_datadog_propagator_must_be_exclusively_active.md b/.changesets/maint_rohan_b99_datadog_propagator_must_be_exclusively_active.md
new file mode 100644
index 0000000000..f54652d990
--- /dev/null
+++ b/.changesets/maint_rohan_b99_datadog_propagator_must_be_exclusively_active.md
@@ -... | 2 | 1 | 0 | [{"id": "G0", "claim": "The new datadog propagation tests could be consolidated with rstest to parameterise the different scenarios/combinations, as recently used elsewhere in the codebase.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new ... | null |
apollographql__router__8524 | apollographql/router | 8,524 | defect | 3ad1db68ca93605520c9bd6c2361a778cd9e8651 | 0874b6aac3119b85a69b8109aff17acd2ac73c16 | feat(response_cache): add selectors for telemetry to create metrics based on cache-control values | New selector `response_cache_control` added in telemetry for subgraph service to know what's the content of the computed [`Cache-Control` header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cache-Control) from the subgraph response.
Example of attributes added to metrics:
```yaml
telemetr... | diff --git a/.changesets/feat_bnjjj_router_1506.md b/.changesets/feat_bnjjj_router_1506.md
new file mode 100644
index 00000000000..27f7eae4d4b
--- /dev/null
+++ b/.changesets/feat_bnjjj_router_1506.md
@@ -0,0 +1,28 @@
+### Add selectors for telemetry to create metrics based on cache-control values ([PR #8524](https://g... | 5 | 3 | 1 | [{"id": "G0", "claim": "The pull request lacks the documentation for the new response_cache_control selectors, which the author notes as missing.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The changeset example should use the examples from the... | null |
apollographql__router__8531 | apollographql/router | 8,531 | defect | c4980f504a1c0edc2a69f5739625a53b3407abfd | 5f8ad1756f4f85f1016a0b6f72505e9633aeee47 | fix(response_cache): display cache tags generated from subgraph response in debugger | Get generated cache tags from subgraph response (in `extensions`) when using the debugger.
> For performance reasons. These generated cache tags will only be displayed if the data has been cached in debug mode
<!-- [ROUTER-1512] -->
---
**Checklist**
Complete the checklist (and note appropriate exceptions)... | diff --git a/.changesets/fix_bnjjj_router_1512.md b/.changesets/fix_bnjjj_router_1512.md
new file mode 100644
index 00000000000..91b2ab7e62a
--- /dev/null
+++ b/.changesets/fix_bnjjj_router_1512.md
@@ -0,0 +1,7 @@
+### fix(response_cache): display cache tags generated from subgraph response in debugger ([PR #8531](http... | 5 | 3 | 0 | [{"id": "G0", "claim": "The reviewer asks whether the cache-tags-from-subgraph-extensions change should also be called out in the changelog.", "category": "documentation", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In cache_lookup_root and cache_lookup_entities the reviewer a... | null |
apollographql__router__8636 | apollographql/router | 8,636 | defect | 7cb4bf297cc6d44d7a69747f7b5f41c86cabcbc1 | 08b168eb61faa5d4f3d825ded973986f5aa8f1b7 | feat(http2): configure max allowed header list size | customers need a way to get around hyper's default limit for http2's header list size (it defaults to 16kb); this pr introduces a configuration under limit (to match what's currently in place for http1), adds tests for that configuration/enforcement, and backfills some http tests. In particular:
* certs are for localh... | diff --git a/.gitleaks.toml b/.gitleaks.toml
index a93faa19ab..76af5ba084 100644
--- a/.gitleaks.toml
+++ b/.gitleaks.toml
@@ -47,6 +47,7 @@
paths = [
'''^apollo-router\/src\/.+\/testdata\/.+''',
+ '''^apollo-router\/tests\/integration\/fixtures\/.+''',
]
[[ rules ]]
diff ... | 4 | 4 | 1 | [{"id": "G0", "claim": "The tests added here that use the new certificates will start failing in a year because tls_localhost.crt expires in 2026; reuse the certs from the earlier self-signed-cert test (which has a 10-year expiry and a note about it) or regenerate with a longer expiry date.", "category": "testing", "ve... | null |
apollographql__router__8673 | apollographql/router | 8,673 | defect | d0d84311281e8d01b2b6962bcac46a0bc30cf48f | 54fb94584275550e72caafca2c43366e898bf040 | feat(http2): configure header list size for tcp/uds | <!-- start metadata -->
<!-- [ROUTER-####] -->
---
**Checklist**
Complete the checklist (and note appropriate exceptions) before the PR is marked ready-for-review.
- [ ] PR description explains the motivation for the change and relevant context for reviewing
- [ ] PR description links appropriate GitHub/J... | diff --git a/.changesets/feat_http2_header_size_limits_for_tcp_uds.md b/.changesets/feat_http2_header_size_limits_for_tcp_uds.md
new file mode 100644
index 00000000000..a60cd461475
--- /dev/null
+++ b/.changesets/feat_http2_header_size_limits_for_tcp_uds.md
@@ -0,0 +1,5 @@
+### Enables HTTP/2 header size limits for TCP... | 2 | 1 | 0 | [{"id": "G0", "claim": "The header size values could exceed u32::MAX (and usize::MAX for the buffer size), so the `as` casts could truncate and the reviewer prefers `try_from()` instead of the `as` casts.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim"... | null |
apollographql__router__8679 | apollographql/router | 8,679 | defect | da2245d617c640ea655c5122a015d8ce67e8232a | 318fff6bce2dbfcbf96164043c6fff15d7971f27 | fix(coprocessor): context keys/values not deleted across stages | Ensure that coprocessor keys that are deleted in a previous stage do not re-appear in later stages
<!-- start metadata -->
<!-- [ROUTER-1548] -->
---
**Checklist**
Complete the checklist (and note appropriate exceptions) before the PR is marked ready-for-review.
- [ ] PR description explains the motivat... | diff --git a/apollo-router/src/context/mod.rs b/apollo-router/src/context/mod.rs
index 5b33b66146..df98c35e6e 100644
--- a/apollo-router/src/context/mod.rs
+++ b/apollo-router/src/context/mod.rs
@@ -255,6 +255,10 @@ impl Context {
}
}
+ pub(crate) fn remove<K: Into<String>>(&self, key: K) -> Option<(... | 4 | 4 | 1 | [{"id": "G0", "claim": "The reviewer asks whether the code could avoid allocations by not cloning keys and returning a HashSet<&str> instead of an owned HashSet.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer suggests replacing target_c... | null |
apollographql__router__8711 | apollographql/router | 8,711 | defect | 901d6590c91ced796233496567eee3ea4040ec31 | 4acc3a671b2c6112db38b9446351af709c8d7f3a | fix: fix response cache fetch error metric | Replaces #8644.
We noticed that the `apollo.router.operations.response_cache.fetch.error` metric was out of sync with the `apollo.router.cache.redis.errors` metric, because errors were not being returned from the Redis client wrapper. This PR changes the response caching plugin to increment the error metric as expec... | diff --git a/.changesets/fix_caroline_mget_metrics_fix_2.md b/.changesets/fix_caroline_mget_metrics_fix_2.md
new file mode 100644
index 0000000000..926364f458
--- /dev/null
+++ b/.changesets/fix_caroline_mget_metrics_fix_2.md
@@ -0,0 +1,5 @@
+### Fix response cache fetch error metric ([PR #8711](https://github.com/apol... | 1 | 1 | 0 | [{"id": "G0", "claim": "The changeset file should wrap the metric names `apollo.router.operations.response_cache.fetch.error` and `apollo.router.cache.redis.errors` in backticks.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apollographql__router__8764 | apollographql/router | 8,764 | defect | 42f63beba2887e066fca456d1dad7ab60354a881 | beaf217a919e3ea2c43e2e452c3e6d9b4e0aa1da | fix(response_cache): don't duplicate redis connection if we specify custom config for a subgraph | <!-- start metadata -->
## Response Cache - Redis Connection Management
Fixed an issue where the response cache would create duplicate Redis connections when a custom configuration was specified for individual subgraphs (without any specific Redis configuration). Previously, if a subgraph inherited the same Redis... | diff --git a/.changesets/fix_bnjjj_dont_duplicate_redis_connection.md b/.changesets/fix_bnjjj_dont_duplicate_redis_connection.md
new file mode 100644
index 0000000000..e7088983df
--- /dev/null
+++ b/.changesets/fix_bnjjj_dont_duplicate_redis_connection.md
@@ -0,0 +1,8 @@
+### Response cache: don't duplicate redis conne... | 4 | 4 | 0 | [{"id": "G0", "claim": "The test could use `IntegrationTest::assert_metrics_contains` instead of manually fetching the metrics text and checking it with a local helper.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Making the test helper `check... | null |
apollographql__router__8767 | apollographql/router | 8,767 | defect | 47626845bec39c9157c83d82cb2d337f92561644 | bd2d20707b48e2aa92e258eacd102edab02f91d4 | fix(response caching): nullable fields in entities | <!-- start metadata -->
<!-- [ROUTER-1582] -->
---
**Checklist**
Complete the checklist (and note appropriate exceptions) before the PR is marked ready-for-review.
- [ ] PR description explains the motivation for the change and relevant context for reviewing
- [ ] PR description links appropriate GitHub/J... | diff --git a/apollo-router/src/plugins/response_cache/plugin.rs b/apollo-router/src/plugins/response_cache/plugin.rs
index cdddf8d96e1..b6870351371 100644
--- a/apollo-router/src/plugins/response_cache/plugin.rs
+++ b/apollo-router/src/plugins/response_cache/plugin.rs
@@ -2189,6 +2189,15 @@ pub(in crate::plugins) fn ma... | 2 | 2 | 2 | [{"id": "G0", "claim": "The pull request's tests never verify the generated cacheTag for nullable key data; a test should confirm what a @cacheTag sets for a null field, and the new integration test should also check body.extensions to see the generated cacheTag.", "category": "testing", "verdict": "supported", "priori... | null |
apollographql__router__8816 | apollographql/router | 8,816 | defect | 80281178043bd9c8339e94b43afd68504440dc5c | 16ac9ba7c73f16549c3498de67b8b88e40297c57 | Pass variables to introspection | Pass variables to introspection to enable introspection queries to use `@include` and `@skip` directives.
Resolves https://github.com/apollographql/router/issues/3831
<!-- start metadata -->
<!-- [ROUTER-944] -->
---
**Checklist**
Complete the checklist (and note appropriate exceptions) before the PR is m... | diff --git a/.changesets/fix_fix_jefrey_introspection_variables.md b/.changesets/fix_fix_jefrey_introspection_variables.md
new file mode 100644
index 00000000000..1a89f789821
--- /dev/null
+++ b/.changesets/fix_fix_jefrey_introspection_variables.md
@@ -0,0 +1,5 @@
+### fix: variables missing from introspection queries ... | 2 | 2 | 1 | [{"id": "G0", "claim": "If serde_json fails to serialize the normalized variables, unwrap_or_default() silently falls back to an empty string as the cache key, so two different sets of unserializable variables can collide in the introspection cache; the reviewer asks for a warning on failure and, preferably, skipping t... | null |
apollographql__router__8884 | apollographql/router | 8,884 | defect | df5ea93f4380c2cc670cb68d062ab99e3bbb6105 | 89c2c810fa4fb417ef96a969254a9e3523fbfd18 | fix: support opt-out of strict variable validation | #8821 fixed a gap in variable validation whereby the presence of unknown fields on an input object variable did not cause a request error as they should have. As a result, the stricter validation may cause breakages for customers.
To alleviate that potential pain point while customers update their variables to be c... | diff --git a/apollo-router/src/configuration/mod.rs b/apollo-router/src/configuration/mod.rs
index ab126e4d9b0..b290dc8ec95 100644
--- a/apollo-router/src/configuration/mod.rs
+++ b/apollo-router/src/configuration/mod.rs
@@ -49,6 +49,7 @@ use self::subgraph::SubgraphConfiguration;
use crate::ApolloRouterError;
use cr... | 4 | 3 | 0 | [{"id": "G0", "claim": "The new run_validation_warn_mode test macro still needs to be fixed before the PR is ready (the author flagged it as draft work needing rework).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The // todo comments left on ... | null |
apollographql__router__8903 | apollographql/router | 8,903 | defect | 5566249e9a38ecbeb2d918a3aa4b0c03d5fbc0a3 | 2f3351038ff54f2dc532248b5d7aac926e6344ae | [fix]: Added missing details of unknown interface in satisfiability | In `apollo-federation`, the `fails_on_interface_object_with_some_unreachable_implementation` tests is failing. The source of the failure is that the returned error message should include details about one of the subgraphs using an unknown interface.
The crux of the issue lies in `QueryGraphEdgeTransition::matches_su... | diff --git a/apollo-federation/src/query_graph/mod.rs b/apollo-federation/src/query_graph/mod.rs
index 59e882fdf43..290de44cba3 100644
--- a/apollo-federation/src/query_graph/mod.rs
+++ b/apollo-federation/src/query_graph/mod.rs
@@ -368,7 +368,7 @@ impl QueryGraphEdgeTransition {
"Supergraphs shouldn't hav... | 1 | 1 | 0 | [{"id": "G0", "claim": "The reasoning for why the fake-downcast arm performs this comparison is not clear from the Rust and TypeScript code and should be documented.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}] | null |
apollographql__router__8931 | apollographql/router | 8,931 | defect | 0e32ea360c9c72755f47a220ef3ad5e6935446c6 | f4d9ea4c16997efbe69a08d54b54f96bb8ae61f6 | fix(composition): emit implements on type definition instead of extend type | The Rust composition implementation was emitting object types that implement interfaces in a split form. So the SDL had a main type definition without implements and a separate extend type implements block. In merge_implements, we were passing the source subgraph’s ComponentName into insert_implements_interface. When a... | diff --git a/apollo-federation/src/merger/merger.rs b/apollo-federation/src/merger/merger.rs
index 2736dcfe7b..47ab3a5dc4 100644
--- a/apollo-federation/src/merger/merger.rs
+++ b/apollo-federation/src/merger/merger.rs
@@ -17,6 +17,8 @@ use apollo_compiler::ast::Type;
use apollo_compiler::ast::Value;
use apollo_compi... | 1 | 1 | 0 | [{"id": "G0", "claim": "The test should assert against a full expected composed schema via insta (e.g. `assert_snapshot!(supergraph.schema().schema())`) instead of a series of manual assertions.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apollographql__router__8946 | apollographql/router | 8,946 | defect | ff3bde47069a3fa6393b236cbd56ca8e85602ec6 | 1193941cf48c9c897c14fc9a20ed938d2be90cbc | fix(composition): merged types have different descriptions | <!-- start metadata -->
When the same type is defined in multiple subgraphs with different descriptions, composition had to pick one for the supergraph. The previous logic chose the description with the highest count; when each description appeared once, it broke the tie using the iteration order of the internal map. ... | diff --git a/apollo-federation/src/merger/merger.rs b/apollo-federation/src/merger/merger.rs
index 47ab3a5dc41..005ad9691ca 100644
--- a/apollo-federation/src/merger/merger.rs
+++ b/apollo-federation/src/merger/merger.rs
@@ -91,7 +91,6 @@ use crate::subgraph::typestate::Validated;
use crate::supergraph::CompositionHin... | 4 | 3 | 1 | [{"id": "G0", "claim": "In the new descriptions map both String values can be &str: use `.trim()` instead of `.trim().to_string()`, `.unwrap_or(\"\")` instead of `.unwrap_or_default()`, and store a reference instead of cloning the subgraph name.", "category": "design", "verdict": "supported", "priority": "P2", "scope":... | null |
apollographql__router__8972 | apollographql/router | 8,972 | defect | 04d42e2ea40428321e1209657c5c3b9e2f4fc996 | 816706ae2533401b71209a04321c6e0093799960 | Report http.client.response.body.size and http.server.response.body.size consistently if content-length is not present or compression is used | Currently reporting these metrics relies on either the Content-Length header, or the size_hint (which will report uncompressed size).
This PR should consistently report the compressed size if compression is used, even if Content-Length is not present, for:
- Router -> Client responses
- Subgraph -> Router responses
... | diff --git a/.changesets/fix_rohan_b99_inconsistent_reporting_http_client_response_body_size.md b/.changesets/fix_rohan_b99_inconsistent_reporting_http_client_response_body_size.md
new file mode 100644
index 0000000000..54578564ef
--- /dev/null
+++ b/.changesets/fix_rohan_b99_inconsistent_reporting_http_client_response... | 2 | 2 | 0 | [{"id": "G0", "claim": "The new http_server_response_body_size block in the supergraph plugin is unclear: what does `inner.updated` mean, and is the cloned histogram acting like an `Arc` or is it a separate copy of the histogram that somehow gets merged again later when reporting to a metrics collector?", "category": "... | null |
apollographql__router__9022 | apollographql/router | 9,022 | defect | 37da14f155f0ed5aba1e9e717c6c4dbb1436f994 | 4b59330db1488f9786f7a18ceecd40ffed958c19 | fix(authorization): return null data and respect error location config for fully-unauthorized requests | When the query planner rejects a request because all fields are unauthorized, the response was always returned with errors in the `errors` array and `data: {}` — ignoring the configured `errors.response` location and returning an empty object instead of `null`.
... | diff --git a/.changesets/fix_caroline_router_1569.md b/.changesets/fix_caroline_router_1569.md
new file mode 100644
index 0000000000..bc3a0a9897
--- /dev/null
+++ b/.changesets/fix_caroline_router_1569.md
@@ -0,0 +1,5 @@
+### Return null data and respect error location config for fully-unauthorized requests ([PR #9022]... | 1 | 1 | 0 | [{"id": "G0", "claim": "The style guide prefers referring to Router as \"the router\", so the added docs sentence should say \"the router returns\" instead of \"Router returns\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
apollographql__router__9051 | apollographql/router | 9,051 | defect | 97588ac51efcd4fc15deb06559cefb2c694c926d | 5194667a5aa981732c233c9fd234e3658a3d5761 | Update tokio-tungstenite to v0.29.0 to support non-ASCII WebSocket headers | Updating the `tokio-tungstenite` dependency to version v0.29.0 which includes a change to `tungstenite-rs` to support non-ASCII header values.
<!-- start metadata -->
<!-- [ROUTER-####] -->
---
**Checklist**
Complete the checklist (and note appropriate exceptions) before the PR is marked ready-for-review.
... | diff --git a/.changesets/fix_zach_router_1485_non_ascii_websocket_headers.md b/.changesets/fix_zach_router_1485_non_ascii_websocket_headers.md
new file mode 100644
index 0000000000..642b6b32e2
--- /dev/null
+++ b/.changesets/fix_zach_router_1485_non_ascii_websocket_headers.md
@@ -0,0 +1,7 @@
+### Update tokio-tungsteni... | 1 | 1 | 1 | [{"id": "G0", "claim": "An integration test should be added in apollo-router/tests/integration/subscriptions/ws_passthrough.rs (possibly instead of the unit test), because Cargo.lock shows axum still using the old tokio-tungstenite version, so it is worth checking the behavior is fixed holistically by running the route... | null |
apollographql__router__9055 | apollographql/router | 9,055 | defect | 5a36539b979561ea0a07b966f765e364a6a244e3 | ec9b782483b26b2e08ef29bf8e4a39982c53679e | Add support for emitting Apollo OTLP metrics and traces via HTTP | <!-- start metadata -->
<!-- [ROUTER-####] -->
Adds experimental support for sending Apollo OTLP metrics and traces via HTTP. This can be enabled using the config values:
- `telemetry.apollo.experimental_otlp_tracing_protocol`
- `telemetry.apollo.experimental_otlp_metrics_protocol`
GRPC is still the preferre... | diff --git a/.changesets/exp_http_otel_producer.md b/.changesets/exp_http_otel_producer.md
new file mode 100644
index 0000000000..5450a70761
--- /dev/null
+++ b/.changesets/exp_http_otel_producer.md
@@ -0,0 +1,9 @@
+### Add support for sending Apollo OTel metrics and traces via HTTP ([PR #9055](https://github.com/apoll... | 2 | 2 | 0 | [{"id": "G0", "claim": "Consider moving the metadata construction into the gRPC path, since MetadataMap is a tonic struct and the HTTP path does not use it (the reviewer is unsure whether it matters).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The ... | null |
apollographql__router__9060 | apollographql/router | 9,060 | defect | 4f85e2c183a80994fa036fbb257c44b318ec4dd0 | efc6757ca0d550772f43e3520af6535c4b5fb449 | fix(composition): correct Query._service type nullability update | <!-- start metadata -->
- When _service already exists, upgrade its return type to non-null _Service using `ObjectFieldDefinitionPosition::get_type / set_type` (try_get is read-only).
- Add a note on SERVICE_TYPE_SPEC that federation expects sdl: String! and the spec field should move to NonNullNamed when compatibili... | diff --git a/apollo-federation/src/schema/schema_upgrader.rs b/apollo-federation/src/schema/schema_upgrader.rs
index a145a23d8a1..a8a8c847fb2 100644
--- a/apollo-federation/src/schema/schema_upgrader.rs
+++ b/apollo-federation/src/schema/schema_upgrader.rs
@@ -1129,7 +1129,7 @@ mod tests {
scalar _Any
... | 5 | 4 | 2 | [{"id": "G0", "claim": "The previous `ensure_same_fields` nullability logic was matching the JS implementation, implying the new bidirectional relaxation added by this change may not.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The NOTE on `SERVI... | null |
apollographql__router__9164 | apollographql/router | 9,164 | defect | d020543f6bd188545bebdf5c0605927f987da9a9 | b809f3dc69b87a13a42f770794901732999ec1b3 | fix(composition): Fix port of `@composeDirective` | While reviewing #8936, I noticed some issues in the PR, but there were also more issues in the surrounding code for `@composeDirective`. This PR brings the Rust port more inline with the JS code (including the changes that #8936 were trying to port over). There were also a fair amount of issues with the tests, and I've... | diff --git a/apollo-federation/src/link/argument.rs b/apollo-federation/src/link/argument.rs
index c800844662a..a8cf9b78af1 100644
--- a/apollo-federation/src/link/argument.rs
+++ b/apollo-federation/src/link/argument.rs
@@ -71,6 +71,8 @@ pub(crate) fn directive_required_string_argument<'doc>(
) -> Result<&'doc str, F... | 7 | 5 | 0 | [{"id": "G0", "claim": "The `println!(\"{:?}\", result.hints());` line added in the inconsistent_feature_versions test is leftover debugging output and should be removed.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comment above merge_directive_d... | null |
apollographql__router__9187 | apollographql/router | 9,187 | defect | 4b92d0db540f99d3fd232b13b771ba01b9280a1a | c04addd61691aebf0f4fc62041368903e76da38e | feat(telemetry): add request_duration router selector | ## Summary
Adds a new `request_duration` selector for the router service that returns the total elapsed time from when the router received the request. The unit is configurable: `seconds` (float), `milliseconds` (integer), or `nanoseconds` (integer).
```yaml
telemetry:
instrumentation:
instruments:
router... | diff --git a/.changesets/feat_caroline_router_1688.md b/.changesets/feat_caroline_router_1688.md
new file mode 100644
index 0000000000..99a36fdea5
--- /dev/null
+++ b/.changesets/feat_caroline_router_1688.md
@@ -0,0 +1,27 @@
+### Add `request_duration` router selector ([PR #9187](https://github.com/apollographql/router... | 2 | 1 | 0 | [{"id": "G0", "claim": "As a sanity check, verify that the other selectors also use floats for seconds, as the changeset's `seconds` (float) line implies.", "category": "documentation", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The `as i64` casts of `duration.as_millis()` ... | null |
apollographql__router__9229 | apollographql/router | 9,229 | defect | 411d6bab0da69b5793648866020937cc395b1eb8 | b68e5859e1e8c03a4a233620f7b6c6511d4b0afb | fix(composition): handle missing directive definitions for older fed versions | `SpecDefinition::directive_definition()` errors when a directive name resolves through the federation link prefix but the definition doesn't exist in the schema. This happens for directives added in newer federation versions (e.g. `@policy` in v2.6, `@fromContext` in v2.8) when subgraphs use an older version like v2.5.... | diff --git a/apollo-federation/src/merger/merge_directive.rs b/apollo-federation/src/merger/merge_directive.rs
index c7bd7aac38a..6d89b4551d2 100644
--- a/apollo-federation/src/merger/merge_directive.rs
+++ b/apollo-federation/src/merger/merge_directive.rs
@@ -656,9 +656,12 @@ impl Merger {
&REQUIR... | 1 | 1 | 0 | [{"id": "G0", "claim": "The repeated directive-definition lookup pattern should be extracted into a `try_directive_definition` helper.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apollographql__router__9230 | apollographql/router | 9,230 | defect | 411d6bab0da69b5793648866020937cc395b1eb8 | b360673c5f9070760efc3a078255d30a0c99df9c | fix(composition): plumb CompositionOptions through composition API | ## Background
The ignored satisfiability test `errors_when_max_validation_subgraph_paths_is_exceeded` in [`apollo-federation/tests/composition/validation_errors.rs`](apollo-federation/tests/composition/validation_errors.rs) is marked `#[ignore = "until merge implementation completed"]`. It expects composition to fai... | diff --git a/apollo-federation/cli/src/main.rs b/apollo-federation/cli/src/main.rs
index a92f9ffa36..fd7a8c9431 100644
--- a/apollo-federation/cli/src/main.rs
+++ b/apollo-federation/cli/src/main.rs
@@ -12,6 +12,7 @@ use apollo_federation::ApiSchemaOptions;
use apollo_federation::Supergraph;
use apollo_federation::ba... | 1 | 1 | 0 | [{"id": "G0", "claim": "The CompositionOptions struct should be moved from merger.rs to composition/mod.rs, since it is used from the top-level compose method there.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apollographql__rover__1627 | apollographql/rover | 1,627 | defect | 8c43ff333ccbc07e0abca4fe0a890ac8e5227832 | 71304ae52f8c11764e8e3ade08dfcde6447797cd | feat: Support `supergraph.yml` for `rover dev` | Based on #1626 (needed to see more logs for testing)
Closes #1258
TODO:
- [x] Solve issue where router does not start if multiple subgraphs are configure using a complex router config (need a minimal reproduction still)
- [x] Docs
- [x] Double check env var support in supergraph.yml | diff --git a/docs/source/commands/dev.mdx b/docs/source/commands/dev.mdx
index b735e21158..7c7ea6abff 100644
--- a/docs/source/commands/dev.mdx
+++ b/docs/source/commands/dev.mdx
@@ -20,64 +20,82 @@ You can use Rover to start a local router that can query across one or more runn
Think plug-n-play USB devices but wit... | 4 | 3 | 0 | [{"id": "G0", "claim": "An issue the author observed also occurs on `main` with the standard `--url` pattern, so it is separate from this pull request and still needs to be tracked down.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "The variable ... | null |
apollographql__rover__1828 | apollographql/rover | 1,828 | defect | b5ea0c3d191fefa26fb676179fe35f94fc46b4d3 | 72b0bc19d2f018ce3947a7c8174d2741397c1be1 | Let rover download aarch binaries on OSX. | This PR updates the way the router binary name is retrieved, since the router is now compiled for the aarch target on OSX platforms.
Closes https://github.com/apollographql/rover/pull/1821
| diff --git a/latest_plugin_versions.json b/latest_plugin_versions.json
index 6472cb6294..2576bd8600 100644
--- a/latest_plugin_versions.json
+++ b/latest_plugin_versions.json
@@ -9,7 +9,7 @@
"router": {
"repository": "https://github.com/apollographql/router",
"versions": {
- "latest-1": "v1.37.0"
+ ... | 2 | 2 | 0 | [{"id": "G0", "claim": "The macOS router-version guard should use the `<` operator instead of `v.lt(&AARCH_OSX_FIRST_ROUTER_VERSION)`, matching the style used for linux a few lines below.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The AARCH_... | null |
apollographql__rover__1849 | apollographql/rover | 1,849 | defect | 7e1a41892ede8a171700d03b22d89512aa17d0e7 | d7bb8b63edac3158ad25f38c465ee206cc6329c0 | Let rover download aarch and x86_64 binaries on OSX. | This PR updates the way the router binary name is retrieved, since the router version 1.39.1 and above is compiled for both aarch and x86_64 targets on OSX platforms.
Followup to https://github.com/apollographql/rover/pull/1821
| diff --git a/src/command/install/plugin.rs b/src/command/install/plugin.rs
index dff8885a81..8186393b9d 100644
--- a/src/command/install/plugin.rs
+++ b/src/command/install/plugin.rs
@@ -10,9 +10,9 @@ use serde::{Deserialize, Serialize};
use crate::{utils::client::StudioClientConfig, RoverError, RoverErrorSuggestion... | 1 | 1 | 0 | [{"id": "G0", "claim": "The test variable names misspell \"thirty\" as \"tirty\"; rename `router_exact_one_tirty_eight` (and likewise the other `tirty` occurrences) to the correct spelling.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apollographql__rover__1999 | apollographql/rover | 1,999 | defect | 17313ea56b5160c32c2c6ca78808691a1eb537b1 | 609f361187bee981cdd92e9b4de1d8e4625b461a | Integrate the Smoke Tests Into Integration Test Framework To Allow Easier Extension | This PR converts our existing smoke tests to not be run from `xtask` but instead using `rstest` as part of the integration testing framework. This makes it easier to extend in future and allows us to use all of rust's built in assertion libraries etc.
The one caveat with this that I would say is that the use of `#[o... | diff --git a/Cargo.lock b/Cargo.lock
index 68a37a1999..7a8b17aa39 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1712,6 +1712,18 @@ version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "aac81fa3e28d21450aa4d2ac065992ba96a1d7303efbce51a95f4fd175b67562"
+[[package]]
+name = "duc... | 7 | 4 | 1 | [{"id": "G0", "claim": "The new e2e tests in tests/e2e/dev.rs are marked `#[ignore]`, so they are skipped by default and, without a dedicated CI invocation, would never be run.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The nested `block_in_place`/`... | null |
apollographql__rover__2005 | apollographql/rover | 2,005 | defect | 9b49532ec71ff580a6bcd7ab687ba31de6fc505e | cf26cb18d1b13531e51b355ea2800d89c4a74a1a | feat(tests): e2e for `supergraph compose` | ### notes
- also includes a what turned from a light refactoring of the e2e mod into something heavier; by introducing a `RetailSupergraphMetadata` struct to carry data about the supergraph being tested, we can more easily contain shared methods (like getting subgraph urls, names) but also control when subgraphs are... | diff --git a/Cargo.lock b/Cargo.lock
index df453c3c31..94e781d436 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4470,6 +4470,7 @@ dependencies = [
"predicates",
"prettytable-rs",
"rayon",
+ "regex",
"reqwest 0.12.5",
"robot-panic",
"rover-client",
diff --git a/Cargo.toml b/Cargo.toml
index e84686f12b..126d0a... | 2 | 2 | 0 | [{"id": "G0", "claim": "The newly added regex dependency should be declared as `regex = { workspace = true }` instead of a direct version pin, to match the repo's workspace-dependency convention.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Th... | null |
apollographql__rover__2028 | apollographql/rover | 2,028 | defect | f1d5abd048988d8802098728f42eb4019fdfb85b | 3c745576d03982a30d06fb0b903bd25aa1670069 | feat(tests): e2e for install plugin | - fixes PluginInstall, which didn't actually respect the --force flag | diff --git a/src/command/install/mod.rs b/src/command/install/mod.rs
index b52f84f154..956a69d000 100644
--- a/src/command/install/mod.rs
+++ b/src/command/install/mod.rs
@@ -46,7 +46,7 @@ impl Install {
self.elv2_license_accepter
.require_elv2_license(&client_config)?;
... | 1 | 1 | 1 | [{"id": "G0", "claim": "The e2e install test should validate the install's effects rather than rover's own success message: create a TempDir, point APOLLO_HOME at it, run the install against a known version (a pinned one or one read from latest_versions.json), and check that the right binary was downloaded at the right... | null |
apollographql__rover__2251 | apollographql/rover | 2,251 | defect | 27fcfc3643e80cc52380b46854dd578f2cb6d7e5 | ff00dbebd069b4a49702d9b5029c2a7b40c0c8fa | feat(supergraph compose): new composition pipeline | [smoke tests](https://github.com/apollographql/rover/actions/runs/11712628826)
to rerun, modify the smoke test yaml file with the target feature (two places): `cargo build --features "composition-rewrite" --target ${{ matrix.compile_target.target }} --test e2e` | diff --git a/.github/workflows/smoke-test.yml b/.github/workflows/smoke-test.yml
index 18ee22714e..5cc1a83be1 100644
--- a/.github/workflows/smoke-test.yml
+++ b/.github/workflows/smoke-test.yml
@@ -148,4 +148,4 @@ jobs:
contains(needs.*.result, 'failure')
|| contains(needs.*.result, 'cance... | 3 | 3 | 1 | [{"id": "G0", "claim": "The if-let/else picking the federation version could be simplified to self.opts.federation_version.as_ref().unwrap_or(resolver.federation_version()).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The expect message in the LATEST_... | null |
apollographql__rover__2282 | apollographql/rover | 2,282 | defect | 0f29d624e5509e91beb996ed4d258cbbc9e0d5f9 | c93e83706167835b4cebaaa82a3595de188c7910 | Support WhoAmI operation as a tower service | Adds WhoAmI as a tower operation so that it can be used generically as a trait.
```
async fn do_a_who_am_i_thing<S: Service<WhoAmIRequest>>(mut s: S)
```
It is also decoupled from the bundle of operations that is `StudioClient` so that it can be mocked in a more targeted way during tests (see the tests involved, as... | diff --git a/Cargo.lock b/Cargo.lock
index b0a5c3e925..0218617c5c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4716,7 +4716,10 @@ dependencies = [
"reqwest 0.12.7",
"robot-panic",
"rover-client",
+ "rover-graphql",
+ "rover-http",
"rover-std",
+ "rover-studio",
"rstest",
"semver",
"serde",
@@ -4769,19 +47... | 3 | 2 | 0 | [{"id": "G0", "claim": "The `blocking/` directory name primes readers to expect a blocking client although it now holds async methods, and the reviewer asks whether it can be renamed to something else.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "cla... | null |
apollographql__rover__2407 | apollographql/rover | 2,407 | defect | 06acfe48ce4856730f08201fc10eee688bfcefe9 | f8348b43f624ed49309d50d62c292b065ecdc75b | Upgrade Rust to v1.84.0 | As per title, we've had a long running PR to upgrade to Rust v1.83.0 and it's been so long it's behind a lot of the commits in the `dev` refactor. This remakes that branch and moves us to Rust v1.84.0 | diff --git a/Cargo.lock b/Cargo.lock
index 9a656565cf..46c7e6d3a3 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -851,16 +851,14 @@ checksum = "40e38929add23cdf8a366df9b0e088953150724bcbe5fc330b0d8eb3b328eec8"
[[package]]
name = "buildstructor"
-version = "0.5.4"
+version = "0.6.0"
source = "registry+https://github.c... | 1 | 1 | 0 | [{"id": "G0", "claim": "The _subgraph_name field added to FileSubgraphScenario looks unused — is it still needed, or can it be removed?", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apollographql__rover__2455 | apollographql/rover | 2,455 | defect | 681ad4bc76ab3f411e39468a3f1b2354334d26ae | 291032eaa0cc4d5dc3dc680f6be5d92783c86653 | e2e test scaffolding for init | <!--
First, 🌠 thank you 🌠 for taking the time to consider a contribution to Apollo!
Here are some important details to follow:
* ⏰ Your time is important
To save your precious time, if the contribution you are making will
take more than an hour, please make sure it has been discussed in an
... | diff --git a/.github/workflows/smoke-test.yml b/.github/workflows/smoke-test.yml
index 6073f393f0..5c9fa5266a 100644
--- a/.github/workflows/smoke-test.yml
+++ b/.github/workflows/smoke-test.yml
@@ -45,13 +45,13 @@ jobs:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
.... | 1 | 1 | 0 | [{"id": "G0", "claim": "The `--features init` flag hard-coded in smoke-test.yml should be made a workflow input so the smoke tests can be executed with different features (e.g., run with `init` on PRs but leave it off for the scheduled runs that test many router versions).", "category": "design", "verdict": "supported"... | null |
apollographql__rover__2470 | apollographql/rover | 2,470 | defect | 57aecd030eec017211910dca1b70b5da55b5b659 | 693f3bde44e45f92ddebf15506b4357686e65554 | Add prompt for project name with validation for init command | <!--
First, 🌠 thank you 🌠 for taking the time to consider a contribution to Apollo!
Here are some important details to follow:
* ⏰ Your time is important
To save your precious time, if the contribution you are making will
take more than an hour, please make sure it has been discussed in an
... | diff --git a/src/command/init/mod.rs b/src/command/init/mod.rs
index c0fc4764cf..c18a912618 100644
--- a/src/command/init/mod.rs
+++ b/src/command/init/mod.rs
@@ -1,6 +1,9 @@
+mod project;
+
use crate::options::{ProjectUseCase, ProjectUseCaseOpt};
use crate::{RoverOutput, RoverResult};
use clap::Parser;
+use project... | 2 | 1 | 0 | [{"id": "G0", "claim": "Rename ValidProjectName to ProjectName and replace the validate method with a FromStr implementation that owns the length/charset parameters, so a ProjectName can only exist in a valid (parsed) state.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id"... | null |
apollographql__rover__2539 | apollographql/rover | 2,539 | defect | d3269054992e84d42758192320ee2b34b2a3f232 | f468b949b3e91964cd60209af3450457b207cad1 | refactor(init): Improve error handling for `graphId` step, improve and code structure of `rover init` | This PR makes two improvements to the `init` command:
1. **Graceful error handling for graph ID unavailability**
- Added a restart flow when a graph ID is already in use instead of terminating with an error
- Users can now try a different graph ID without restarting the entire `init` process
- Introduced... | diff --git a/src/command/init/mod.rs b/src/command/init/mod.rs
index 8d17fc7e1b..a199ac0366 100644
--- a/src/command/init/mod.rs
+++ b/src/command/init/mod.rs
@@ -16,6 +16,8 @@ pub mod template_operations;
#[cfg(feature = "composition-js")]
pub mod transitions;
+#[cfg(feature = "composition-js")]
+use crate::comman... | 4 | 4 | 1 | [{"id": "G0", "claim": "The new ProjectType import should be merged into the existing grouped import from `options`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The restart loop should set a reasonable limit on retries with a message telling ... | null |
apollographql__rover__2542 | apollographql/rover | 2,542 | defect | d3269054992e84d42758192320ee2b34b2a3f232 | 113d6a98c787f22cd3393c00b3c44d79591d7b12 | refactor(init): Improve authentication error handling in `init` command | This PR enhances the authentication error handling in the `init` command by implementing a domain-specific error system. It creates more informative error messages, standardizes error handling across the codebase, and improves the overall user experience when dealing with authentication issues.
## Changes
### 1. ... | diff --git a/crates/rover-std/src/lib.rs b/crates/rover-std/src/lib.rs
index 28868c6f16..4f756618f2 100644
--- a/crates/rover-std/src/lib.rs
+++ b/crates/rover-std/src/lib.rs
@@ -10,4 +10,5 @@ pub use fs::Fs;
pub use style::is_no_color_set;
pub use style::Style;
pub use url::hyperlink;
+pub use url::hyperlink_with_t... | 5 | 5 | 1 | [{"id": "G0", "claim": "Format the `rover config auth` command and the `APOLLO_KEY` variable in the NoCredentialsFound error suggestion using the Command styles.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Put the `rover init` command placeholder in b... | null |
apollographql__rover__2557 | apollographql/rover | 2,557 | defect | 31b078699b592ed2f12015198cf9a0f7e97867cb | e38743580aea9993dafc3ce57f85eda177730235 | feat(init): Add template selector for "recommended libraries" option | <!--
First, 🌠 thank you 🌠 for taking the time to consider a contribution to Apollo!
Here are some important details to follow:
* ⏰ Your time is important
To save your precious time, if the contribution you are making will
take more than an hour, please make sure it has been discussed in an
... | diff --git a/src/command/init/mod.rs b/src/command/init/mod.rs
index c853bf2dae..00df62ab40 100644
--- a/src/command/init/mod.rs
+++ b/src/command/init/mod.rs
@@ -11,6 +11,7 @@ mod operations;
pub mod options;
#[cfg(feature = "composition-js")]
pub mod states;
+#[cfg(feature = "composition-js")]
#[cfg(feature = "in... | 4 | 3 | 0 | [{"id": "G0", "claim": "Add retry to the GitHubService so recoverable template-fetch failures (e.g. network blips) are covered, and add a \"submit an issue if this problem persists\" message for the unrecoverable case when no templates are available.", "category": "correctness", "verdict": "supported", "priority": "P2"... | null |
apollographql__rover__2558 | apollographql/rover | 2,558 | defect | 31b078699b592ed2f12015198cf9a0f7e97867cb | 31c8771d4ba1887f5a760d49c58a561169c35bbd | feat(rover): Display template commands during `init` flow if one exists | ## Changes
- Modified the command display logic in `display_project_created_message` to show different formats based on whether a command is provided
- When a command is provided, shows numbered steps (1 and 2)
- When no command is provided, shows a single unnumbered step with a header
- Extracted the development c... | diff --git a/src/command/init/helpers.rs b/src/command/init/helpers.rs
index f1e4c12a67..e1ebc870b4 100644
--- a/src/command/init/helpers.rs
+++ b/src/command/init/helpers.rs
@@ -1,6 +1,6 @@
use camino::Utf8PathBuf;
use rover_client::shared::GraphRef;
-use rover_std::{hyperlink, infoln, successln, Style};
+use rover_... | 3 | 3 | 0 | [{"id": "G0", "claim": "The new next-steps copy should not say 'Start the project' — since the team is moving away from 'project', the reviewer asks whether it should be called 'subgraph' instead.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The init s... | null |
apollographql__rover__2580 | apollographql/rover | 2,580 | defect | 8e94876ffd66201317d299b4aad67312f340c365 | efc773633d2a51e0849c60bf4d53a0524e467218 | feat(rover)init: Update `Next steps` section in project creation message | ## Changes
- Updated the format of the `Next steps` section in the project creation message
- Updated tests to verify the new message format
## Before
```
Next steps:
1) Run: npm ci
2) Run: npm start
3) Start a local development session: APOLLO_KEY=... rover dev ...
```
## After
For a single command:
``... | diff --git a/src/command/init/helpers.rs b/src/command/init/helpers.rs
index e8ede2ab01..fec2b5cab6 100644
--- a/src/command/init/helpers.rs
+++ b/src/command/init/helpers.rs
@@ -81,37 +81,35 @@ pub fn generate_project_created_message(
};
if let Some(commands) = commands {
- // If commands vec is not... | 1 | 1 | 0 | [{"id": "G0", "claim": "The project-created message needs additional spacing between step 1 (the subgraph server commands) and step 2, since without it the output feels clustered.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apollographql__rover__2652 | apollographql/rover | 2,652 | defect | 0f84604f5d3b25063ca3d7f44dca45544be671dd | 970a17f18e10859c09db5527851ad7994257a2f5 | Generates .env file with rover init | - Generates `.env` file with `rover init` containing the user's `APOLLO_GRAPH_REF` and `APOLLO_KEY`
- Updates the subsequent `rover dev` prompt to no longer use the inline variables
## Testing
### Scenario 1: connectors (Start a graph with one or more REST APIs)
```
dmallare@Mac ellie-test % ../test-rover init
... | diff --git a/src/command/init/template_fetcher.rs b/src/command/init/template_fetcher.rs
index 109a556672..a171d61999 100644
--- a/src/command/init/template_fetcher.rs
+++ b/src/command/init/template_fetcher.rs
@@ -128,6 +128,8 @@ impl InitTemplateOptions {
template.path
)));
}
+ ... | 2 | 2 | 0 | [{"id": "G0", "claim": "The graph ref no longer needs to be written to .env, so the APOLLO_GRAPH_REF writeln in populate_env_file should be removed.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "populate_env_file should take the API key as &str instead ... | null |
apollographql__rover__2877 | apollographql/rover | 2,877 | defect | 9a2aae9282ef8a2cba6a4f565f6feb62b32d0ec3 | db28093c61baf87de35f23e3e69e733f858e3a71 | Add CMD Regressions tests | <!--
First, 🌠 thank you 🌠 for taking the time to consider a contribution to Apollo!
Here are some important details to follow:
* ⏰ Your time is important
To save your precious time, if the contribution you are making will
take more than an hour, please make sure it has been discussed in an
... | diff --git a/.github/workflows/run-commands-e2e.yml b/.github/workflows/run-commands-e2e.yml
new file mode 100644
index 0000000000..9ca1755849
--- /dev/null
+++ b/.github/workflows/run-commands-e2e.yml
@@ -0,0 +1,35 @@
+on:
+ push:
+ branches:
+ - main
+ pull_request:
+ merge_group:
+
+jobs:
+ introspection... | 1 | 1 | 0 | [{"id": "G0", "claim": "The schematic GraphQL comment block at the top of the regressions/examples/is_deprecated.rs example is inaccurate and should just be removed.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.