Add 'replace testjob' button
It should be possible to replace existing test job and it's results with new one. It sometimes happens that test definition needs to be updated. Re-running the test job will only add new results to the build while it is requested to replace existing results. So the action should do the following:
- resubmit the job
- delete old job
- delete test run associated with old job
- delete all tests/metrics from old test run
Button should be added next to 'resubmit' buttons and should be available to project admins
How do you feel having it in a dropdown box instead of next to 'resubmit'?
This way we could add other actions to each test job, e.g. https://github.com/Linaro/squad/issues/653
I'm probably OK with that but it might be confusing. Maybe a dropdown + button press should be followed by confirmation dialog? This way we could mitigate at least part of the confusion.
I guess we have to go for some dropdown + button. There already are 3 actions in this box: resubmit, force resubmit, cancel.
Just for the record: Deleting a testrun also deletes the attached testjob, i know it's written in the code, but I just thought about this issue when I read that.