Skip to content
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

Pre-select choices isn't selected only when using "Label All Tasks" #6994

Open
egerby opened this issue Jan 29, 2025 · 1 comment
Open

Pre-select choices isn't selected only when using "Label All Tasks" #6994

egerby opened this issue Jan 29, 2025 · 1 comment

Comments

@egerby
Copy link

egerby commented Jan 29, 2025

Describe the bug
When using dynamic choices were some are pre-selected they aren't selected when using "Label All Tasks" button but are selected when viewing them one by one.

To Reproduce
Steps to reproduce the behavior:
Project Template:

<View>
    <View>
      <Text name="media" value="test"/>
        <Header value="A choice?"/>
        <Choices name="choice0" toName="media" choice="single" required="true" value="$choices0"/>
        <Choices name="choice1" toName="media" choice="single" required="true" value="$choices1"/>
        <Choices name="choice2" toName="media" choice="single" required="true" value="$choices2"/>
        <Choices name="choice3" toName="media" choice="single" required="true" value="$choices3"/>
    </View>
</View>

Create several tasks with data:
task1:

{
    "choices0": [
      {
        "value": "a",
        "selected": false
      },
      {
        "value": "b",
        "selected": false
      }
    ],
    "choices1": [
      {
        "value": "a",
        "selected": false
      },
      {
        "value": "b",
        "selected": false
      }
    ],
    "choices2": [
      {
        "value": "a",
        "selected": true
      }
    ],
    "choices3": [
      {
        "value": "a",
        "selected": true
      }
    ]
  }

task2:

    "choices0": [
      {
        "value": "a",
        "selected": false
      },
      {
        "value": "b",
        "selected": false
      }
    ],
    "choices1": [
      {
        "value": "a",
        "selected": false
      },
      {
        "value": "b",
        "selected": false
      }
    ],
    "choices2": [
      {
        "value": "a",
        "selected": true
      }
    ],
    "choices3": [
      {
        "value": "a",
        "selected": true
      }
    ]
  }

... (I have created 10 tasks to reproduce the problem)

Expected behavior
Click on "Label All Task" and the choices aren't selected.

Screenshots
Project view:

Image

GIF:

Screen.Recording.2025-01-29.at.18.51.00.mov

Environment (please complete the following information):

  • OS: Docker on macos
  • Label Studio Version 1.14.0
@egerby
Copy link
Author

egerby commented Feb 16, 2025

Hello :)
Do you think someone will be free to look into this issue? Or look at cause of the bug for a possible mitigation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant