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

Hide datasource and settings menu in dashboard management when in workspace #6455

Merged
merged 3 commits into from
Apr 17, 2024

Conversation

raintygao
Copy link
Contributor

@raintygao raintygao commented Apr 15, 2024

Description

Hide datasource and settings menu in dashboard management when in workspace

Issues Resolved

#6453

Screenshot

image
In workspace

image
Not in workspace

Testing the changes

When set workspace feature enabled in YML and entering workspace, the data source and advanced settings menu will be hidden. These two menus will show after exiting workspace.

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

@raintygao raintygao marked this pull request as ready for review April 15, 2024 09:53
@raintygao raintygao changed the title hide datasource and settings menu when in workspace Hide datasource and settings menu in dashboard management when in workspace Apr 15, 2024
SuZhou-Joe
SuZhou-Joe previously approved these changes Apr 15, 2024
Copy link
Member

@SuZhou-Joe SuZhou-Joe left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

codecov bot commented Apr 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 55.61%. Comparing base (d2d410b) to head (59f62fa).

❗ Current head 59f62fa differs from pull request most recent head 8d074c3. Consider uploading reports for the commit 8d074c3 to get more accurate results

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #6455       +/-   ##
===========================================
+ Coverage   32.93%   55.61%   +22.67%     
===========================================
  Files        2260     1200     -1060     
  Lines       45769    24271    -21498     
  Branches     7200     4094     -3106     
===========================================
- Hits        15075    13498     -1577     
+ Misses      29984    10128    -19856     
+ Partials      710      645       -65     
Flag Coverage Δ
Linux_1 ?
Linux_2 55.61% <ø> (?)

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.

raintygao and others added 3 commits April 17, 2024 16:29
… workspace

Signed-off-by: tygao <tygao@amazon.com>
Signed-off-by: tygao <tygao@amazon.com>
Co-authored-by: Yulong Ruan <ruanyu1@gmail.com>
Signed-off-by: tygao <tygao@amazon.com>
@SuZhou-Joe SuZhou-Joe merged commit 7a46475 into opensearch-project:main Apr 17, 2024
65 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Apr 22, 2024
…kspace (#6455)

* hide datasource and settings menu when workspace enabled and entering workspace

Signed-off-by: tygao <tygao@amazon.com>

* doc: update changelog

Signed-off-by: tygao <tygao@amazon.com>

* update comments

Co-authored-by: Yulong Ruan <ruanyu1@gmail.com>
Signed-off-by: tygao <tygao@amazon.com>

---------

Signed-off-by: tygao <tygao@amazon.com>
Co-authored-by: Yulong Ruan <ruanyu1@gmail.com>
(cherry picked from commit 7a46475)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

# Conflicts:
#	CHANGELOG.md
SuZhou-Joe pushed a commit that referenced this pull request Apr 22, 2024
…kspace (#6455) (#6579)

* hide datasource and settings menu when workspace enabled and entering workspace

Signed-off-by: tygao <tygao@amazon.com>

* doc: update changelog

Signed-off-by: tygao <tygao@amazon.com>

* update comments

Co-authored-by: Yulong Ruan <ruanyu1@gmail.com>
Signed-off-by: tygao <tygao@amazon.com>

---------

Signed-off-by: tygao <tygao@amazon.com>
Co-authored-by: Yulong Ruan <ruanyu1@gmail.com>
(cherry picked from commit 7a46475)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

# Conflicts:
#	CHANGELOG.md

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