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 enterprise dashboard improvements toggle #35531

Merged
merged 1 commit into from
Dec 18, 2024
Merged
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
2 changes: 0 additions & 2 deletions corehq/apps/enterprise/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
from corehq.apps.users.decorators import require_can_edit_or_view_web_users

from corehq.const import USER_DATE_FORMAT
from corehq import toggles


@use_tempusdominus
Expand Down Expand Up @@ -106,7 +105,6 @@ def platform_overview(request, domain):
@always_allow_project_access
@require_enterprise_admin
@login_and_domain_required
@toggles.ENTERPRISE_DASHBOARD_IMPROVEMENTS.required_decorator()
def security_center(request, domain):
if not has_privilege(request, privileges.PROJECT_ACCESS):
return HttpResponseRedirect(reverse(EnterpriseBillingStatementsView.urlname, args=(domain,)))
Expand Down
13 changes: 6 additions & 7 deletions corehq/tabs/tabclasses.py
Original file line number Diff line number Diff line change
Expand Up @@ -1818,13 +1818,12 @@ def sidebar_items(self):
'url': reverse('platform_overview', args=[self.domain]),
}
)
if toggles.ENTERPRISE_DASHBOARD_IMPROVEMENTS.enabled_for_request(self._request):
enterprise_views.append(
{
'title': _('Security Center'),
'url': reverse('security_center', args=[self.domain]),
}
)
enterprise_views.append(
{
'title': _('Security Center'),
'url': reverse('security_center', args=[self.domain]),
}
)
enterprise_views.append(
{
'title': _('Enterprise Settings'),
Expand Down
7 changes: 0 additions & 7 deletions corehq/toggles/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2569,13 +2569,6 @@ def _commtrackify(domain_name, toggle_is_enabled):
namespaces=[NAMESPACE_DOMAIN],
)

ENTERPRISE_DASHBOARD_IMPROVEMENTS = StaticToggle(
'enterprise_dashboard_improvements',
'Shows an improved version of enterprise dashboard during development',
TAG_PRODUCT,
namespaces=[NAMESPACE_USER]
)


def _handle_attendance_tracking_role(domain, is_enabled):
from corehq.apps.accounting.utils import domain_has_privilege
Expand Down
Loading