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

Create new environment button on UI redirects to /None #686

Open
gvwirth opened this issue Aug 19, 2019 · 0 comments · May be fixed by #689
Open

Create new environment button on UI redirects to /None #686

gvwirth opened this issue Aug 19, 2019 · 0 comments · May be fixed by #689

Comments

@gvwirth
Copy link

gvwirth commented Aug 19, 2019

Hello,

I'm setting up Teletraan in a containerized environment, and have deploy-board and deploy-service running in containers and, by all accounts, successfully communicating. When I go to click "Create environment" in the UI, I am redirected to "{ base_url }/None". Checking on the template that generates this button, I see that the button's URL is populated by this env var:

TELETRAAN_REDIRECT_CREATE_ENV_PAGE_URL = os.getenv("TELETRAAN_REDIRECT_CREATE_ENV_PAGE_URL", None)

Which is then referenced in the templates here (as an example):

<a href='{{ redirect_create_env_page_url }}' target='_blank' class="deployToolTip btn btn-default btn-block">

Since I do not have this env var set, I am being redirected to /None. Here is a demo: https://ookla.d.pr/i5iDig

I tried setting this env var to a valid URL, but the Create Environment button then acts as a simple link to whatever I set the redirect URL to. At no point am I able to actually create an environment or presented with the correct dialog from the button click action.

Let me know if there is any more detail I can provide about my set up. Thanks!

EDIT:

Update on this -- I discovered that the issue is there is no data-target to the "newEnvModalId" within the template:

<a href='{{ redirect_create_env_page_url }}' target='_blank' class="deployToolTip btn btn-default btn-block">

This should be:

<a href="{{ redirect_create_env_page_url }}" target="_blank" class="deployToolTip btn btn-default btn-block" data-original-title="" title="" data-toggle="modal" data-target="#newEnvModalId">

I'd be happy to submit a PR to fix this if needed. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant