Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: use static per-screen-type audio config #2256

Merged
merged 1 commit into from
Oct 22, 2024
Merged

Conversation

digitalcora
Copy link
Contributor

The central/motivating change here is mbta/screens-config-lib#38.

This creates a Static struct to encode/organize "static" parameters for each screen type — including candidate generators, refresh rate, periodic audio readout interval, and now various other audio settings.

@digitalcora digitalcora marked this pull request as ready for review October 21, 2024 20:37
@digitalcora digitalcora requested a review from a team as a code owner October 21, 2024 20:37
@digitalcora digitalcora marked this pull request as draft October 21, 2024 20:37
@digitalcora digitalcora removed the request for review from a team October 21, 2024 20:38
@digitalcora digitalcora changed the title chore: rework "static" screen parameters chore: use static per-screen-type audio config Oct 21, 2024
@digitalcora digitalcora marked this pull request as ready for review October 21, 2024 21:30
@digitalcora digitalcora requested a review from a team October 21, 2024 21:30
@digitalcora
Copy link
Contributor Author

Jumped the gun on this one. It's now ready for review, for real 🤞

Copy link
Contributor

@cmaddox5 cmaddox5 left a comment

Choose a reason for hiding this comment

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

Love this. Really simplifies the config. Because this config is optional, I don't foresee any deployment issues due to config struct changes. Might still be a good idea to deploy to dev-green first just in case.

@digitalcora
Copy link
Contributor Author

Seems to work fine on dev-green — I deployed, then used the admin Config Editor to Validate+Save the config without changes, and it correctly updated the structure.

The central/motivating change here is a change to `screens-config-lib`
that removes most audio-related parameters from the per-screen configs,
since we'd like them to be the same for all screens of a given type.

This creates a `Static` struct to encode/organize "static" parameters
for each screen type — including candidate generators, refresh rate,
periodic audio readout interval, and now various other audio settings.
@digitalcora digitalcora merged commit 6598a0b into main Oct 22, 2024
11 checks passed
@digitalcora digitalcora deleted the cfg-audio-config branch October 22, 2024 14:09
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