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): prevent tasks linking to themselves #7097

Open eatyourgreens opened 1 month ago

eatyourgreens commented 1 month ago

A second go at fixing this, previously fixed in #5925. Pass the current task key as a prop to NextTaskSelector. Filter the list of tasks to exclude that task key, so that a task can't link back to itself.

This has to be edited in the editors for each individual task type, but I think I got them all.

Required Manual Testing

Review Checklist

Optional

coveralls commented 1 month ago

Coverage Status

coverage: 56.966% (-0.03%) from 56.994% when pulling 24ff284d642c6be291a83cf676c6aae3ce448eae on eatyourgreens:fix-next-task-selector into 408ffca76ef87848ffd23082282606ba2a6b3d6c on zooniverse:master.