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

Use Archivematica accession numbers in SIP AWS keys #1229

Merged
merged 1 commit into from
Sep 26, 2023

Conversation

jazairi
Copy link
Contributor

@jazairi jazairi commented Sep 25, 2023

Why these changes are being introduced:

Artefactual has requested that our AWS keys for SIPs should include an Archivematica accession number. This will allow them to automate processing of thesis SIPs.

Relevant ticket(s):

How this addresses that need:

This builds on previous work to rename the AWS key for a given thesis' SIP using the accession number for that thesis.

Side effects of this change:

This will only affect theses preserved after this change is deployed in production. We do not have a plan to retroactively change AWS keys, and stakeholders understand and have agreed to this.

Developer

  • All new ENV is documented in README
  • All new ENV has been added to Heroku Pipeline, Staging and Prod
  • ANDI or Wave has been run in accordance to
    our guide and
    all issues introduced by these changes have been resolved or opened as new
    issues (link to those issues in the Pull Request details above)
  • Stakeholder approval has been confirmed (or is not needed)

Code Reviewer

  • The commit message is clear and follows our guidelines
    (not just this pull request message)
  • There are appropriate tests covering any new functionality
  • The documentation has been updated or is unnecessary
  • The changes have been verified
  • New dependencies are appropriate or there were no changes

Requires database migrations?

NO

Includes new or updated dependencies?

NO

@mitlib mitlib temporarily deployed to thesis-submit-pr-1229 September 25, 2023 15:41 Inactive
@coveralls
Copy link

coveralls commented Sep 25, 2023

Coverage Status

coverage: 98.352%. remained the same when pulling 4bd7908 on etd-593-update-aws-keys into 17164b7 on main.

@JPrevost JPrevost self-assigned this Sep 25, 2023
@jazairi jazairi temporarily deployed to thesis-submit-pr-1229 September 26, 2023 13:08 Inactive
@jazairi jazairi requested a review from JPrevost September 26, 2023 13:13
Copy link
Member

@JPrevost JPrevost left a comment

Choose a reason for hiding this comment

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

Minor change requested in a test name, but otherwise this should be good to go.

test/models/submission_information_package_test.rb Outdated Show resolved Hide resolved
@jazairi jazairi requested a review from JPrevost September 26, 2023 14:01
@jazairi jazairi temporarily deployed to thesis-submit-pr-1229 September 26, 2023 14:01 Inactive
Why these changes are being introduced:

Artefactual has requested that our AWS keys for SIPs should
include an Archivematica accession number. This will allow them
to automate processing of thesis SIPs.

Relevant ticket(s):

* https://mitlibraries.atlassian.net/browse/ETD-593

How this addresses that need:

This builds on previous work to rename the AWS key for a given
thesis' SIP using the accession number for that thesis. It also
adds a check for the presence of an accession number to the
`baggable_thesis?` method, in the unlikely (but possible) event
that someone tries to create a SIP for an unpublished thesis
via the Rails console.

Side effects of this change:

This will only affect theses preserved _after_ this change is
deployed in production. We do not have a plan to retroactively
change AWS keys, and stakeholders understand and have agreed to this.
@jazairi jazairi force-pushed the etd-593-update-aws-keys branch from 34ef4b7 to 4bd7908 Compare September 26, 2023 18:27
@jazairi jazairi temporarily deployed to thesis-submit-pr-1229 September 26, 2023 18:28 Inactive
@jazairi jazairi merged commit 50d597e into main Sep 26, 2023
1 check passed
@jazairi jazairi deleted the etd-593-update-aws-keys branch September 26, 2023 19:01
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