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

Reduce settings manager complexity by loading sections via DI #11398

Merged
merged 2 commits into from
Sep 27, 2018

Conversation

ChristophWurst
Copy link
Member

For #11381 I need to add some more section to the server's default settings sections and therefore I stumbled over this massively overcomplicated class that build the settings sections for both personal and admin settings.

IMO it's a lot easier and cleaner to load these external classes via the DI container. This way changes to them don't have to be reflected in the settings manager (and they shouldn't -> single responsibility principle).

@ChristophWurst ChristophWurst force-pushed the refactor/settings-manager-complexity branch from e5901e3 to 6fe3b37 Compare September 26, 2018 17:01
Copy link
Member

@rullzer rullzer left a comment

Choose a reason for hiding this comment

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

🚀

@ChristophWurst
Copy link
Member Author

CI failure is unrelated.

@ChristophWurst ChristophWurst added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Sep 27, 2018
@ChristophWurst
Copy link
Member Author

Christoph's Tasks automation moved this from IN PROGRESS (max 3 PRs) to TO INTEGRATE

Isn't it awesome how the automation knows two reviews are required and once done moves this ticket on the project board? 🚀

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
@ChristophWurst ChristophWurst force-pushed the refactor/settings-manager-complexity branch from 6fe3b37 to f71ffc7 Compare September 27, 2018 07:44
@ChristophWurst ChristophWurst merged commit c759a78 into master Sep 27, 2018
@ChristophWurst ChristophWurst deleted the refactor/settings-manager-complexity branch September 27, 2018 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish technical debt
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants