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

Add failing logic to AT export if AT credentials are invalid #4282

Merged
merged 11 commits into from
Oct 25, 2023

Conversation

perryr16
Copy link
Contributor

Any background context you want to provide?

If a user's AT credentials were invalid the page would hang

What's this PR do?

Fails gracefully if credentials are invalid

How should this be manually tested?

Inventory List > selection > Actions > Export to Audit Template. Once with invalid credentials, and once with valid credentials

What are the relevant tickets?

Screenshots (if appropriate)

Screenshot 2023-10-13 at 1 17 34 PM

@github-actions

This comment was marked as resolved.

@perryr16 perryr16 added the Bug label Oct 13, 2023
@@ -22,7 +22,6 @@ services:
environment:
- DJANGO_SETTINGS_MODULE=config.settings.docker_dev
- DJANGO_LOG_LEVEL
- EEEJ_LOAD_SMALL_TEST_DATASET=True
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should the docker-compose.dev.yml include this env var?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think so because that is what we use for our GitHub regression testing, right? We want that to run faster.

@perryr16 perryr16 marked this pull request as ready for review October 13, 2023 20:31
Copy link
Member

@nllong nllong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I don't set anything on the Org this is the right response.

image

But for some reason, when I try with my AT or username and PW I get this:

image

@nllong
Copy link
Member

nllong commented Oct 19, 2023

@perryr16 -- do you know why I would be getting this error? I know that my username and PW are right. Is there something to do with the org that I have?

@perryr16
Copy link
Contributor Author

perryr16 commented Oct 20, 2023

@nllong Are you using my org token? Is your AUDIT_TEMPLATE_HOST set to 'https://buildingenergyscore.energy.gov'?

Copy link
Member

@nllong nllong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

worked! but note that we need to fix allowing passwords with % symbols.

@perryr16 perryr16 requested a review from nllong October 24, 2023 17:55
@nllong nllong merged commit 3362c07 into develop Oct 25, 2023
7 checks passed
@nllong nllong deleted the AT-export-credential-bug branch October 25, 2023 00:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants