forked from sourcegraph/sourcegraph-public-snapshot
-
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.
batches: surface batch change rollout window in JSContext (sourcegrap…
…h#50471) sourcegraph#48217 and sourcegraph#48963 require the `batchChangesRolloutWindows` configuration to be available in the frontend. This PR surfaces the value via the `jscontext` object preloaded when the UI starts. ## Test plan <!-- All pull requests REQUIRE a test plan: https://docs.sourcegraph.com/dev/background-information/testing_principles --> * Start up a Sourcegraph instance with `sg start batches` * If the rollout window is configured in the Site Config, then logging `window.context` should include the configured values in the `batchChangesRolloutWindows` field. ![CleanShot 2023-04-07 at 12 50 12@2x](https://user-images.githubusercontent.com/25608335/230604199-adecb401-29fe-4cd5-b94f-f4f5d7da157d.png) * If not, the value of `batchChangesRolloutWindows` will be null. ![CleanShot 2023-04-07 at 12 49 46@2x](https://user-images.githubusercontent.com/25608335/230604227-c1013cf0-19a5-462f-81f9-20c5883e1f48.png)
- Loading branch information
1 parent
185c154
commit 3b1c5fc
Showing
4 changed files
with
10 additions
and
4 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