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

[workspace]add 2 step loading in 'Associate data sources' modal #8999

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

Qxisylolo
Copy link
Contributor

@Qxisylolo Qxisylolo commented Dec 3, 2024

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

2024-12-11.17.46.05.mov

Testing the changes

Changelog

  • feat: Add two-steps loading for associating data sources

Check List

  • All tests pass
    • yarn test:jest
    • yarn test:jest_integration
  • New functionality includes testing.
  • New functionality has been documented.
  • Update CHANGELOG.md
  • Commits are signed per the DCO using --signoff

Signed-off-by: Qxisylolo <[email protected]>
@Qxisylolo Qxisylolo changed the title add 2 step loading [workspace]add 2 step loading in 'Associate data sources' modal Dec 3, 2024
Copy link

codecov bot commented Dec 3, 2024

Codecov Report

Attention: Patch coverage is 83.78378% with 6 lines in your changes missing coverage. Please review.

Project coverage is 60.87%. Comparing base (473c0ae) to head (9b4259d).
Report is 18 commits behind head on main.

Files with missing lines Patch % Lines
src/plugins/workspace/public/utils.ts 16.66% 5 Missing ⚠️
...urce_association/association_data_source_modal.tsx 96.77% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8999      +/-   ##
==========================================
- Coverage   60.88%   60.87%   -0.02%     
==========================================
  Files        3802     3808       +6     
  Lines       91072    91233     +161     
  Branches    14375    14413      +38     
==========================================
+ Hits        55447    55534      +87     
- Misses      32083    32158      +75     
+ Partials     3542     3541       -1     
Flag Coverage Δ
Linux_1 29.03% <83.78%> (+0.01%) ⬆️
Linux_2 56.38% <ø> (ø)
Linux_3 37.93% <ø> (+0.03%) ⬆️
Linux_4 29.01% <ø> (+0.01%) ⬆️
Windows_1 29.05% <83.78%> (+0.01%) ⬆️
Windows_2 56.34% <ø> (ø)
Windows_3 37.94% <ø> (+0.03%) ⬆️
Windows_4 29.01% <ø> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Qxisylolo <[email protected]>
@Qxisylolo Qxisylolo requested a review from huyaboo as a code owner December 4, 2024 02:19
Signed-off-by: Qxisylolo <[email protected]>
return { openSearchConnections, dataConnections, dataSourcesList };
})
.then(({ openSearchConnections, dataConnections, dataSourcesList }) => {
fetchDirectQueryConnections(dataSourcesList, http, notifications).then(
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: I'm thinking of do we need to have a loading status for direct query connections for each data source. Since load direct query connections may take long time, but if we separate to each data source, it would be more faster.

Copy link
Contributor Author

@Qxisylolo Qxisylolo Dec 11, 2024

Choose a reason for hiding this comment

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

Thanks for the advice, updated and new screenshot is also updated

Signed-off-by: Qxisylolo <[email protected]>
Signed-off-by: Qxisylolo <[email protected]>
@Qxisylolo Qxisylolo force-pushed the feat/delay_in-_loading_data_sources branch from 83c1820 to a3c139c Compare December 11, 2024 10:26
Signed-off-by: Qxisylolo <[email protected]>
@Qxisylolo Qxisylolo force-pushed the feat/delay_in-_loading_data_sources branch from a3c139c to 9b4259d Compare December 11, 2024 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants