-
Notifications
You must be signed in to change notification settings - Fork 1
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
MVP for new feature flags admin console #2080
base: main
Are you sure you want to change the base?
Conversation
… the nav component in the new index page
Review app deployed to https://npq-registration-review-2080-web.test.teacherservices.cloud/ |
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.
Hey, this looks really good and is a really solid base to build off - it all works great.
There's a four items I'm keen to address - we can work through these this week
- its super minor but there are linting tools we set your computer with (kinda like grammar checkers for developers)
- permissions checks - this checks for admin rights but would be good to extend this to check for super admins instead
- we could do with filtering the features users are allowed to change to just the ones listed in the FeatureFlags class
- it would be great to add a feature spec to automate checking this works as intended
end | ||
|
||
def show | ||
@feature = params[:id] |
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.
It would be good to check the feature exists and is one in active use, particularly since the user supplied name is being reflected back to them in the flash message
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.
Oh that's such a good point! I hadn't noticed that you can put anything anything at all into the url and you get a show page for it. So would it be something like this?
def show
@feature = params[:id]
if Feature::FEATURE_FLAG_KEYS.include?(@feature)
@users = User.with_feature_flag_enabled(@feature)
else
redirect_back fallback_location: admin_features_path
end
end
@@ -0,0 +1,29 @@ | |||
class Admin::FeaturesController < AdminController |
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 think this is going to need something more on the permissions checks - we can chat this through
Quality Gate passedIssues Measures |
Context
Ticket: https://dfedigital.atlassian.net/browse/CPDNPQ-2180
The existing feature flags section is difficult to use and understand for people who aren't developers. We're rebuilding the features section so that:
We want to do this so that relevant members of the NPQ registration team feel confident turning features on and off when needed.
Changes proposed in this pull request
We've added a new MVP feature flags section to the legacy admin console.
This currently sits alongside the existing feature flags section. This is so that we still have all the existing functionality as we build out the new MVP.
The new section includes:
Things we could do next: