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

Improvement: Direct usage of selection manager instead of proxy methods #1030

Merged
merged 16 commits into from
Dec 13, 2023

Conversation

madsrasmussen
Copy link
Contributor

@madsrasmussen madsrasmussen commented Nov 28, 2023

This PR makes the selection manager public so we can call methods directly on the manager instead of proxying them with methods on the implementing class. This will simplify the interface for that class.

See the tree context interface as an example of how many methods can be removed from the interface:

https://github.com/umbraco/Umbraco.CMS.Backoffice/pull/1030/files#diff-63700e0510ec22c2995269f8338ca4b82d8a0dcb612b06b2dd93e90c621e909aL20

The PR also adds tests for the Selection Manager:

https://github.com/umbraco/Umbraco.CMS.Backoffice/pull/1030/files#diff-6f2e37bb4ffdcac7a21718fccc2817722cfee34cae23b7b6d702f7d775f3a17bR1

@madsrasmussen madsrasmussen changed the title direct usage of selection manager instead of proxy methods Improvement: Direct usage of selection manager instead of proxy methods Nov 28, 2023
@madsrasmussen madsrasmussen marked this pull request as ready for review December 11, 2023 20:18
Copy link
Member

@nielslyngsoe nielslyngsoe left a comment

Choose a reason for hiding this comment

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

good :-)

@nielslyngsoe nielslyngsoe merged commit 2a8fbe3 into main Dec 13, 2023
6 checks passed
@nielslyngsoe nielslyngsoe deleted the Improvment/direct-usage-of-selection-manager branch December 13, 2023 10:42
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