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

Fixed default value for an attribute (RAW editor), refactored labels editor #6474

Merged
merged 8 commits into from
Jul 19, 2023

Conversation

bsekachev
Copy link
Member

@bsekachev bsekachev commented Jul 13, 2023

Motivation and context

Resolved #6415
Related #3113 (need to fix server part and probably throw code 400, not 500)
Related #2927 (need to fix server)

image

How has this been tested?

Checklist

  • I submit my changes into the develop branch
  • I have added a description of my changes into the CHANGELOG file
  • I have updated the documentation accordingly
  • I have added tests to cover my changes
  • I have linked related issues (see GitHub docs)
  • I have increased versions of npm packages if it is necessary
    (cvat-canvas,
    cvat-core,
    cvat-data and
    cvat-ui)

License

  • I submit my code changes under the same MIT License that covers the project.
    Feel free to contact the maintainers if that's a concern.

@bsekachev bsekachev changed the title [WIP] Fixed default value for an attribute Fixed default value for an attribute Jul 18, 2023
@bsekachev bsekachev changed the title Fixed default value for an attribute Fixed default value for an attribute (RAW editor), refactored labels editor Jul 18, 2023
@bsekachev bsekachev requested a review from mdacoca as a code owner July 18, 2023 08:48
@codecov
Copy link

codecov bot commented Jul 18, 2023

Codecov Report

Merging #6474 (4759034) into develop (783c414) will decrease coverage by 0.02%.
The diff coverage is n/a.

❗ Current head 4759034 differs from pull request most recent head 9ae8897. Consider uploading reports for the commit 9ae8897 to get more accurate results

@@             Coverage Diff             @@
##           develop    #6474      +/-   ##
===========================================
- Coverage    81.69%   81.67%   -0.02%     
===========================================
  Files          337      334       -3     
  Lines        38496    38446      -50     
  Branches      3540     3540              
===========================================
- Hits         31449    31401      -48     
+ Misses        7047     7045       -2     
Components Coverage Δ
cvat-ui 75.07% <ø> (+<0.01%) ⬆️
cvat-server 87.79% <ø> (-0.03%) ⬇️

Copy link
Contributor

@Marishka17 Marishka17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Is it expected that attributes are deleted when I press enter when the cursor is in the field for values?
  2. Is it expected that If I try to set the attribute value twice then this value will be removed from values?
  3. Maybe we need to hide the notification press enter to add a new value when the cursor is on one of the attribute's values and we see another notification about the default value
    labels_editor
  4. I guess attribute default value should be removed too when this value is deleted from possible values...
    labels_editor_2

Copy link
Contributor

@Marishka17 Marishka17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bsekachev, LGTM, please resolve conflicts.

@bsekachev bsekachev merged commit f861aef into develop Jul 19, 2023
12 of 13 checks passed
@bsekachev bsekachev deleted the bs/fixed_default_attr_val branch July 20, 2023 10:06
@azhavoro azhavoro mentioned this pull request Jul 27, 2023
bsekachev added a commit that referenced this pull request Jul 27, 2023
## \[2.5.2\] - 2023-07-27

### Added

