-
Notifications
You must be signed in to change notification settings - Fork 10
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
Give admins the ability to reset/request DOIs for Items/Theses where they are missing or broken #1739
Comments
Clicking on the button/link should call remove_doi and the subsequently call handle_doi_states These can be called from within a method in a doi_controller in the admin directrory. The link/button can be made a partial and can be rendered in _item.html.erb along with _thesis.html.erb . Screenshots of mock-ups: 1. Under an admin panelIf we think three will be more things in here in the future this might be the way to go? I think it would be nice for all admin abilities to be in one spot. 2. As a button below the DOIThis might make the most sense as it is right below the 'broken' DOI 3. As a link beside the DOIThis is not a nice looking as a button in my opinion but is still a valid approach Thoughts @mbarnett ? |
I'm also thinking there should be a page refresh so the updated DOI is displayed |
I don't think we want to call The main thing I've seen is that we end up with Items/Theses with no DOI and their doi_state stuck in So probably we want to only render the button in those cases (state is not_available, there is no DOI, and probably it's been greater than X minutes from creation, since right after ingest the button would appear until the background job finishes, otherwise?), to allow admins to re-request an initial minting. Having the button call UI-wise the the first option is probably best if we're assuming most of the time this is intended to handle cases where there is no DOI on the Item/Thesis. edit: oh, and I'd probably put the DOI partial into show, like how we do the files sidebar: https://github.com/ualbertalib/jupiter/blob/integration_postmigration/app/views/items/show.html.erb#L42 rather than put it in the item and thesis partials, which just contain the main content. Otherwise solid plan 👍 |
User Story
As a Developer, I would like to get out of the business of manually fixing issues with DOIs.
Context
Occasionally (phase of the moon? random server reboots? timeouts on datacite's end? idk. I suspect we might be hitting some kind of rate limit on Datacite's end, as it seems to happen to things that are ingested in a large batch...) items are getting stuck with their DOI state in
:unavailable
or:unminted
. Dropping the state and manually touching off a call tohandle_doi_states
has resolved all of these so far, but I've seen 4 or 5 such issues come to me since May, and having me do this manually is an expensive way to solve this problem.Pitch
Let's just create a button in the interface, only available to admins, on Items and Theses, that resets the state machine and re-requests the DOI, so that helpdesk and metadata stakeholders can fix this themselves rather than need our assistance.
The text was updated successfully, but these errors were encountered: