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

WTF-400 Extracting config out of modules #402

Merged
merged 61 commits into from
Apr 22, 2019

Conversation

senorprogrammer
Copy link
Collaborator

@senorprogrammer senorprogrammer commented Apr 13, 2019

This PR fundamentally reworks the settings system by removing all knowledge of the YAML config and github.com/olebedev/config from the widgets.

Each widget now has its own Settings type in its package that is populated by whichever means (in the case of the app itself, a NewSettingsFromYAML function that takes the output of config) and is now passed to the widget for configuration.

Beyond separating concerns, this should

a) make it a bit easier to test modules
b) make it possible to change settings in a widget dynamically from within the app
c) start to lay the groundwork for multi-instance widgets

@senorprogrammer senorprogrammer changed the title QTF-400 First pass at extracting config WTF-400 Extracting config out of modules Apr 14, 2019
@senorprogrammer senorprogrammer mentioned this pull request Apr 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant