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

Email State Admin from State Dashboard when Affiliation is Pending #2838

Merged
merged 45 commits into from
Apr 5, 2021

Conversation

radavis
Copy link
Contributor

@radavis radavis commented Feb 3, 2021

Resolves #2771

This pull request is ready to merge when...

  • Tests have been updated (and all tests are passing)
  • This code has been reviewed by someone other than the original author
  • The experience passes a basic manual accessibility audit (keyboard nav, screenreader, text scaling) OR an exemption is documented
  • The change has been documented
    • Associated OpenAPI documentation has been updated
  • Changelog is updated as appropriate

This feature is done when...

  • QA has approved the experience
  • Design has approved the experience
  • Product has approved the experience

Steps to verify this PR:

Repeat steps above with another user, a different state (e.g. - 'Alabama') and verify 'State Administrator' is present with 'href=mailto:CMS-EAPD@cms.hhs.gov' (no state admin assigned, yet).

@cms-eapd-bot
Copy link

cms-eapd-bot commented Feb 3, 2021

This deploy was cleaned up.

@codecov-io
Copy link

codecov-io commented Feb 9, 2021

Codecov Report

Merging #2838 (f517121) into master (eb928de) will decrease coverage by 0.55%.
The diff coverage is 69.87%.

❗ Current head f517121 differs from pull request most recent head d83c857. Consider uploading reports for the commit d83c857 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2838      +/-   ##
==========================================
- Coverage   89.03%   88.48%   -0.56%     
==========================================
  Files         273      274       +1     
  Lines        5007     5019      +12     
  Branches      965      972       +7     
==========================================
- Hits         4458     4441      -17     
- Misses        506      535      +29     
  Partials       43       43              
Impacted Files Coverage Δ
api/routes/states/get.js 50.00% <33.33%> (ø)
api/db/states.js 81.81% <50.00%> (-7.08%) ⬇️
api/db/oktaUsers.js 66.66% <66.66%> (ø)
web/src/components/StateAffiliationStatus.js 70.00% <70.00%> (ø)
web/src/components/ApdList.js 74.28% <74.28%> (ø)
api/db/users.js 58.69% <100.00%> (+1.87%) ⬆️
web/src/containers/StateDashboard.js 76.92% <100.00%> (-7.99%) ⬇️
web/src/lazy/zxcvbn.js 20.00% <0.00%> (-80.00%) ⬇️
web/src/containers/Login.js 70.58% <0.00%> (-29.42%) ⬇️
web/src/actions/auth.js 80.00% <0.00%> (-16.50%) ⬇️
... and 34 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update eb928de...d83c857. Read the comment docs.

@radavis radavis changed the title persist okta user data Email State Admin from State Dashboard when Affiliation is Pending Feb 10, 2021
@radavis radavis mentioned this pull request Feb 12, 2021
9 tasks
@radavis radavis marked this pull request as ready for review February 12, 2021 17:03
@radavis
Copy link
Contributor Author

radavis commented Mar 2, 2021

@eStar386 I was able to confirm this issue.

Requests from the front-end when viewing the /state-admin path were returning 502 Bad Gateway responses. Thus, no information was being retrieved from the back-end.

Merging changes from master seem to have corrected this problem. Please re-test when you have the time. Thank you.

@eStar386
Copy link
Contributor

Retested and this resolves the bug.

Copy link
Contributor

@jeromeleecms jeromeleecms left a comment

Choose a reason for hiding this comment

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

The scope of the PR does not reflect the scope of the actual issue. We should also have this same functionality for the "Denied Dashboard" as well:

image

Currently the text does not link to anything. If we do change the scope of this issue, let's change the title to include all dashboards -- or I'm OK with switching it to a separate issue to resolve. @thetif

@@ -116,7 +116,7 @@ function createNewInstance() {
--subnet-id "$AWS_SUBNET" \
--tag-specification "ResourceType=instance,Tags=[{Key=Name,Value=eAPD PR $PR_NUM},{Key=environment,Value=preview},{Key=github-pr,Value=${PR_NUM}}]" \
--user-data file://aws.user-data.sh \
--key-name eapd_bbrooks \
--key-name radavis \
| jq -r -c '.Instances[0].InstanceId'
Copy link
Contributor

Choose a reason for hiding this comment

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

@knollfear can you remove this key?

Copy link
Contributor

Choose a reason for hiding this comment

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

sure. I have no idea why this is part of the MR, I didn't look at this part.

Copy link
Contributor

@tbolt tbolt left a comment

Choose a reason for hiding this comment

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

Nice work

@thetif thetif requested a review from NAretakis March 30, 2021 18:09
Copy link
Contributor

@NAretakis NAretakis left a comment

Choose a reason for hiding this comment

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

I see the admin email, clicking it works too!! Good to go!

knollfear and others added 6 commits March 30, 2021 15:07
…2771

� Conflicts:
�	CHANGELOG.md
�	web/src/containers/StateDashboard.js
�	web/src/containers/StateDashboard.test.js
…2771

� Conflicts:
�	web/src/containers/StateDashboard.js
�	web/src/containers/StateDashboard.test.js
Copy link
Contributor

@eStar386 eStar386 left a comment

Choose a reason for hiding this comment

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

Passed - the denied and revoked panels are added. Testing information above.

@knollfear knollfear merged commit d59e1c7 into master Apr 5, 2021
@knollfear knollfear deleted the radavis/2771 branch April 5, 2021 13:11
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 this pull request may close these issues.

Allow users to email state admin from all relevant dashboards
10 participants