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

Theses ingest rewrite #1670

Merged

Conversation

ConnorSheremeta
Copy link
Contributor

@ConnorSheremeta ConnorSheremeta commented May 29, 2020


# Handle rights
unlocked_obj.rights = thesis_data[:license]

# Additional fields
unlocked_obj.date_accepted = thesis_data[:approved_date].to_date if thesis_date[:approved_date].present?
unlocked_obj.date_submitted = thesis_data[:submitted_date].to_date if thesis_date[:submitted_date].present?
# Assumes the data received for approved_date and submitted_date follow the pattern of "D/M/Y".
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the assumption I made

Copy link
Contributor

Choose a reason for hiding this comment

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

Do you have access to their spreadsheet? (maybe that format should be captured in the spreadsheet so they always follow this date format)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No I do not. The format is currently not captured in the csv but I think it would be a good idea to have it captured somewhere. I'm not completely sure what the process is but I believe we're given the csv from another department so as long as we communicate this to them. @mbarnett do you know who to communicate this date format to in order to ensure it is always followed?

@ualbertalib-bot
Copy link

ualbertalib-bot commented May 29, 2020

1 Warning
⚠️ There are code changes, but no corresponding tests. Please include tests if this PR introduces any modifications in behavior.

Generated by 🚫 Danger

murny
murny previously approved these changes May 29, 2020
Copy link
Contributor

@murny murny left a comment

Choose a reason for hiding this comment

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

Yeah all looks good to me 👍. Nice work on creating a reusable batch_ingest_csv method for both by giving a block 💯

gif

@ConnorSheremeta ConnorSheremeta merged commit 384444d into integration_postmigration Jun 1, 2020
@murny murny deleted the cds/theses-ingest-rewrite branch September 2, 2020 20:29
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.

4 participants