-
-
Notifications
You must be signed in to change notification settings - Fork 218
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
Improve instructions for deprecated "Web Apps Permissions" feature #35245
Conversation
…adding additional text to the left column so that this option panel isn't pushed under the additional text
…on isn't managed in two locations
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.
This is so much more informative.
corehq/apps/users/templates/users/partials/edit_role_modal.html
Outdated
Show resolved
Hide resolved
access.sqlappgroup_set.all().delete() | ||
access.sqlappgroup_set.set([ | ||
SQLAppGroup(app_id=app_group['app_id'], group_id=app_group.get('group_id')) | ||
for app_group in body['app_groups'] | ||
], bulk=False) | ||
access.save() | ||
if disable_ff and not access.restrict: | ||
toggles.WEB_APPS_PERMISSIONS_VIA_GROUPS.set(self.domain, False, namespace=toggles.NAMESPACE_DOMAIN) |
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.
hooray
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.
love to see it
</li> | ||
<li> | ||
<strong>(Optional) Deactivate the deprecated feature</strong><br/> | ||
Although not required for the new setup to work, you can disable the deprecated feature for cleaner management. |
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.
How about something like, "To prevent this feature being accidentally re-enabled in the future, disable it altogether."?
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 reworded your suggestion a little to " Disable this feature to avoid accidentally re-enabling it in the future." , lmk if you think otherwise
access.sqlappgroup_set.all().delete() | ||
access.sqlappgroup_set.set([ | ||
SQLAppGroup(app_id=app_group['app_id'], group_id=app_group.get('group_id')) | ||
for app_group in body['app_groups'] | ||
], bulk=False) | ||
access.save() | ||
if disable_ff and not access.restrict: | ||
toggles.WEB_APPS_PERMISSIONS_VIA_GROUPS.set(self.domain, False, namespace=toggles.NAMESPACE_DOMAIN) |
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.
love to see it
corehq/apps/cloudcare/views.py
Outdated
if disable_ff and not access.restrict: | ||
toggles.WEB_APPS_PERMISSIONS_VIA_GROUPS.set(self.domain, False, namespace=toggles.NAMESPACE_DOMAIN) | ||
# This view is not accessible after the FF is disabled | ||
redirect_url = reverse('users_default', args=[self.domain]) |
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.
should this direct them to the roles and permissions page instead?
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.
Yes that would be better 1eed3e8
…nfiguration exists
Product Description
The goal of these changes are to 1. discourage using both the Roles & Permissions page and the deprecated Manage Web Apps Permissions page simultaneously and 2. provides users with a way to opt out of the deprecated feature.
Summary of Changes:
Before:
After:
Technical Summary
USH-4996
Feature Flag
Relates to web_apps_permissions_via_groups FFthat enabled this deprecated feature for certain domains
Safety Assurance
Safety story
locally tested. The change is limited to altering text or display logic for showing text.
Automated test coverage
no automated test
QA Plan
no QA
Rollback instructions
Labels & Review