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 a fix for the ETD publication bug #2187

Merged
merged 1 commit into from
Oct 15, 2021
Merged

Add a fix for the ETD publication bug #2187

merged 1 commit into from
Oct 15, 2021

Conversation

mark-dce
Copy link
Contributor

The GraduationJob is leaving certain works in a state where they
cannot be viewed after graduation. Attempting to view the ETDs in question
gives the message:

The work is not currently available because it has not yet completed the publishing process

This change adds a test that puts the ETD in the same pregraduation state:

  1. The student initally submits the ETD with an embargo requested &
    a placeholder pre-graduation-embargo is created
  2. The student changes their mind and choosed to submit the ETD as
    open access before they gradute, but the placeholder embargo does not
    get removed
  3. When the GraduationJob runs it leaves the ETD in an undiscoverable state
    because of the left-over embargo conflicts with the request for open access

The previous code attempted to find an existing pre-graduation embargo and
update the expiration date and visibility.

The fix applied here deletes any embargo applied prior to the student's
graduation. This prevents "open access" ETDs from being published with orphan
embargoes left over from the setps described above. The graduation job applies
embargoes only when a valid embargo request is still in place at graduation.

The GraduationJob is leaving certain works in a state where they
cannot be viewed after graduation. Attempting to view the ETDs in question
gives the message:
>The work is not currently available because it has not yet completed the publishing process

This change adds a test that puts the ETD in the same pregraduation state:
1. The student initally submits the ETD with an embargo requested &
a placeholder pre-graduation-embargo is created
2. The student changes their mind and choosed to submit the ETD as
open access before they gradute, but the placeholder embargo does not
get removed
3. When the GraduationJob runs it leaves the ETD in an undiscoverable state
because of the left-over embargo conflicts with the request for open access

The previous code attempted to find an existing pre-graduation embargo and
update the expiration date and visibility.

The fix applied here deletes any embargo applied prior to the student's
graduation. This prevents "open access" ETDs from being published with orphan
embargoes left over from the setps described above. The graduation job applies
embargoes only when a valid embargo request is still in place at graduation.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.06%) to 92.081% when pulling 2119481 on embargo_bug into 5b9807d on main.

@mark-dce mark-dce mentioned this pull request Oct 15, 2021
2 tasks
@mlooney mlooney merged commit e536a99 into main Oct 15, 2021
@mlooney mlooney deleted the embargo_bug branch October 15, 2021 14:17
@mark-dce mark-dce mentioned this pull request Sep 25, 2024
3 tasks
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.

3 participants