-
Notifications
You must be signed in to change notification settings - Fork 919
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
[workspace]add 2 step loading in 'Associate data sources' modal #8999
[workspace]add 2 step loading in 'Associate data sources' modal #8999
Conversation
Signed-off-by: Qxisylolo <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8999 +/- ##
==========================================
+ Coverage 60.86% 60.94% +0.08%
==========================================
Files 3808 3809 +1
Lines 91209 91297 +88
Branches 14410 14416 +6
==========================================
+ Hits 55514 55641 +127
+ Misses 32154 32097 -57
- Partials 3541 3559 +18
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: Qxisylolo <[email protected]>
a3c139c
to
9b4259d
Compare
@@ -25,7 +25,11 @@ import { | |||
import { FormattedMessage } from 'react-intl'; | |||
import { i18n } from '@osd/i18n'; | |||
|
|||
import { getDataSourcesList, fetchDataSourceConnections } from '../../utils'; |
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.
I think we can remove function fetchDataSourceConnections
if it's not used anymore.
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.
fetchDataSourceConnections is also required in DataSourceTable, so perhaps we should keep it.
...lugins/workspace/public/components/data_source_association/association_data_source_modal.tsx
Show resolved
Hide resolved
...lugins/workspace/public/components/data_source_association/association_data_source_modal.tsx
Outdated
Show resolved
Hide resolved
Signed-off-by: Qxisylolo <[email protected]>
Signed-off-by: Qxisylolo <[email protected]>
Signed-off-by: Qxisylolo <[email protected]>
Signed-off-by: Qxisylolo <[email protected]>
selectedConnectionIds.includes(connection.id) | ||
? ('on' as const) | ||
: undefined, | ||
prepend: <ConnectionIcon connection={connection} logos={logos} />, |
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.
do we need to keep the style of indent 16px?
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.
Thanks for the comment, I think the indent is set by default in eui.
...lugins/workspace/public/components/data_source_association/association_data_source_modal.tsx
Outdated
Show resolved
Hide resolved
...lugins/workspace/public/components/data_source_association/association_data_source_modal.tsx
Outdated
Show resolved
Hide resolved
...lugins/workspace/public/components/data_source_association/association_data_source_modal.tsx
Outdated
Show resolved
Hide resolved
Signed-off-by: Qxisylolo <[email protected]>
...lugins/workspace/public/components/data_source_association/association_data_source_modal.tsx
Outdated
Show resolved
Hide resolved
Signed-off-by: Qxisylolo <[email protected]>
* add 2 step loading Signed-off-by: Qxisylolo <[email protected]> * Changeset file for PR #8999 created/updated * ifx ut Signed-off-by: Qxisylolo <[email protected]> * resolve comments Signed-off-by: Qxisylolo <[email protected]> * delete functions Signed-off-by: Qxisylolo <[email protected]> * separately fetch dqc Signed-off-by: Qxisylolo <[email protected]> * small mistakes Signed-off-by: Qxisylolo <[email protected]> * dqc should not show data source without dqc Signed-off-by: Qxisylolo <[email protected]> * fix tests Signed-off-by: Qxisylolo <[email protected]> * new update Signed-off-by: Qxisylolo <[email protected]> * delete non-used import Signed-off-by: Qxisylolo <[email protected]> * delete if Signed-off-by: Qxisylolo <[email protected]> * add try catch Signed-off-by: Qxisylolo <[email protected]> --------- Signed-off-by: Qxisylolo <[email protected]> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> Co-authored-by: Yulong Ruan <[email protected]> (cherry picked from commit eff5b27) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
… (#9163) * add 2 step loading * Changeset file for PR #8999 created/updated * ifx ut * resolve comments * delete functions * separately fetch dqc * small mistakes * dqc should not show data source without dqc * fix tests * new update * delete non-used import * delete if * add try catch --------- (cherry picked from commit eff5b27) Signed-off-by: Qxisylolo <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> Co-authored-by: Yulong Ruan <[email protected]>
…search-project#8999) * add 2 step loading Signed-off-by: Qxisylolo <[email protected]> * Changeset file for PR opensearch-project#8999 created/updated * ifx ut Signed-off-by: Qxisylolo <[email protected]> * resolve comments Signed-off-by: Qxisylolo <[email protected]> * delete functions Signed-off-by: Qxisylolo <[email protected]> * separately fetch dqc Signed-off-by: Qxisylolo <[email protected]> * small mistakes Signed-off-by: Qxisylolo <[email protected]> * dqc should not show data source without dqc Signed-off-by: Qxisylolo <[email protected]> * fix tests Signed-off-by: Qxisylolo <[email protected]> * new update Signed-off-by: Qxisylolo <[email protected]> * delete non-used import Signed-off-by: Qxisylolo <[email protected]> * delete if Signed-off-by: Qxisylolo <[email protected]> * add try catch Signed-off-by: Qxisylolo <[email protected]> --------- Signed-off-by: Qxisylolo <[email protected]> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> Co-authored-by: Yulong Ruan <[email protected]>
Description
This pr addresses the issue where a single data source has numerous connections, causing it to take more than 20 seconds to list the available data sources.
When a data source has numerous dqc connections, it will display the data source first with a badge 'loading' which will be replaced by '+n related' after dqc connections are completely loaded
Screenshot(updated)
2024-12-31.14.41.32.mov
Testing the changes
Changelog
Check List
yarn test:jest
yarn test:jest_integration