Skip to content

Commit 9c9d266

Browse files
committed
Add flag for t3 onboarding disabled
1 parent 62cc5e6 commit 9c9d266

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

deploy-board/deploy_board/settings.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,9 @@
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 if os.getenv("TELETRAAN_TIER3_ONBOARDING_DISABLED", "false") == "true" else False
460+
)
458461

459462
# Entitlements UI Links
460463
ENTITLEMENTS_UI_LINK = os.getenv("ENTITLEMENTS_UI_LINK")

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)