-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ROVER-257 Hot-reloading of Federation Version in
supergraph.yaml
(#…
…2347) One of the key features that is required for the LSP is the ability to change the Federation Version specified in the `supergraph.yaml` and for it to then reload in the active session, rather than needing a restart. This is implemented as of this PR, and due to the nature of the previous refactor, has also been added to `rover dev` as well! The way this has been done is to extend the FederationWatcher to track when a change of version occurs and then to get the CompositionWatcher to update its own internal state (downloading a new version when necessary). The outcome has been tested and performs w.r.t the LSP as we'd expect. Below is an example of the logging with it working for `rover dev`: I've also implemented a feature whereby we don't do the auto-updating behaviour if a user is specifically overriding the version of composition to be used via an environment variable, though for the moment this is only relevant to `rover dev`.
- Loading branch information
1 parent
30a53c2
commit b95a753
Showing
10 changed files
with
177 additions
and
43 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
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
Oops, something went wrong.