zooniverse / Panoptes-Front-End

Front end for zooniverse/Panoptes
https://www.zooniverse.org
Apache License 2.0
64 stars 75 forks source link

fix(lab): clear references to a task key after deleting a task #7099

Open eatyourgreens opened 1 month ago

eatyourgreens commented 1 month ago

A small helper function which iterates through workflow.tasks and deletes references to a given task key. It's called after deleting a task, so that other tasks no longer link to the deleted task.

Required Manual Testing

Review Checklist

Optional

coveralls commented 1 month ago

Coverage Status

coverage: 57.004% (+0.01%) from 56.994% when pulling ed0942fbccee183da1edbdc56a2192b150353558 on eatyourgreens:fix-next-task into 408ffca76ef87848ffd23082282606ba2a6b3d6c on zooniverse:master.

eatyourgreens commented 1 month ago

Both the new function and its test were written almost entirely by Copilot. It needs supervision, but seems to be very good at small tasks like this.