[Nitro CLI] Add source metadata and subgraph versions to commands#9181
[Nitro CLI] Add source metadata and subgraph versions to commands#9181tobias-tengler merged 8 commits intomainfrom
Conversation
d7ad8d2 to
308d87e
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #9181 +/- ##
==========================================
- Coverage 74.16% 0 -74.17%
==========================================
Files 2677 0 -2677
Lines 140790 0 -140790
Branches 16371 0 -16371
==========================================
- Hits 104421 0 -104421
+ Misses 30774 0 -30774
+ Partials 5595 0 -5595
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull request overview
This PR adds source metadata tracking and subgraph version support to the Nitro CLI. It enables CLI commands to capture and pass source control information (GitHub commit details, workflow info, etc.) to the backend, and enhances fusion configuration publishing with support for multiple subgraph versions.
Changes:
- Added
--source-metadataoption to upload, validate, and publish commands for schemas, clients, OpenAPI collections, MCP feature collections, and fusion subgraphs - Extended GraphQL schema with source metadata types, stage change events, and deployment subgraph connections
- Deprecated single-subgraph fields in favor of new multi-subgraph support in FusionConfigurationDeployment
- Refactored validation error fragments for better code reuse
Reviewed changes
Copilot reviewed 23 out of 25 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| schema.graphql | Added source metadata types, subgraph versioning, new stage change events, and error types |
| persisted/operations.json | Regenerated persisted operations with updated fragments |
| fragments.graphql | Refactored OpenAPI and MCP validation fragments for better reusability |
| README.md | Updated build commands to use explicit project path |
| OptionalSourceMetadataOption.cs | New CLI option for optional source metadata input |
| SourceMetadataHelper.cs | Helper class to parse JSON source metadata into input types |
| ConsoleHelpers.cs | Simplified error printing with fragment-based interfaces |
| FusionPublishHelpers.cs | Added subgraph version tracking and source metadata support |
| FusionPublishCommand.cs | Integrated source metadata and subgraph versions into publish flow |
| Various command files | Added source metadata option to upload, validate, and publish commands |
| .config/dotnet-tools.json | Removed local tool manifest (now using explicit project path) |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Fusion Gateway Performance ResultsSimple Composite Query
Response Times & Query
query TestQuery {
topProducts(first: 5) {
inStock
name
price
shippingEstimate
upc
weight
reviews {
id
body
author {
id
username
name
}
}
}
}Deep Recursion Query
Response Times & Query
query TestQuery {
users {
id
username
name
reviews {
id
body
product {
inStock
name
price
shippingEstimate
upc
weight
reviews {
id
body
author {
id
username
name
reviews {
id
body
product {
inStock
name
price
shippingEstimate
upc
weight
}
}
}
}
}
}
}
topProducts(first: 5) {
inStock
name
price
shippingEstimate
upc
weight
reviews {
id
body
author {
id
username
name
reviews {
id
body
product {
inStock
name
price
shippingEstimate
upc
weight
}
}
}
}
}
}Variable Batching Throughput
Response Times & Query
query TestQuery($upc: ID!, $price: Long!, $weight: Long!) {
productByUpc(upc: $upc) {
inStock
shippingEstimate(weight: $weight, price: $price)
}
}Variables (5 sets batched per request) [
{ "upc": "1", "price": 899, "weight": 100 },
{ "upc": "2", "price": 1299, "weight": 1000 },
{ "upc": "3", "price": 15, "weight": 20 },
{ "upc": "4", "price": 499, "weight": 100 },
{ "upc": "5", "price": 1299, "weight": 1000 }
]Run 22355799739 • Commit 5be8ef6 • Tue, 24 Feb 2026 15:08:55 GMT |
No description provided.