cvat-ai / cvat

Annotate better with CVAT, the industry-leading data engine for machine learning. Used and trusted by teams at any scale, for data of any scale.
https://cvat.ai
MIT License
12.62k stars 3.01k forks source link

Deleting Attribute from a Label in Admin, deletes entire label #8337

Closed pixelpixi3 closed 2 months ago

pixelpixi3 commented 2 months ago

Actions before raising this issue

Steps to Reproduce

  1. Go to Admin Page
  2. Select Project
  3. Scroll to Labels
  4. Select Label
  5. Click Change (pencil) next to label name (This also changes the Engine to Labels)
  6. Click Checkbox of the attribute to delete (plan to modify/expand back in project screen) under Delete? column
  7. Confirmation screen appears with

    Are you sure? Are you sure you want to delete the label "testdelete"? All of the following related items will be deleted:

Summary Labels: 1 Attribute specs: 2 Objects Label: testdelete Attribute spec: Occlusion Attribute spec: Month

  1. Label and related data is gone from project

Expected Behavior

I would expect only the attribute I select to be deleted, not the entire label. There is no other method of deleting an unnecessary attribute.

One could modify the attributes in the Raw or Constructor, but a bit of familiarity with coding is helpful. It also indicates it deletes it but it still remains.

Related: https://github.com/cvat-ai/cvat/issues/7743 Editing attributes in the Admin area results in a single listing of attributes instead of individual.

Possible Solution

No response

Context

No response

Environment

Self hosted CVAT
Server version: 2.13.0
Core version: 15.0.3
Canvas version: 2.20.0
UI version: 1.63.7
bsekachev commented 2 months ago
  1. Click checkbox
  2. Press save button

What you described, not reproducable on the latest release.