-
Notifications
You must be signed in to change notification settings - Fork 3
Rename default config file to router.config #493
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Summary of ChangesHello @kamilkisiela, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request focuses on enhancing the user experience by standardizing and simplifying the default configuration file name for the router. By renaming Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request renames the default configuration file from hive-router.config.* to router.config.*. The changes are applied consistently across the documentation in README.md and the router configuration logic in lib/router-config/src/lib.rs.
My main feedback is to make this change non-breaking to provide a smoother transition for existing users. I've suggested supporting both the old and new configuration file names temporarily. This would improve user experience by not breaking existing setups, while still encouraging the adoption of the new standard through the updated documentation.
Overall, the change is clear and well-motivated.
| "router.config.yaml", | ||
| "router.config.yml", | ||
| "router.config.json", | ||
| "router.config.json5", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a breaking change for users relying on the default configuration file name. To provide a smoother migration path and avoid breaking existing setups, I suggest supporting both the old and new file names for a while.
You can achieve this by including the old file names in this list. By placing the new names after the old ones, you ensure they have higher precedence, as the config crate merges sources in order.
This makes the change backward-compatible for existing users, while the updated documentation encourages new users to adopt the new naming convention.
// Old names (deprecated, for backward compatibility)
"hive-router.config.yaml",
"hive-router.config.yml",
"hive-router.config.json",
"hive-router.config.json5",
// New standard names
"router.config.yaml",
"router.config.yml",
"router.config.json",
"router.config.json5"
✅
|
|
🐋 This PR was built and pushed to the following Docker images: Image Names: Platforms: Image Tags: Docker metadata{
"buildx.build.ref": "builder-cb28ea01-aa4a-4165-8d66-e5e4fd780cff/builder-cb28ea01-aa4a-4165-8d66-e5e4fd780cff0/xxi8ruzmso66gah8x754md27s",
"containerimage.descriptor": {
"mediaType": "application/vnd.oci.image.index.v1+json",
"digest": "sha256:1b01e5fb2b937cef6b2bd947dd238aae815dba603a1ca9564e13d5372b9719cd",
"size": 1609
},
"containerimage.digest": "sha256:1b01e5fb2b937cef6b2bd947dd238aae815dba603a1ca9564e13d5372b9719cd",
"image.name": "ghcr.io/graphql-hive/router:pr-493,ghcr.io/graphql-hive/router:sha-8ad13ae"
} |
## 🤖 New release * `hive-router-config`: 0.0.8 -> 0.0.9 (✓ API compatible changes) * `hive-router`: 0.0.13 -> 0.0.14 (✓ API compatible changes) <details><summary><i><b>Changelog</b></i></summary><p> ## `hive-router-config` <blockquote> ## [0.0.8](hive-router-config-v0.0.7...hive-router-config-v0.0.8) - 2025-10-23 ### Added - *(router)* support `hive` as source for supergraph ([#400](#400)) ### Other - Rename default config file to router.config ([#493](#493)) </blockquote> ## `hive-router` <blockquote> ## [0.0.13](hive-router-v0.0.12...hive-router-v0.0.13) - 2025-10-23 ### Added - *(router)* support `hive` as source for supergraph ([#400](#400)) ### Fixed - *(router)* use 503 instead of 500 when router is not ready ([#512](#512)) - *(executor)* error logging in HTTP executor ([#498](#498)) - *(executor)* handle subgraph errors with extensions correctly ([#494](#494)) - *(ci)* fail when audit tests failing ([#495](#495)) - *(executor)* project scalars with object values correctly ([#492](#492)) - *(query-planner)* inline nested fragment spreads ([#502](#502)) ### Other - Remove mimalloc override feature and use v3 ([#497](#497)) - Add affectedPath to GraphQLErrorExtensions ([#510](#510)) - Handle empty responses from subgraphs and failed entity calls ([#500](#500)) - Rename default config file to router.config ([#493](#493)) </blockquote> </p></details> --- This PR was generated with [release-plz](https://github.com/release-plz/release-plz/).
It's easier and is similar to what Hive Gateway does
gateway.config.ts.