-
Notifications
You must be signed in to change notification settings - Fork 7
Refactor AdminConsole vs. OptionalFeatureService #6828
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
base: develop
Are you sure you want to change the base?
Conversation
Manual testing notes
|
Thanks! And yeah, I provide no guarantees about or insight into the suitability of any particular experimental/optional feature 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code changes look good. Not sure where the test coverage will live - if added to this PR it should get a separate review.
@@ -1590,7 +1590,7 @@ public static WebPartFactory getPortalPart(String name) | |||
} | |||
|
|||
// The maintained view map is now case-insensitive, so this is identical to the above method | |||
@Deprecated // Call getPortalPart() instead | |||
@Deprecated // Call getPortalPart() instead - TODO: DELETE, unused |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this be deleted now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll delete in a follow-on PR to reduce build breaks in others' pending PRs
Rationale
In the past, optional feature handling was arbitrarily split between
AdminConsole
(feature flag registration & retrieval) andOptionalFeatureService
(feature flag enabling/disability & listener handling). This PR moves all handling to the service for consistency and implements some other clean up.Changes
AdminConsole.OptionalFeatureFlag
to a top-level classOptionalFeatureService
/Impl
.gitattributes
All tests use APIs to set/unset deprecated/experimental/optional feature flags. We'd like to add a simple test that exercises the UI pages.
Tasks 📍