forked from MystenLabs/sui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GraphQL] Add available versions query to service config (MystenLabs#…
…17503) ## Description Adds available versions query to the service config. Uses the crate's version if no `versions` section exists in the `config.toml` file. ## Test plan Existing tests. Manual query on local instance. ## No versions in config.toml file ```graphql { serviceConfig { availableVersions } } ``` ```json { "data": { "serviceConfig": { "availableVersions": [ "2024.7" ] } } } ``` ## Start server with config toml file ```toml [limits] max-query-depth = 15 max-query-nodes = 500 max-output-nodes = 100000 max-query-payload-size = 5000 max-db-query-cost = 20000 default-page-size = 5 max-page-size = 10 request-timeout-ms = 15000 max-type-argument-depth = 16 max-type-argument-width = 32 max-type-nodes = 256 max-move-value-depth = 128 [versions] versions = ["2024.1", "2024.4", "2024.7"] ``` Same query ```json { "data": { "serviceConfig": { "availableVersions": [ "2024.1", "2024.4", "2024.7" ] } } } ``` --- ## Release notes Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required. For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates. - [ ] Protocol: - [ ] Nodes (Validators and Full nodes): - [ ] Indexer: - [ ] JSON-RPC: - [ ] GraphQL: - [ ] CLI: - [ ] Rust SDK:
- Loading branch information
1 parent
1f48cfe
commit 76da558
Showing
6 changed files
with
55 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters