Skip to content

Commit 41f3eca

Browse files
committed
Add flag for t3 onboarding disabled
1 parent 62cc5e6 commit 41f3eca

File tree

4 files changed

+13
-2
lines changed

4 files changed

+13
-2
lines changed

deploy-board/deploy_board/settings.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,11 @@
455455
PINCOMPUTE_ONBOARDING_LINK = os.getenv("PINCOMPUTE_ONBOARDING_LINK")
456456
PINCOMPUTE_EXCEPTION_FORM_LINK = os.getenv("PINCOMPUTE_EXCEPTION_FORM_LINK")
457457
PINCOMPUTE_SLACK_LINK = os.getenv("PINCOMPUTE_SLACK_LINK")
458+
TIER3_ONBOARDING_DISABLED = (
459+
True
460+
if os.getenv("TELETRAAN_TIER3_ONBOARDING_DISABLED", "false") == "true"
461+
else False
462+
)
458463

459464
# Entitlements UI Links
460465
ENTITLEMENTS_UI_LINK = os.getenv("ENTITLEMENTS_UI_LINK")

deploy-board/deploy_board/templates/deploys/warning_no_tier3.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div id="noTier3Alert" class="alert alert-danger" role="alert" align="center">
1+
<div id="noTier3Alert" class="alert alert-danger" role="alert" align="center" style="{{ hidden }}">
22
<a href="#" class="close" data-dismiss="alert">&times;</a>
33
<i><b style="font-size:24px;">Tier 3 new service onboarding to Teletraan is now disabled.</b></i>
44
<p>

deploy-board/deploy_board/templates/landing.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@
1010

1111
{% block breadcrumb-items %}
1212
{% if pinterest %}
13-
{% include "deploys/warning_no_tier3.tmpl" %}
13+
{% if tier3_onboarding_disabled %}
14+
{% include "deploys/warning_no_tier3.tmpl" %}
15+
{% else %}
16+
{% include "deploys/warning_no_tier3.tmpl" with hidden='display: none;' %}
17+
{% endif %}
1418
{% endif %}
1519
{% endblock breadcrumb-items %}
1620

deploy-board/deploy_board/webapp/deploy_views.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
PINCOMPUTE_ONBOARDING_LINK,
2525
PINCOMPUTE_EXCEPTION_FORM_LINK,
2626
PINCOMPUTE_SLACK_LINK,
27+
TIER3_ONBOARDING_DISABLED,
2728
)
2829
from django.middleware.csrf import get_token
2930
from .accounts import get_accounts_from_deploy
@@ -115,6 +116,7 @@ def get_landing_page(request):
115116
"pincompute_onboarding_link": PINCOMPUTE_ONBOARDING_LINK,
116117
"pincompute_exception_form_link": PINCOMPUTE_EXCEPTION_FORM_LINK,
117118
"pincompute_slack_link": PINCOMPUTE_SLACK_LINK,
119+
"tier3_onboarding_disabled": TIER3_ONBOARDING_DISABLED,
118120
},
119121
)
120122

0 commit comments

Comments
 (0)