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

Production HSES import fix #236

Merged
merged 8 commits into from
Mar 15, 2021
Merged

Conversation

rahearn
Copy link

@rahearn rahearn commented Mar 14, 2021

Description of change

  • Handle nil grant start and end dates
  • Add ability to kick off an import via CLI

How to test

Production data imports successfully. Ryan tested this on GFE with a production dataset.

Issue(s)

Checklist

  • Meets issue criteria
  • Code tested
  • Meets accessibility standards (WCAG 2.1 Levels A, AA)
  • Documentation updated

@rahearn
Copy link
Author

rahearn commented Mar 14, 2021

This has been pushed to production as a hotfix.

}));
const grantsForDb = grant.grant_awards.grant_award.map((g) => {
let { grant_start_date: startDate, grant_end_date: endDate } = g;
if (typeof startDate === 'object') { startDate = null; }
Copy link
Author

Choose a reason for hiding this comment

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

nil dates in the xml end up being { "xsi:nil": true } here

@kryswisnaskas
Copy link
Collaborator

Ryan tested this on GFE with a production dataset.
Fantastic. Assuming this was tested over the HSES grantee data pull?

@rahearn
Copy link
Author

rahearn commented Mar 15, 2021

Assuming this was tested over the HSES grantee data pull?

correct

@rahearn rahearn merged commit 4009faa into adhocteam:main Mar 15, 2021
@rahearn rahearn deleted the prod-hses-import-debug branch March 15, 2021 14:50
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.

5 participants