These labels still exist in annotations wrong label count bug
Describe the bug Wrong label count of drafts and annotation displayed when trying to change label name in label config.
To Reproduce Steps to reproduce the behavior:
- Create a project and add 2 sample tasks and create an object detection project
- Create one label on one of the image and wait for draft to be saved
- Create 2 or 3 labels on the same image and wait for draft to be saved, don't submit the task
- Now delete all the labels one by one and let draft save
- Now go to labelling config and change the annotated label name, you will see 4 or 5 label count for the label in drafts ideally i should be able to change the name of label as there are no labels in the project
Expected behavior Projects correct label count should be displayed when user tries to change the label in labelling config
Screenshots (https://github.com/HumanSignal/label-studio/assets/63253704/418dd067-caf7-4035-b9b8-95909e07b03b)
Environment (please complete the following information):
- ubuntu, chrome
- Label Studio Version 1.11.0
Hi @AjayVarmaK,
Thanks for reporting this issue! I just wanted to let you know that a feature that would unblock you in this situation is currently in the works: https://github.com/HumanSignal/label-studio/pull/5432. Unfortunately there are deeper issues with how we are calculating project summary data, which leads to what you're describing, and while we have those issues tracked, they're not on our immediate roadmap. In the case of a miscalculation though, resetting your project summary data would fix the issue.
Cheers, and thanks for using Label Studio, Jo