-
Notifications
You must be signed in to change notification settings - Fork 3.3k
fix: FIT-1120: label-stream cypress test failing consistently #8981
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
✅ Deploy Preview for label-studio-docs-new-theme canceled.
|
✅ Deploy Preview for label-studio-storybook canceled.
|
✅ Deploy Preview for heartex-docs canceled.
|
✅ Deploy Preview for label-studio-playground canceled.
|
| # 1. not_solved_tasks excludes completed tasks but not locked tasks | ||
| # 2. .first() would keep returning the locked task | ||
| # 3. The user would be stuck on the same task unable to progress | ||
| locked_task = Task.get_locked_by(user, tasks=not_solved_tasks) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like a fix for the tests but I wonder how this will affect production logic
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
valid concern - i'd much rather a frontend solution - but this seems to be the only consistent solution
|
closing this PR - addressing issue by cleaning up the test |
This pull request introduces an important fix to the task navigation logic in the data manager queue of the labeling workflow. The change ensures that when a user clicks "next" in the label stream, they are not repeatedly assigned the same locked task, allowing for smooth progression through tasks.
Task navigation improvements:
get_next_task(inlabel_studio/projects/functions/next_task.py) to exclude the currently locked task when using the data manager queue, preventing users from getting stuck on the same task when navigating forward.