psu-libraries / etda_workflow

Electronic Theses and Dissertations Application: Admin, Author, and Committee Member workflows.
MIT License
3 stars 1 forks source link

email authors of upcoming restricted release and autorelease eligible restricted works #784

Open Smullz622 opened 1 month ago

Smullz622 commented 1 month ago

Fixes #757

Adds two rake tasks: Task 1- Emails authors when their restricted submission is one month from release. The email includes a link that will extend the release date by a year. There's a guard on the extension to only update if it is a restricted work and there are less than 3 years from when metadata was released to publication release date. This was done to prevent someone from using the link more than once (getting multiple extensions). Also, I decided for confirmation to just do a flash notice on the submissions page vs a separate confirmation page as previously discussed. It felt more efficient, but if that's not ideal for any reason, I'm happy to change it.

Task 2- Automatically releases submissions that have reached their release date.

This is only for graduate and honors instances. I assume we can just run the rake task on those partners.

Smullz622 commented 1 month ago

Got clarification from OTD, this should only be for 'restricted for Penn State only', not 'restricted'. Making adjustments, but we'll need to make sure honors is still on board with this.