label-studio icon indicating copy to clipboard operation
label-studio copied to clipboard

Frontend issue prevents editing meta (Object detection with bounding boxes)

Open niazangels opened this issue 1 year ago • 6 comments

Describe the bug For each bounding box, label studio provides a text area to add "Selected region meta". Currently this works exactly one time. Further edits are not getting saved because the frontend is not sending the updated meta to the backend. Frontend is still sending the initially provided value to the backend even when the user has edited the value and "Updated".

To Reproduce Steps to reproduce the behavior:

  1. Create a project of the type "Object Detection with Bounding Boxes"
  2. Upload an image
  3. Start a labelling task and draw a bounding box.
  4. Select the bounding box and in the right sidebar click "Info > [ + ]"
  5. Put in an inital value in the text area ("apple")
  6. Submit the task.
  7. Click on the same bounding box change the meta value to a new one ("ball")
  8. Click update
  9. Click on the same bounding box again and check the meta value of the box.
  10. The value is still the initial value ("apple" )
  11. Check the network request made when the bbox is being updated. It shows that the value is still "apple" even when the meta was changed.

Expected behavior Edited meta should be properly saved on every "Update".

Video demo

https://github.com/HumanSignal/label-studio/assets/2761491/29cae8f5-d354-4ee7-8403-e6992ee3bec4

Environment (please complete the following information):

  • OS: Ubuntu
  • Label Studio Version : 1.10.1

Additional context:

  • I copied the network request as cURL and modified the value being sent to checked if backend was working properly. And it was. :+1:
  • This seems like a frontend fix, and I would have loved to contribute a fix, but my frontend skills are unfortunately severely limited.

niazangels avatar Jan 19 '24 18:01 niazangels

Hi @hogepodge can you review this issue

lalkrishna-nc avatar Feb 07 '24 04:02 lalkrishna-nc

I'm sorry, I no longer work for HumanSignal.

hogepodge avatar Feb 07 '24 15:02 hogepodge

/jira create

Workflow run Jira issue TRIAG-624 is created

sajarin avatar Jun 21 '24 11:06 sajarin

The problem still occurs in version 1.12.1. It was also reported in #5138.

bernhofer avatar Jun 21 '24 12:06 bernhofer

20240807-174640 I commented out the code as shown in the image to solve this issue, but I'm not sure if this will cause other bugs, because my front-end skills are weak and I can't fully understand the source code.

Ariya0o avatar Aug 07 '24 09:08 Ariya0o