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

[2.16 MDS]Fix access control tab fetching for remote cluster #7456

Merged
merged 1 commit into from
Jul 24, 2024

Conversation

RyanL1997
Copy link
Contributor

Description

This PR will be forward port into both main and 2.x
Fix access control tab fetching for remote cluster

Issues Resolved

  • correct the behavior of fetching remote cluster roles instead of local for direct query datasource

Screenshot

Testing the changes

Changelog

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: Ryan Liang <jiallian@amazon.com>
Copy link
Contributor

❌ Empty Changelog Section

The Changelog section in your PR description is empty. Please add a valid changelog entry or entries. If you did add a changelog entry, check to make sure that it was not accidentally included inside the comment block in the Changelog section.

Copy link

codecov bot commented Jul 24, 2024

Codecov Report

Attention: Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 67.85%. Comparing base (6119fb8) to head (390d3f9).

Files Patch % Lines
...nnection_detail/direct_query_connection_detail.tsx 0.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             2.16    #7456      +/-   ##
==========================================
- Coverage   67.85%   67.85%   -0.01%     
==========================================
  Files        3589     3589              
  Lines       72354    72355       +1     
  Branches    11844    11845       +1     
==========================================
  Hits        49097    49097              
  Misses      20264    20264              
- Partials     2993     2994       +1     
Flag Coverage Δ
Linux_1 33.49% <ø> (ø)
Linux_2 55.66% <ø> (ø)
Linux_3 44.46% <50.00%> (-0.01%) ⬇️
Linux_4 34.19% <ø> (ø)
Windows_1 33.51% <ø> (ø)
Windows_2 55.61% <ø> (ø)
Windows_3 44.46% <50.00%> (-0.01%) ⬇️
Windows_4 34.19% <ø> (ø)

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.

