-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Unble to edit Attribute name #5978
Comments
Hi, there is no such option yet. As a workaround, you can export a backup, rename the attribute in the downloaded files, then recreate the project from the backup. |
Hello @bsekachev |
hi , i would like to contribute please assign me . |
So currently we don't have the endpoint for deleting an attribute? |
Hi, I think, currently the attribute changes require all the attributes to be sent in the request. You can find tests here. Skeleton labels can also only be sent as a full list, specific sublabels cannot be changed separately. There are 2 ways to update labels now, one it changing a specific label via |
Yes, currently all the attributes are sent in the request. Currently updating an attribute name is creating a new one and not updating the previous one. That might have something to do with the serialization. Thanks for providing the reference. |
Currently, the attribute name is being used as the primary key, so when I am trying to send the updated list of attributes with the new names, a new attribute is being created instead of updating. |
Could you please explain why you think so? Please post a link on the code in the GitHub repo. |
@nmanovic , |
@ritikraj26 , an attribute's name isn't a primary key. You reference a correct piece of code, but it doesn't support the "updating an attribute" case. It should be fixed. Try to propose the best way to fix the issue. Just prepare a PR and we will review it. |
This PR fixes two open issues: - Fixed the [issue](#5978) Unable to edit Attribute name #5978 - Fixed the [issue](#6503) - REST API renaming an attribute does not work #6503 Used attribute id to fetch attribute from the database and renamed it from the list received in the request. Tested it under multiple scenarios, like different attribute types, input values, and labels. ![image](https://github.com/opencv/cvat/assets/76646497/64bf8a0f-becb-442d-bf27-09e77dddfc86)
My actions before raising this issue
Steps to Reproduce (for bugs)
Expected Behaviour
It should be possible to change attribute name
Current Behaviour
Unable to change attirubte name after i created
Possible Solution
can add new attribute however, it's not possible to delete attribute either
Context
when doing project, customers want to change attribute name on the middle of or at the end of the project.
it's pain to annotate all again just for the change of attribute name
Is there any reason why cvat disabled attribute edit box?
thanks so much for your help!
The text was updated successfully, but these errors were encountered: