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

Added error handling if organizations request is failed #7063

Merged
merged 10 commits into from
Oct 30, 2023

Conversation

bsekachev
Copy link
Member

@bsekachev bsekachev commented Oct 26, 2023

Motivation and context

How has this been tested?

Checklist

  • I submit my changes into the develop branch
  • I have created a changelog fragment
  • 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] Added error handling if organizations request is failed Added error handling if organizations request is failed Oct 26, 2023
@@ -67,7 +67,7 @@ class OrganizationViewSet(viewsets.GenericViewSet,
PartialUpdateModelMixin,
):
queryset = Organization.objects.select_related('owner').all()
search_fields = ('name', 'owner')
search_fields = ('name', 'owner', 'slug')
Copy link
Member Author

Choose a reason for hiding this comment

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

name may be empty. It makes it impossible to find some organizations via search query

@codecov
Copy link

codecov bot commented Oct 26, 2023

Codecov Report

Merging #7063 (5dd7e9b) into develop (568f0cb) will decrease coverage by 0.05%.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##           develop    #7063      +/-   ##
===========================================
- Coverage    82.34%   82.30%   -0.05%     
===========================================
  Files          361      361              
  Lines        39222    39222              
  Branches      3588     3588              
===========================================
- Hits         32298    32281      -17     
- Misses        6924     6941      +17     
Components Coverage Δ
cvat-ui 77.29% <ø> (-0.08%) ⬇️
cvat-server 86.90% <100.00%> (-0.01%) ⬇️

Copy link
Contributor

@klakhov klakhov left a comment

Choose a reason for hiding this comment

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

UI part looks good

@nmanovic nmanovic merged commit 43ff5d4 into develop Oct 30, 2023
34 checks passed
@nmanovic nmanovic deleted the bs/additional_org_receive_check branch October 30, 2023 07:39
@cvat-bot cvat-bot bot mentioned this pull request Nov 3, 2023
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.

3 participants