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: refactor settings access #2936

Merged
merged 3 commits into from
Dec 21, 2024
Merged

chore: refactor settings access #2936

merged 3 commits into from
Dec 21, 2024

Conversation

zunderscore
Copy link
Collaborator

Description of the Change

Create new SettingsManager class, migrated settings access to new class, and all direct disk access is done only on the backend. Frontend settings access now uses IPC.

Important

SettingsManager now uses strongly-typed values for all known Firebot settings, using the new getSetting and saveSetting methods. Previous methods have been deprecated and all methods that aren't already documented in the script types library have been removed.

Applicable Issues

No open issue, but hopefully this will finally solve intermittent issues with settings file becoming corrupt

Testing

Opened every main settings section, validated many settings would load/save correctly

Screenshots

N/A

@zunderscore zunderscore requested a review from ebiggz as a code owner December 20, 2024 23:04
@zunderscore zunderscore merged commit cee52a6 into v5 Dec 21, 2024
2 checks passed
@zunderscore zunderscore deleted the settings-refactor branch December 21, 2024 01:48
Samuel38 pushed a commit to Samuel38/Firebot that referenced this pull request Dec 27, 2024
* settings refactor wip

* refactor backend settings

* refactor frontend settings
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.

1 participant