Skip to content

[28/n] [wicketd] extract the baseboard/SP-state match into a helper#10922

Merged
sunshowers merged 1 commit into
mainfrom
sunshowers/spr/28n-wicketd-extract-the-baseboardsp-state-match-into-a-helper
Jul 24, 2026
Merged

[28/n] [wicketd] extract the baseboard/SP-state match into a helper#10922
sunshowers merged 1 commit into
mainfrom
sunshowers/spr/28n-wicketd-extract-the-baseboardsp-state-match-into-a-helper

Conversation

@sunshowers

Copy link
Copy Markdown
Contributor

This determination is used in a couple of spots, and we're going to add a third one soon.

This is a pure refactor with no functional changes (other than swapping the model/part number and serial number order for consistency with BaseboardId), though it raises a few questions that need to be answered in the future.

Created using spr 1.3.6-beta.1

@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.

This looks fine. But, It's almost certainly going to become useless, or require changes with #10518.

#10518 reduces the usage of the Baseboard type quite a bit. I actually think we should either get rid of it entirely or change to a struct rather than an enum with board types. Even now we use the Gimlet enum for things like switches and cosmos and it is nothing but a hassle.

@sunshowers

Copy link
Copy Markdown
Contributor Author

This looks fine. But, It's almost certainly going to become useless, or require changes with #10518.

Yeah to be clear my goal was just to move this into a common location -- which is why I added a bunch of comments for the future.

@sunshowers
sunshowers merged commit a8c8332 into main Jul 24, 2026
19 checks passed
@sunshowers
sunshowers deleted the sunshowers/spr/28n-wicketd-extract-the-baseboardsp-state-match-into-a-helper branch July 24, 2026 23:31
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