Skip to content

[35/n] [reconfigurator] add add_zones_with_mupdate_override chicken switch#8648

Merged
sunshowers merged 8 commits into
mainfrom
sunshowers/spr/35n-reconfigurator-add-add_zones_with_mupdate_override-chicken-switch
Jul 23, 2025
Merged

[35/n] [reconfigurator] add add_zones_with_mupdate_override chicken switch#8648
sunshowers merged 8 commits into
mainfrom
sunshowers/spr/35n-reconfigurator-add-add_zones_with_mupdate_override-chicken-switch

Conversation

@sunshowers

@sunshowers sunshowers commented Jul 20, 2025

Copy link
Copy Markdown
Contributor

Add a chicken switch to enable testing mupdate/update logic for r16 while not affecting customer systems.

Required a few changes but should hopefully be relatively easy to understand. As part of this, added:

  • omdb and reconfigurator-cli logic
  • displayers for both chicken switches and their diffs (using daft)
  • db storage and migrations

TODO:

  • reconfigurator-cli should support flipping these switches
  • log current planner switches during planner runs

Created using spr 1.3.6-beta.1

[skip ci]
Created using spr 1.3.6-beta.1
@sunshowers sunshowers marked this pull request as draft July 20, 2025 04:21
Created using spr 1.3.6-beta.1

[skip ci]
Created using spr 1.3.6-beta.1
@sunshowers sunshowers marked this pull request as ready for review July 22, 2025 02:18
Created using spr 1.3.6-beta.1

[skip ci]
Created using spr 1.3.6-beta.1
Created using spr 1.3.6-beta.1

#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, JsonSchema)]
pub struct ReconfiguratorChickenSwitches {
pub struct ReconfiguratorChickenSwitchesView {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Turned the current ReconfiguratorChickenSwitches into a view type, and made both the view and the param types carry around a common ReconfiguratorChickenSwitches struct.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea! I like this a lot.

@andrewjstone andrewjstone left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! I like the way you dealt with keeping the existing options set in omdb.


#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, JsonSchema)]
pub struct ReconfiguratorChickenSwitches {
pub struct ReconfiguratorChickenSwitchesView {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea! I like this a lot.


> set chicken-switches --add-zones-with-mupdate-override true
chicken switches updated:
* add zones with mupdate override: false -> true

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome :)

@sunshowers sunshowers changed the base branch from sunshowers/spr/main.35n-reconfigurator-add-add_zones_with_mupdate_override-chicken-switch to main July 23, 2025 19:31
Created using spr 1.3.6-beta.1
@sunshowers sunshowers enabled auto-merge (squash) July 23, 2025 19:32
@sunshowers sunshowers merged commit 5a60421 into main Jul 23, 2025
18 checks passed
@sunshowers sunshowers deleted the sunshowers/spr/35n-reconfigurator-add-add_zones_with_mupdate_override-chicken-switch branch July 23, 2025 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants