HumanSignal / HumanSignal/label-studio
XML tags smart and smartOnly have no effect
- Dominant language
- TypeScript
- Stars
- 28.3k
- Forks
- 3.7k
- Avg merge
- 14h
- Merged PRs (30d)
- 15
Description
**Describe the bug**
I have set up a labelstudio-ml-backend for interactive pre-annotations. The labeling interface has three types of labels (see XML code below) of which two have the tag `smartOnly="True"` as explained [here ](https://labelstud.io/guide/ml.html#Get-interactive-preannotations).
However as you can see in the screen shot below I'm still able to select the non-smart keypoint option in the menu on the right while having the "smart keypoint 1" label selected. Vice versa, I can also select the smart keypoint option in that menu while having the non-smart "keypoint labe"l selected (even though `smart=True` is not set for the non-smart keypoint in the XML config.)

**To Reproduce**
- XML configuration for the labeling interface:
```
1
```
**Expected behavior**
What I expect is that
- When I select "smart keypoint 1" the **auto-detect keypoint** option is automatically selected because `smartOnly="true"`

- When I select "smart rectangle 1" the **auto-detect rectangle** option is automatically selected because `smartOnly="true"`

- When I select "keypoint 1" the **non-auto-detect keypoint** option is automatically selected because `smart="true"` is not present

**Environment (please complete the following information):**
- OS: Linux
- Label Studio Version 1.7.3
Contributor guide
Assessment
This issue has not been assessed yet.