askap-vast / vast-pipeline

This repository holds the code of the Radio Transient detection pipeline for the VAST project.
https://vast-survey.org/vast-pipeline/
MIT License
7 stars 3 forks source link

Added UI run action buttons #580

Closed ajstewart closed 2 years ago

ajstewart commented 2 years ago

This adds action buttons to the run detail page to allow users to perform actions through the UI that had only been available to admins via the CLI.

Specifically users can now:

Which all uses the existing django-q processing (and using the Django call_command which makes things much more straight forward).

I have tested as much as possible but they all use the same user check as the process run command so it should all be good. Probably best to test it in a dev env through with lots of users.

It also includes:

For the deletion from the UI I decided to make it so that the remove all option is used - i.e. the whole directory is removed. I thought that from the UI it made sense to remove everything. Otherwise that name of job will be forever blocked off without someone going in and removing the run directory.

Built on top of #576, that should be looked at first.

Fixes #579.

Screenshots:

Screen Shot 2021-09-09 at 19 46 01 restore-run-modal Screen Shot 2021-09-09 at 19 46 26 Screen Shot 2021-09-09 at 19 47 35