dashboard: add "Edit Title" option for submissions without an attached INSPIRE ID#961
Draft
dashboard: add "Edit Title" option for submissions without an attached INSPIRE ID#961
Conversation
…INSPIRE ID Agent-Logs-Url: https://github.com/HEPData/hepdata/sessions/32e73825-d444-4737-b992-19c670171d01 Co-authored-by: GraemeWatt <11544204+GraemeWatt@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add 'Edit Title' option for submissions without INSPIRE ID
dashboard: add "Edit Title" option for submissions without an attached INSPIRE ID
Mar 31, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Coordinators creating submissions without an INSPIRE ID provide a provisional title, but had no way to update it from the dashboard before attaching an INSPIRE record. This adds an "Edit Title" button alongside the existing "Attach INSPIRE Record" button for such submissions.
Changes
dashboard/views.py): NewPOST /dashboard/update_title/<recid>endpoint — guards against submissions that already have an INSPIRE ID, enforces coordinator/admin-only access, rejects empty titlesdashboard-submissions.html): Renders "Edit Title" button next to "Attach INSPIRE Record" whenrequires_inspire_idandsubmission_status == 'todo'edit-title-widget.html): New Bootstrap modal with input field, loading/success/error stateshepdata_dashboard.js): Binds.edit-title-btnclick to populate and open the modal; handles AJAX POST and reloads dashboard on successdashboard_test.py): Covers successful update, empty title rejection, and rejection when an INSPIRE ID is already attached