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

Do not fetch all organizations when UI opened #7004

Merged
merged 8 commits into from
Oct 20, 2023

Conversation

bsekachev
Copy link
Member

@bsekachev bsekachev commented Oct 13, 2023

Motivation and context

Now it takes 10+ seconds to receive extra data on app.cvat.ai
Resolved #5982

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 Do not fetch all organization when UI opened Do not fetch all organizations when UI opened Oct 13, 2023
@bsekachev bsekachev changed the title Do not fetch all organizations when UI opened [WIP] Do not fetch all organizations when UI opened Oct 13, 2023
@bsekachev bsekachev changed the title [WIP] Do not fetch all organizations when UI opened Do not fetch all organizations when UI opened Oct 13, 2023
@codecov
Copy link

codecov bot commented Oct 13, 2023

Codecov Report

Merging #7004 (dec4a6f) into develop (e6724fa) will increase coverage by 0.05%.
Report is 12 commits behind head on develop.
The diff coverage is 75.00%.

@@             Coverage Diff             @@
##           develop    #7004      +/-   ##
===========================================
+ Coverage    82.31%   82.37%   +0.05%     
===========================================
  Files          361      361              
  Lines        39168    39178      +10     
  Branches      3586     3585       -1     
===========================================
+ Hits         32243    32271      +28     
+ Misses        6925     6907      -18     
Components Coverage Δ
cvat-ui 77.36% <75.75%> (+0.08%) ⬆️
cvat-server 86.96% <66.66%> (+0.01%) ⬆️

@bsekachev bsekachev requested review from klakhov and removed request for Marishka17 and nmanovic October 17, 2023 05:59
Comment on lines +116 to +117
} else {
dispatch(organizationActions.activateOrganizationFailed(curSlug, 'Unknown error'));
Copy link
Contributor

Choose a reason for hiding this comment

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

What kind of error can be thrown here? (which is not an Error)

Copy link
Member Author

Choose a reason for hiding this comment

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

cvat-ui/src/components/header/header.tsx Outdated Show resolved Hide resolved
bsekachev and others added 2 commits October 18, 2023 09:18
Co-authored-by: Kirill Lakhov <kirill.9992@gmail.com>
@bsekachev bsekachev merged commit f8f2052 into develop Oct 20, 2023
33 checks passed
@bsekachev bsekachev deleted the bs/disable_fetch_all_orgs branch October 23, 2023 11:36
@cvat-bot cvat-bot bot mentioned this pull request Oct 23, 2023
mikhail-treskin pushed a commit to retailnext/cvat that referenced this pull request Oct 25, 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.

Implement lazy fetching of organizations list
2 participants