HumanSignal / HumanSignal/label-studio

Task/queue count denominator is wrong during labeling (shows "n of n" instead of "n of m")

Open
#7,643 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
28.3k
Forks
3.7k
Avg merge
14h
Merged PRs (30d)
15

Description

**Describe the bug**

During labeling, it always shows "n of n" as the count of tasks, where it should show "n of m", where n is number of annotations so far, and m is total number of tasks.

**To Reproduce**

Create a project, add tasks, start labeling.

**Expected behavior**

It should show e.g. "1 of 100" when you start, instead of "1 of 1".

**Screenshots**

![Image](https://github.com/user-attachments/assets/45d32bd2-0d2d-4193-99c3-061aef051f0a)

![Image](https://github.com/user-attachments/assets/f9f8a9a2-1fd3-4dbe-8233-271a69693938)

**Environment (please complete the following information):**

- OS: Chrome on Linux
- Label Studio Version: 1.17.0

**Additional context**

Community version

Relevant code is here: https://github.com/HumanSignal/label-studio/blob/3f22d551cf30c54a91692d8d2a651d131eb0d788/web/libs/editor/src/components/TopBar/CurrentTask.jsx#L66-L78 I noticed the feature flag has to do with projects with over 100 tasks, but this bug happens for me on projects with 4 tasks and projects with 200 tasks.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.