- We've added support for multi-line text attributes
(<#6458>)
- You can now set a default attribute value for SELECT, RADIO types on
UI
  (<#6474>)
- \[SDK\] `cvat_sdk.datasets`, is now available, providing a
framework-agnostic alternative to `cvat_sdk.pytorch`
  (<#6428>)
- We've introduced analytics for Jobs, Tasks, and Project
(<#6371>)

### Changed

- \[Helm\] In Helm, we've added a configurable default storage option to
the chart (<#6137>)

### Removed

- \[Helm\] In Helm, we've eliminated the obligatory use of hardcoded
traefik ingress (<#6137>)

### Fixed

- Fixed an issue with calculating the number of objects on the
annotation view when frames are deleted
  (<#6493>)
- \[SDK\] In SDK, we've fixed the issue with creating attributes with
blank default values
  (<#6454>)
- \[SDK\] We've corrected a problem in SDK where it was altering input
data in models (<#6455>)
- Fixed exporting of hash for shapes and tags in a specific corner case
(<#6517>)
- Resolved the issue where 3D jobs couldn't be opened in validation mode
(<#6507>)
- Fixed SAM plugin (403 code for workers in organizations)
(<#6514>)
- Fixed the issue where initial frame from query parameter was not
opening specific frame in a job
  (<#6506>)
- Corrected the issue with the removal of the first keyframe
(<#6494>)
- Fixed the display of project previews on small screens and updated
stylelint & rules (<#6551>)
- Implemented server-side validation for attribute specifications
  (<#6447>)
- \[API\] Fixed API issue related to file downloading failures for
filenames with special characters
(<#6492>)
- \[Helm\] In Helm, we've resolved an issue with multiple caches
in the same RWX volume, which was preventing db migration from starting
(<#6137>)

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Anastasia Yasakova <[email protected]>
Co-authored-by: yasakova-anastasia <[email protected]>
Co-authored-by: Roman Donchenko <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Boris Sekachev <[email protected]>
Co-authored-by: Maxim Zhiltsov <[email protected]>
Co-authored-by: Kirill Sizov <[email protected]>
Co-authored-by: Nikita Manovich <[email protected]>
Co-authored-by: Mariia Acoca <[email protected]>
Co-authored-by: Kirill Lakhov <[email protected]>
Co-authored-by: Michael Kirpichev <[email protected]>
Co-authored-by: Michael Kirpichev <[email protected]>
Co-authored-by: Boris Sekachev <[email protected]>
PMazarovich pushed a commit to PMazarovich/cvat that referenced this pull request Aug 15, 2023
## \[2.5.2\] - 2023-07-27

### Added

- We've added support for multi-line text attributes
(<cvat-ai#6458>)
- You can now set a default attribute value for SELECT, RADIO types on
UI
  (<cvat-ai#6474>)
- \[SDK\] `cvat_sdk.datasets`, is now available, providing a
framework-agnostic alternative to `cvat_sdk.pytorch`
  (<cvat-ai#6428>)
- We've introduced analytics for Jobs, Tasks, and Project
(<cvat-ai#6371>)

### Changed

- \[Helm\] In Helm, we've added a configurable default storage option to
the chart (<cvat-ai#6137>)

### Removed

- \[Helm\] In Helm, we've eliminated the obligatory use of hardcoded
traefik ingress (<cvat-ai#6137>)

### Fixed

- Fixed an issue with calculating the number of objects on the
annotation view when frames are deleted
  (<cvat-ai#6493>)
- \[SDK\] In SDK, we've fixed the issue with creating attributes with
blank default values
  (<cvat-ai#6454>)
- \[SDK\] We've corrected a problem in SDK where it was altering input
data in models (<cvat-ai#6455>)
- Fixed exporting of hash for shapes and tags in a specific corner case
(<cvat-ai#6517>)
- Resolved the issue where 3D jobs couldn't be opened in validation mode
(<cvat-ai#6507>)
- Fixed SAM plugin (403 code for workers in organizations)
(<cvat-ai#6514>)
- Fixed the issue where initial frame from query parameter was not
opening specific frame in a job
  (<cvat-ai#6506>)
- Corrected the issue with the removal of the first keyframe
(<cvat-ai#6494>)
- Fixed the display of project previews on small screens and updated
stylelint & rules (<cvat-ai#6551>)
- Implemented server-side validation for attribute specifications
  (<cvat-ai#6447>)
- \[API\] Fixed API issue related to file downloading failures for
filenames with special characters
(<cvat-ai#6492>)
- \[Helm\] In Helm, we've resolved an issue with multiple caches
in the same RWX volume, which was preventing db migration from starting
(<cvat-ai#6137>)

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Anastasia Yasakova <[email protected]>
Co-authored-by: yasakova-anastasia <[email protected]>
Co-authored-by: Roman Donchenko <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Boris Sekachev <[email protected]>
Co-authored-by: Maxim Zhiltsov <[email protected]>
Co-authored-by: Kirill Sizov <[email protected]>
Co-authored-by: Nikita Manovich <[email protected]>
Co-authored-by: Mariia Acoca <[email protected]>
Co-authored-by: Kirill Lakhov <[email protected]>
Co-authored-by: Michael Kirpichev <[email protected]>
Co-authored-by: Michael Kirpichev <[email protected]>
Co-authored-by: Boris Sekachev <[email protected]>
mikhail-treskin pushed a commit to retailnext/cvat that referenced this pull request Oct 25, 2023
…editor (cvat-ai#6474)

<!-- Raise an issue to propose your change
(https://github.com/opencv/cvat/issues).
It helps to avoid duplication of efforts from multiple independent
contributors.
Discuss your ideas with maintainers to be sure that changes will be
approved and merged.
Read the [Contribution
guide](https://opencv.github.io/cvat/docs/contributing/). -->

<!-- Provide a general summary of your changes in the Title above -->

### Motivation and context
Resolved cvat-ai#6415
Related cvat-ai#3113 (need to fix server part and probably throw code 400, not
500)
Related cvat-ai#2927 (need to fix server)


![image](https://github.com/opencv/cvat/assets/40690378/016f9def-bd5f-4dcf-9a00-c6b75b0dd50f)


### How has this been tested?
<!-- Please describe in detail how you tested your changes.
Include details of your testing environment, and the tests you ran to
see how your change affects other areas of the code, etc. -->

### Checklist
<!-- Go over all the following points, and put an `x` in all the boxes
that apply.
If an item isn't applicable for some reason, then ~~explicitly
strikethrough~~ the whole
line. If you don't do that, GitHub will show incorrect progress for the
pull request.
If you're unsure about any of these, don't hesitate to ask. We're here
to help! -->
- [x] I submit my changes into the `develop` branch
- [x] I have added a description of my changes into the
[CHANGELOG](https://github.com/opencv/cvat/blob/develop/CHANGELOG.md)
file
- [ ] I have updated the documentation accordingly
- [ ] I have added tests to cover my changes
- [x] I have linked related issues (see [GitHub docs](

https://help.github.com/en/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword))
- [x] I have increased versions of npm packages if it is necessary

([cvat-canvas](https://github.com/opencv/cvat/tree/develop/cvat-canvas#versioning),

[cvat-core](https://github.com/opencv/cvat/tree/develop/cvat-core#versioning),

[cvat-data](https://github.com/opencv/cvat/tree/develop/cvat-data#versioning)
and

[cvat-ui](https://github.com/opencv/cvat/tree/develop/cvat-ui#versioning))

### License

- [x] I submit _my code changes_ under the same [MIT License](
https://github.com/opencv/cvat/blob/develop/LICENSE) that covers the
project.
  Feel free to contact the maintainers if that's a concern.
mikhail-treskin pushed a commit to retailnext/cvat that referenced this pull request Oct 25, 2023
- We've added support for multi-line text attributes
(<cvat-ai#6458>)
- You can now set a default attribute value for SELECT, RADIO types on
UI
  (<cvat-ai#6474>)
- \[SDK\] `cvat_sdk.datasets`, is now available, providing a
framework-agnostic alternative to `cvat_sdk.pytorch`
  (<cvat-ai#6428>)
- We've introduced analytics for Jobs, Tasks, and Project
(<cvat-ai#6371>)

- \[Helm\] In Helm, we've added a configurable default storage option to
the chart (<cvat-ai#6137>)

- \[Helm\] In Helm, we've eliminated the obligatory use of hardcoded
traefik ingress (<cvat-ai#6137>)

- Fixed an issue with calculating the number of objects on the
annotation view when frames are deleted
  (<cvat-ai#6493>)
- \[SDK\] In SDK, we've fixed the issue with creating attributes with
blank default values
  (<cvat-ai#6454>)
- \[SDK\] We've corrected a problem in SDK where it was altering input
data in models (<cvat-ai#6455>)
- Fixed exporting of hash for shapes and tags in a specific corner case
(<cvat-ai#6517>)
- Resolved the issue where 3D jobs couldn't be opened in validation mode
(<cvat-ai#6507>)
- Fixed SAM plugin (403 code for workers in organizations)
(<cvat-ai#6514>)
- Fixed the issue where initial frame from query parameter was not
opening specific frame in a job
  (<cvat-ai#6506>)
- Corrected the issue with the removal of the first keyframe
(<cvat-ai#6494>)
- Fixed the display of project previews on small screens and updated
stylelint & rules (<cvat-ai#6551>)
- Implemented server-side validation for attribute specifications
  (<cvat-ai#6447>)
- \[API\] Fixed API issue related to file downloading failures for
filenames with special characters
(<cvat-ai#6492>)
- \[Helm\] In Helm, we've resolved an issue with multiple caches
in the same RWX volume, which was preventing db migration from starting
(<cvat-ai#6137>)

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Anastasia Yasakova <[email protected]>
Co-authored-by: yasakova-anastasia <[email protected]>
Co-authored-by: Roman Donchenko <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Boris Sekachev <[email protected]>
Co-authored-by: Maxim Zhiltsov <[email protected]>
Co-authored-by: Kirill Sizov <[email protected]>
Co-authored-by: Nikita Manovich <[email protected]>
Co-authored-by: Mariia Acoca <[email protected]>
Co-authored-by: Kirill Lakhov <[email protected]>
Co-authored-by: Michael Kirpichev <[email protected]>
Co-authored-by: Michael Kirpichev <[email protected]>
Co-authored-by: Boris Sekachev <[email protected]>
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

Successfully merging this pull request may close these issues.

Attributes default value not working for label, instead defaults to 1st value in list
2 participants