[Workspace] Enable direct query connections to support in workspace#7839
[Workspace] Enable direct query connections to support in workspace#7839ruanyl merged 36 commits intoopensearch-project:mainfrom
Conversation
Signed-off-by: yubonluo <yubonluo@amazon.com>
Signed-off-by: yubonluo <yubonluo@amazon.com>
Signed-off-by: yubonluo <yubonluo@amazon.com>
…hboards into 2.17/support-DQC
Signed-off-by: yubonluo <yubonluo@amazon.com>
Signed-off-by: yubonluo <yubonluo@amazon.com>
| }); | ||
| }; | ||
|
|
||
| export const getDirectQueryConnections = async (dataSourceId: string, http: HttpSetup) => { |
There was a problem hiding this comment.
Can we just reuse the function from DQC plugin?
There was a problem hiding this comment.
The logic in DQC is coupled within the component(src/plugins/data_source_management/public/components/direct_query_data_sources_components/direct_query_data_connection/manage_direct_query_data_connections_table.tsx)
There was a problem hiding this comment.
Nit: The best practice would be extract the logic to a util function, but I am OK that we leave it.
Signed-off-by: Lin Wang <wonglam@amazon.com>
Signed-off-by: yubonluo <yubonluo@amazon.com>
Signed-off-by: Lin Wang <wonglam@amazon.com>
Signed-off-by: Lin Wang <wonglam@amazon.com>
Add nested support in associate data source modal
Signed-off-by: yubonluo <yubonluo@amazon.com>
|
HI @ruanyl @SuZhou-Joe, @wanglam has made a modification to the association modal. You can take a look when you have time. Thanks~ |
|
The backport to To backport manually, run these commands in your terminal: # Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/OpenSearch-Dashboards/backport-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/OpenSearch-Dashboards/backport-2.x
# Create a new branch
git switch --create backport/backport-7839-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 07988656279b7f696a2e008001300ca3c5c9ef2f
# Push it to GitHub
git push --set-upstream origin backport/backport-7839-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/OpenSearch-Dashboards/backport-2.xThen, create a pull request where the |
…7839) * add dqc Signed-off-by: yubonluo <yubonluo@amazon.com> * add dircet query connections on the detail page Signed-off-by: yubonluo <yubonluo@amazon.com> * Changeset file for PR #7839 created/updated * delete useless code Signed-off-by: yubonluo <yubonluo@amazon.com> * optimize the code Signed-off-by: yubonluo <yubonluo@amazon.com> * optimize the code Signed-off-by: yubonluo <yubonluo@amazon.com> * Refactor association modal Signed-off-by: Kapian1234 <wanjinch@amazon.com> * Integrate modal with workspace detail page Signed-off-by: Lin Wang <wonglam@amazon.com> * Fix parent data source unchecked Signed-off-by: Lin Wang <wonglam@amazon.com> * Remove all tab and sort connections by name alphabetical Signed-off-by: Lin Wang <wonglam@amazon.com> * optimzie Signed-off-by: yubonluo <yubonluo@amazon.com> * Fix checked status disappear after modal tab change Signed-off-by: Lin Wang <wonglam@amazon.com> * optimize the dqc table Signed-off-by: yubonluo <yubonluo@amazon.com> * optimize the code Signed-off-by: yubonluo <yubonluo@amazon.com> * update the table css Signed-off-by: yubonluo <yubonluo@amazon.com> * Simplify options update logic Signed-off-by: Lin Wang <wonglam@amazon.com> * Add unit tests for AssociationDataSourceModal Signed-off-by: Lin Wang <wonglam@amazon.com> * add unit test Signed-off-by: yubonluo <yubonluo@amazon.com> * optimize the code Signed-off-by: yubonluo <yubonluo@amazon.com> * Add nested support in associate data source modal Signed-off-by: Lin Wang <wonglam@amazon.com> * delete useless code Signed-off-by: yubonluo <yubonluo@amazon.com> * Change back type Signed-off-by: Lin Wang <wonglam@amazon.com> * Update type in modal UT Signed-off-by: Lin Wang <wonglam@amazon.com> * optimize the code Signed-off-by: yubonluo <yubonluo@amazon.com> --------- Signed-off-by: yubonluo <yubonluo@amazon.com> Signed-off-by: Kapian1234 <wanjinch@amazon.com> Signed-off-by: Lin Wang <wonglam@amazon.com> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> Co-authored-by: Kapian1234 <wanjinch@amazon.com> Co-authored-by: Lin Wang <wonglam@amazon.com> Co-authored-by: Yulong Ruan <ruanyl@amazon.com> (cherry picked from commit 0798865) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…7839) * add dqc Signed-off-by: yubonluo <yubonluo@amazon.com> * add dircet query connections on the detail page Signed-off-by: yubonluo <yubonluo@amazon.com> * Changeset file for PR #7839 created/updated * delete useless code Signed-off-by: yubonluo <yubonluo@amazon.com> * optimize the code Signed-off-by: yubonluo <yubonluo@amazon.com> * optimize the code Signed-off-by: yubonluo <yubonluo@amazon.com> * Refactor association modal Signed-off-by: Kapian1234 <wanjinch@amazon.com> * Integrate modal with workspace detail page Signed-off-by: Lin Wang <wonglam@amazon.com> * Fix parent data source unchecked Signed-off-by: Lin Wang <wonglam@amazon.com> * Remove all tab and sort connections by name alphabetical Signed-off-by: Lin Wang <wonglam@amazon.com> * optimzie Signed-off-by: yubonluo <yubonluo@amazon.com> * Fix checked status disappear after modal tab change Signed-off-by: Lin Wang <wonglam@amazon.com> * optimize the dqc table Signed-off-by: yubonluo <yubonluo@amazon.com> * optimize the code Signed-off-by: yubonluo <yubonluo@amazon.com> * update the table css Signed-off-by: yubonluo <yubonluo@amazon.com> * Simplify options update logic Signed-off-by: Lin Wang <wonglam@amazon.com> * Add unit tests for AssociationDataSourceModal Signed-off-by: Lin Wang <wonglam@amazon.com> * add unit test Signed-off-by: yubonluo <yubonluo@amazon.com> * optimize the code Signed-off-by: yubonluo <yubonluo@amazon.com> * Add nested support in associate data source modal Signed-off-by: Lin Wang <wonglam@amazon.com> * delete useless code Signed-off-by: yubonluo <yubonluo@amazon.com> * Change back type Signed-off-by: Lin Wang <wonglam@amazon.com> * Update type in modal UT Signed-off-by: Lin Wang <wonglam@amazon.com> * optimize the code Signed-off-by: yubonluo <yubonluo@amazon.com> --------- Signed-off-by: yubonluo <yubonluo@amazon.com> Signed-off-by: Kapian1234 <wanjinch@amazon.com> Signed-off-by: Lin Wang <wonglam@amazon.com> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> Co-authored-by: Kapian1234 <wanjinch@amazon.com> Co-authored-by: Lin Wang <wonglam@amazon.com> Co-authored-by: Yulong Ruan <ruanyl@amazon.com> (cherry picked from commit 0798865) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…7839) (#8010) * add dqc * add dircet query connections on the detail page * Changeset file for PR #7839 created/updated * delete useless code * optimize the code * optimize the code * Refactor association modal * Integrate modal with workspace detail page * Fix parent data source unchecked * Remove all tab and sort connections by name alphabetical * optimzie * Fix checked status disappear after modal tab change * optimize the dqc table * optimize the code * update the table css * Simplify options update logic * Add unit tests for AssociationDataSourceModal * add unit test * optimize the code * Add nested support in associate data source modal * delete useless code * Change back type * Update type in modal UT * optimize the code --------- (cherry picked from commit 0798865) Signed-off-by: yubonluo <yubonluo@amazon.com> Signed-off-by: Kapian1234 <wanjinch@amazon.com> Signed-off-by: Lin Wang <wonglam@amazon.com> 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: Kapian1234 <wanjinch@amazon.com> Co-authored-by: Lin Wang <wonglam@amazon.com> Co-authored-by: Yulong Ruan <ruanyl@amazon.com>
…7839) (#8010) * add dqc * add dircet query connections on the detail page * Changeset file for PR #7839 created/updated * delete useless code * optimize the code * optimize the code * Refactor association modal * Integrate modal with workspace detail page * Fix parent data source unchecked * Remove all tab and sort connections by name alphabetical * optimzie * Fix checked status disappear after modal tab change * optimize the dqc table * optimize the code * update the table css * Simplify options update logic * Add unit tests for AssociationDataSourceModal * add unit test * optimize the code * Add nested support in associate data source modal * delete useless code * Change back type * Update type in modal UT * optimize the code --------- (cherry picked from commit 0798865) Signed-off-by: yubonluo <yubonluo@amazon.com> Signed-off-by: Kapian1234 <wanjinch@amazon.com> Signed-off-by: Lin Wang <wonglam@amazon.com> 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: Kapian1234 <wanjinch@amazon.com> Co-authored-by: Lin Wang <wonglam@amazon.com> Co-authored-by: Yulong Ruan <ruanyl@amazon.com> (cherry picked from commit d88e3b0) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…7839) (#8010) (#8048) * add dqc * add dircet query connections on the detail page * Changeset file for PR #7839 created/updated * delete useless code * optimize the code * optimize the code * Refactor association modal * Integrate modal with workspace detail page * Fix parent data source unchecked * Remove all tab and sort connections by name alphabetical * optimzie * Fix checked status disappear after modal tab change * optimize the dqc table * optimize the code * update the table css * Simplify options update logic * Add unit tests for AssociationDataSourceModal * add unit test * optimize the code * Add nested support in associate data source modal * delete useless code * Change back type * Update type in modal UT * optimize the code --------- (cherry picked from commit 0798865) (cherry picked from commit d88e3b0) Signed-off-by: yubonluo <yubonluo@amazon.com> Signed-off-by: Kapian1234 <wanjinch@amazon.com> Signed-off-by: Lin Wang <wonglam@amazon.com> 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: Kapian1234 <wanjinch@amazon.com> Co-authored-by: Lin Wang <wonglam@amazon.com> Co-authored-by: Yulong Ruan <ruanyl@amazon.com>
Description
Enable direct query connections to support in workspace
Issues Resolved
#7939
Screenshot
2024-08-29.00.08.43.mp4
Testing the changes
Changelog
Check List
yarn test:jestyarn test:jest_integration