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

Remove FF ENTERPRISE_USER_MANAGEMENT #35381

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
151 changes: 0 additions & 151 deletions corehq/apps/users/static/users/js/enterprise_users.js

This file was deleted.

103 changes: 0 additions & 103 deletions corehq/apps/users/templates/users/enterprise_users.html

This file was deleted.

2 changes: 0 additions & 2 deletions corehq/apps/users/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from .views import (
DefaultProjectUserSettingsView,
EditWebUserView,
EnterpriseUsersView,
InviteWebUserView,
UploadWebUsers,
WebUserUploadStatusView,
Expand Down Expand Up @@ -134,7 +133,6 @@
WebUserUploadJobPollView.as_view(),
name=WebUserUploadJobPollView.urlname
),
url(r'^enterprise/$', EnterpriseUsersView.as_view(), name=EnterpriseUsersView.urlname),
url(r'^enterprise/json/$', paginate_enterprise_users, name='paginate_enterprise_users'),
url(r'^join/(?P<uuid>[ \w-]+)/$', accept_invitation, name='domain_accept_invitation'),
url(r'^roles/$', ListRolesView.as_view(), name=ListRolesView.urlname),
Expand Down
14 changes: 0 additions & 14 deletions corehq/apps/users/views/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -541,20 +541,6 @@ def can_restrict_access_by_location(self):
privileges.RESTRICT_ACCESS_BY_LOCATION)


@method_decorator(always_allow_project_access, name='dispatch')
@method_decorator(toggles.ENTERPRISE_USER_MANAGEMENT.required_decorator(), name='dispatch')
class EnterpriseUsersView(BaseRoleAccessView):
template_name = 'users/enterprise_users.html'
page_title = gettext_lazy("Enterprise Users")
urlname = 'enterprise_users'

@property
def page_context(self):
return {
"show_profile_column": domain_has_privilege(self.domain, privileges.APP_USER_PROFILES),
}


@method_decorator(always_allow_project_access, name='dispatch')
@method_decorator(require_can_edit_or_view_web_users, name='dispatch')
@location_safe
Expand Down
10 changes: 0 additions & 10 deletions corehq/tabs/tabclasses.py
Original file line number Diff line number Diff line change
Expand Up @@ -1665,15 +1665,6 @@ def _get_web_username(request=None, couch_user=None, **context):
'show_in_dropdown': True,
}

def _enterprise_users(self):
from corehq.apps.users.views import EnterpriseUsersView
if toggles.ENTERPRISE_USER_MANAGEMENT.enabled_for_request(self._request):
return {
'title': _(EnterpriseUsersView.page_title),
'url': reverse(EnterpriseUsersView.urlname, args=[self.domain]),
'show_in_dropdown': True,
}

def _roles_and_permissions(self):
if ((self.couch_user.is_domain_admin() or self.couch_user.can_view_roles())
and self.has_project_access):
Expand Down Expand Up @@ -1767,7 +1758,6 @@ def sidebar_items(self):
items = []

users_menu = filter(None, [
self._enterprise_users(),
self._mobile_workers(),
self._web_users(),
self._roles_and_permissions(),
Expand Down
8 changes: 0 additions & 8 deletions corehq/toggles/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2247,14 +2247,6 @@ def _commtrackify(domain_name, toggle_is_enabled):
namespaces=[NAMESPACE_DOMAIN],
)

ENTERPRISE_USER_MANAGEMENT = StaticToggle(
'enterprise_user_management',
'USH: UI for managing all web users in an enterprise',
TAG_DEPRECATED,
namespaces=[NAMESPACE_USER],
help_link="https://confluence.dimagi.com/display/saas/USH%3A+UI+for+managing+all+web+users+in+an+enterprise",
)

CLEAN_OLD_FORMPLAYER_SYNCS = DynamicallyPredictablyRandomToggle(
'clean_old_formplayer_syncs',
'Delete old formplayer syncs during submission processing',
Expand Down
Loading