Skip to content

Commit e4b545a

Browse files
kdmccormickkaustavb12
authored andcommitted
feat: show lms and studio admin links
these are trivial for most devs to figure out, but I think it'd be convenient for devs and helpful for ux designers & product managers if we just provided the django admin links explicitly. KYLE-1234
1 parent 97554b3 commit e4b545a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/helpers/messages.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,14 +154,16 @@ def get_argocd_run_summary(
154154
in_progress=False,
155155
failed=False,
156156
)
157+
lms_host = sandbox_config["LMS_HOST"]
158+
cms_host = sandbox_config["CMS_HOST"]
157159
summary += f"\n### {_get_run_status_emoji(in_progress, WorkFlowConclusion.FAILURE if failed else WorkFlowConclusion.SUCCESS)} ArgoCD Sync"
158160
summary += f"\n{INDENT} **Go to [ArgoCD UI]({config.argocd_app_url}/{application_name}) to check the sync status and to access pod logs**"
159161
summary += f"\n{INDENT} ArgoCD Login: `{config.argocd_readonly_username}` / `{get_secret('pr-sandbox-argocd-readonly-user-password')}`"
160162
if not in_progress and not failed:
161163
summary += "\n\n### 🚀 Deployment Completed Successfully"
162164
summary += "\n\nSandbox Links:"
163-
summary += f"\n{INDENT}🎓 [LMS](https://{sandbox_config['LMS_HOST']})"
164-
summary += f"\n{INDENT}📝 [Studio](https://{sandbox_config['CMS_HOST']})"
165+
summary += f"\n{INDENT}🎓 [LMS](https://{lms_host}) ([admin](https://{lms_host}/admin))"
166+
summary += f"\n{INDENT}📝 [Studio](https://{cms_host}) ([admin](https://{cms_host}/admin))"
165167
summary += f"\n{INDENT}🔐 Login: `openedx` / `openedx`"
166168

167169
return summary

0 commit comments

Comments
 (0)