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

Settings: Unify saving settings #506

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from

Conversation

martastain
Copy link
Member

@martastain martastain commented Feb 4, 2025

This pull request includes several changes to the api/addons module to refactor the way settings are managed by replacing direct database operations with a new set_addon_settings function.

These changes aim to streamline the codebase by centralizing the logic for setting addon settings and reducing redundancy.

Migrate settings function does not use this new method (yet) as it is performed in a transaction and events are dispatched afterwards.

Testing notes

  • Ensure the settings editor works and saving settings produce correct events

@martastain martastain linked an issue Feb 4, 2025 that may be closed by this pull request
@martastain martastain self-assigned this Feb 4, 2025
@martastain martastain added the type: enhancement Improvement of existing functionality or minor addition label Feb 4, 2025
@martastain martastain marked this pull request as ready for review February 7, 2025 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement Improvement of existing functionality or minor addition
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unify settings save functions
1 participant