Dashboard¶
HEPData Dashboard API. |
|
HEPData Dashboard Views. |
hepdata.modules.dashboard.api¶
HEPData Dashboard API.
- hepdata.modules.dashboard.api.add_user_to_metadata(type, user_info, record_id, submissions)[source]¶
- hepdata.modules.dashboard.api.create_record_for_dashboard(record_id, submissions, current_user, coordinator=None, user_role=None, status='todo')[source]¶
- hepdata.modules.dashboard.api.prepare_submissions(current_user, items_per_page=25, current_page=1, record_id=None)[source]¶
Finds all the relevant submissions for a user, or all submissions if the logged in user is a ‘super admin’.
- Parameters
current_user – User obj
items_per_page – maximum number of items to return
current_page – page of current set of results (starting at 1)
- Returns
OrderedDict of submissions
hepdata.modules.dashboard.views¶
HEPData Dashboard Views.
- hepdata.modules.dashboard.views.dashboard()[source]¶
Depending on the user that is logged in, they will get a dashboard that reflects the current status of all submissions of which they are a participant.
- hepdata.modules.dashboard.views.delete_submission(recid)[source]¶
Submissions can only be removed if they are not finalised, meaning they should never be in the index. Only delete the latest version of a submission. Delete indexed information only if version = 1.
- Parameters
recid –
- Returns