[rush-serve-plugin] Allow configuring operation enable/disable states via websocket #5200
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new command to the websocket protocol to set the
enabledstate of operations in the current session.Details
Adds a command
set-enabled-statesthat takes a{ [operationName: string]: boolean }to configure the base enabled states for operations. This is applied after the default selection filter, but will only include operations that are related to changes (invalidating operations will make more projects be considered "changed").Adds a command
invalidatethat takes an array of operation names to request that they be executed on the next pass.Also fixes an inaccuracy in the reporting of the status of the
--changed-projects-onlyflag when telemetry is enabled, since it can be toggled at runtime.How it was tested
For the telemetry flag, a local run.
For the websocket, currently hasn't been.
Impacted documentation
Web socket protocol.