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] Integrate dashboard admin with dynamic config #8137

Conversation

yubonluo
Copy link
Contributor

@yubonluo yubonluo commented Sep 11, 2024

Description

Integrate dashboard admin with dynamic config(#7194)

If you do not config users/groups, anyone will not be dashboard admin.

opensearchDashboards.dashboardAdmin.groups: []
opensearchDashboards.dashboardAdmin.users: []

If your backend role is admin, you will be dashboard admin.

opensearchDashboards.dashboardAdmin.groups: ["admin"]
opensearchDashboards.dashboardAdmin.users: []

If your login is admin, you will be dashboard admin.

opensearchDashboards.dashboardAdmin.groups: []
opensearchDashboards.dashboardAdmin.users: ["admin"]

If you do not config users as *, anyone will be dashboard admin.

opensearchDashboards.dashboardAdmin.groups: []
opensearchDashboards.dashboardAdmin.users: ["*"]

Issues Resolved

Screenshot

Testing the changes

Changelog

  • refactor: [Workspace] Integrate dashboard admin with dynamic config

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

Copy link

codecov bot commented Sep 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.86%. Comparing base (12d072d) to head (f1e6c5b).
Report is 53 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8137   +/-   ##
=======================================
  Coverage   60.86%   60.86%           
=======================================
  Files        3793     3793           
  Lines       90442    90457   +15     
  Branches    14198    14202    +4     
=======================================
+ Hits        55045    55056   +11     
- Misses      31910    31911    +1     
- Partials     3487     3490    +3     
Flag Coverage Δ
Linux_1 29.08% <100.00%> (+<0.01%) ⬆️
Linux_2 56.40% <ø> (+0.01%) ⬆️
Linux_3 37.68% <ø> (+<0.01%) ⬆️
Linux_4 29.85% <ø> (+<0.01%) ⬆️
Windows_1 29.10% <100.00%> (+<0.01%) ⬆️
Windows_2 56.35% <ø> (+0.01%) ⬆️
Windows_3 37.69% <ø> (+<0.01%) ⬆️
Windows_4 29.85% <ø> (+<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.

@yubonluo yubonluo force-pushed the 2.17/Integrate-dashboard-admin-with-dynamic-config branch from 57c7e9e to 9640545 Compare September 11, 2024 12:14
@yubonluo yubonluo force-pushed the 2.17/Integrate-dashboard-admin-with-dynamic-config branch from 9640545 to f1e6c5b Compare October 23, 2024 08:27
@ruanyl ruanyl merged commit bdb2953 into opensearch-project:main Nov 11, 2024
73 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Nov 11, 2024
Signed-off-by: yubonluo <[email protected]>
(cherry picked from commit bdb2953)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
SuZhou-Joe pushed a commit that referenced this pull request Nov 12, 2024
(cherry picked from commit bdb2953)

Signed-off-by: yubonluo <[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>
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.

5 participants