-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Conversation
Codecov Report
@@ 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
|
b2fd8ca
to
3abff8f
Compare
b0949ac
to
984a556
Compare
} else { | ||
dispatch(organizationActions.activateOrganizationFailed(curSlug, 'Unknown error')); |
There was a problem hiding this comment.
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
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any error from anywhere. We can't guarantee that it is only Error at all.
https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-0.html#unknown-on-catch-clause-bindings
Co-authored-by: Kirill Lakhov <kirill.9992@gmail.com>
Motivation and context
Now it takes 10+ seconds to receive extra data on app.cvat.ai
Resolved #5982
How has this been tested?
Checklist
develop
branch(cvat-canvas,
cvat-core,
cvat-data and
cvat-ui)
License
Feel free to contact the maintainers if that's a concern.