@BionIT BionIT merged commit d152ced into opensearch-project:2.16 Jul 24, 2024
64 of 66 checks passed
@BionIT BionIT added the v2.16.0 label Jul 24, 2024
RyanL1997 added a commit to RyanL1997/OpenSearch-Dashboards that referenced this pull request Jul 24, 2024
ananzh added a commit to ananzh/OpenSearch-Dashboards that referenced this pull request Jul 24, 2024
ashwin-pc added a commit that referenced this pull request Jul 25, 2024
… (#7461)

* [2.16] Fix minor issues for Direct Query Datasource (#7419)

* Switch the tab orders

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* Add delete with MDS support

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* Add acc creation action in data connection table

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* Fix snapshots

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* mute the table row for integration action when feature flag is disabled and no obs installed

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* add integration flyout in dataconnection table

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* Add discover forwarding action in connections table

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* Disable query in observability logs in data connections table action menu

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* Update the test of connection table

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* Update the test of home panel

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* Fix the then for checking observability dashboards

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* Fix delete

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* fix check plugin

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* fix check plugin 2

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* fix check plugin 3 test

Signed-off-by: Ryan Liang <jiallian@amazon.com>

---------

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* Fix integration version

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* Fix access control tab fetching for remote cluster (#7456)

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* Fix snapshots

Signed-off-by: Ryan Liang <jiallian@amazon.com>

---------

Signed-off-by: Ryan Liang <jiallian@amazon.com>
Co-authored-by: Lu Yu <nluyu@amazon.com>
Co-authored-by: Ashwin P Chandran <ashwinpc@amazon.com>
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jul 25, 2024
… (#7461)

* [2.16] Fix minor issues for Direct Query Datasource (#7419)

* Switch the tab orders

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* Add delete with MDS support

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* Add acc creation action in data connection table

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* Fix snapshots

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* mute the table row for integration action when feature flag is disabled and no obs installed

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* add integration flyout in dataconnection table

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* Add discover forwarding action in connections table

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* Disable query in observability logs in data connections table action menu

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* Update the test of connection table

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* Update the test of home panel

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* Fix the then for checking observability dashboards

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* Fix delete

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* fix check plugin

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* fix check plugin 2

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* fix check plugin 3 test

Signed-off-by: Ryan Liang <jiallian@amazon.com>

---------

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* Fix integration version

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* Fix access control tab fetching for remote cluster (#7456)

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* Fix snapshots

Signed-off-by: Ryan Liang <jiallian@amazon.com>

---------

Signed-off-by: Ryan Liang <jiallian@amazon.com>
Co-authored-by: Lu Yu <nluyu@amazon.com>
Co-authored-by: Ashwin P Chandran <ashwinpc@amazon.com>
(cherry picked from commit 6db84ea)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jul 25, 2024
… (#7461)

* [2.16] Fix minor issues for Direct Query Datasource (#7419)

* Switch the tab orders

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* Add delete with MDS support

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* Add acc creation action in data connection table

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* Fix snapshots

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* mute the table row for integration action when feature flag is disabled and no obs installed

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* add integration flyout in dataconnection table

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* Add discover forwarding action in connections table

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* Disable query in observability logs in data connections table action menu

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* Update the test of connection table

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* Update the test of home panel

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* Fix the then for checking observability dashboards

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* Fix delete

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* fix check plugin

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* fix check plugin 2

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* fix check plugin 3 test

Signed-off-by: Ryan Liang <jiallian@amazon.com>

---------

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* Fix integration version

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* Fix access control tab fetching for remote cluster (#7456)

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* Fix snapshots

Signed-off-by: Ryan Liang <jiallian@amazon.com>

---------

Signed-off-by: Ryan Liang <jiallian@amazon.com>
Co-authored-by: Lu Yu <nluyu@amazon.com>
Co-authored-by: Ashwin P Chandran <ashwinpc@amazon.com>
(cherry picked from commit 6db84ea)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
ashwin-pc added a commit that referenced this pull request Jul 25, 2024
… (#7461) (#7491)

* [2.16] Fix minor issues for Direct Query Datasource (#7419)

* Switch the tab orders



* Add delete with MDS support



* Add acc creation action in data connection table



* Fix snapshots



* mute the table row for integration action when feature flag is disabled and no obs installed



* add integration flyout in dataconnection table



* Add discover forwarding action in connections table



* Disable query in observability logs in data connections table action menu



* Update the test of connection table



* Update the test of home panel



* Fix the then for checking observability dashboards



* Fix delete



* fix check plugin



* fix check plugin 2



* fix check plugin 3 test



---------



* Fix integration version



* Fix access control tab fetching for remote cluster (#7456)



* Fix snapshots



---------




(cherry picked from commit 6db84ea)

Signed-off-by: Ryan Liang <jiallian@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: Lu Yu <nluyu@amazon.com>
Co-authored-by: Ashwin P Chandran <ashwinpc@amazon.com>
BionIT added a commit that referenced this pull request Jul 25, 2024
… (#7461) (#7490)

* [2.16] Fix minor issues for Direct Query Datasource (#7419)

* Switch the tab orders



* Add delete with MDS support



* Add acc creation action in data connection table



* Fix snapshots



* mute the table row for integration action when feature flag is disabled and no obs installed



* add integration flyout in dataconnection table



* Add discover forwarding action in connections table



* Disable query in observability logs in data connections table action menu



* Update the test of connection table



* Update the test of home panel



* Fix the then for checking observability dashboards



* Fix delete



* fix check plugin



* fix check plugin 2



* fix check plugin 3 test



---------



* Fix integration version



* Fix access control tab fetching for remote cluster (#7456)



* Fix snapshots



---------




(cherry picked from commit 6db84ea)

Signed-off-by: Ryan Liang <jiallian@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: Lu Yu <nluyu@amazon.com>
Co-authored-by: Ashwin P Chandran <ashwinpc@amazon.com>
Qxisylolo pushed a commit to Qxisylolo/OpenSearch-Dashboards that referenced this pull request Aug 1, 2024
…search-project#7419) (opensearch-project#7461)

* [2.16] Fix minor issues for Direct Query Datasource (opensearch-project#7419)

* Switch the tab orders

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* Add delete with MDS support

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* Add acc creation action in data connection table

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* Fix snapshots

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* mute the table row for integration action when feature flag is disabled and no obs installed

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* add integration flyout in dataconnection table

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* Add discover forwarding action in connections table

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* Disable query in observability logs in data connections table action menu

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* Update the test of connection table

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* Update the test of home panel

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* Fix the then for checking observability dashboards

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* Fix delete

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* fix check plugin

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* fix check plugin 2

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* fix check plugin 3 test

Signed-off-by: Ryan Liang <jiallian@amazon.com>

---------

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* Fix integration version

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* Fix access control tab fetching for remote cluster (opensearch-project#7456)

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* Fix snapshots

Signed-off-by: Ryan Liang <jiallian@amazon.com>

---------

Signed-off-by: Ryan Liang <jiallian@amazon.com>
Co-authored-by: Lu Yu <nluyu@amazon.com>
Co-authored-by: Ashwin P Chandran <ashwinpc@amazon.com>
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.

4 participants