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] Make dashboards management available #6575

Merged

Conversation

yubonluo
Copy link
Contributor

@yubonluo yubonluo commented Apr 22, 2024

Description

User can choose the feature of Dashboards Management when user create/update a workspace.

Issues Resolved

#6574

Screenshot

image

Testing the changes

  1. Clone the latest code and run yarn osd bootstrap
  2. Modify config/opensearch_dashboards.yml, add workspace.enabled: true
  3. Run yarn start --no-base-path
  4. Create a workspace choose the feature of Dashboard Management

Changelog

  • feat: [Workspace] Make dashboards management available

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

@opensearch-project opensearch-project deleted a comment from github-actions bot Apr 22, 2024
@@ -5,8 +5,9 @@
"ui": true,
"requiredPlugins": [
"savedObjects",
"opensearchDashboardsReact"
"opensearchDashboardsReact",
"management"
Copy link
Collaborator

Choose a reason for hiding this comment

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

any reason move it to requiredPlugins?

Copy link
Contributor Author

@yubonluo yubonluo Apr 22, 2024

Choose a reason for hiding this comment

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

There is a reference in the code: import { MANAGEMENT_APP_ID } from '../../management/public';

Copy link
Member

Choose a reason for hiding this comment

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

I think adding it as require_bundles is good enough.

Copy link
Contributor Author

@yubonluo yubonluo Apr 22, 2024

Choose a reason for hiding this comment

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

If management is not in required bundles, CI will fail.

Copy link
Member

@SuZhou-Joe SuZhou-Joe Apr 22, 2024

Choose a reason for hiding this comment

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

Forget it, it seems requiredBundles has some impact on bundling lifeCycle. Then let's revert to hard-coded version then, sorry for the back-and-forth.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's not a matter, the code has been reverted.

if (category?.id === DEFAULT_APP_CATEGORIES.management.id) {
return filterCondition && id === MANAGEMENT_APP_ID;
}
return filterCondition;
Copy link
Collaborator

Choose a reason for hiding this comment

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

can we add more comments of why we would like add an exception case for management

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, the comments has been added.

@SuZhou-Joe SuZhou-Joe merged commit 8db9688 into opensearch-project:main Apr 22, 2024
67 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Apr 23, 2024
* [Workspace] Make dashboards management available

Signed-off-by: yubonluo <[email protected]>

* [Workspace] optimize the code

Signed-off-by: yubonluo <[email protected]>

* [Workspace] optimize the code

Signed-off-by: yubonluo <[email protected]>

* [Workspace] modify requiredPlugins

Signed-off-by: yubonluo <[email protected]>

* Changeset file for PR #6575 created/updated

* [Workspace] add more comments

Signed-off-by: yubonluo <[email protected]>

* [Workspace] delete useless code

Signed-off-by: yubonluo <[email protected]>

* [Workspace] delete useless code

Signed-off-by: yubonluo <[email protected]>

---------

Signed-off-by: yubonluo <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
(cherry picked from commit 8db9688)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
SuZhou-Joe pushed a commit that referenced this pull request Apr 23, 2024
* [Workspace] Make dashboards management available



* [Workspace] optimize the code



* [Workspace] optimize the code



* [Workspace] modify requiredPlugins



* Changeset file for PR #6575 created/updated

* [Workspace] add more comments



* [Workspace] delete useless code



* [Workspace] delete useless code



---------



(cherry picked from commit 8db9688)

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>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
LDrago27 pushed a commit to LDrago27/OpenSearch-Dashboards that referenced this pull request Jun 3, 2024
…6575)

* [Workspace] Make dashboards management available

Signed-off-by: yubonluo <[email protected]>

* [Workspace] optimize the code

Signed-off-by: yubonluo <[email protected]>

* [Workspace] optimize the code

Signed-off-by: yubonluo <[email protected]>

* [Workspace] modify requiredPlugins

Signed-off-by: yubonluo <[email protected]>

* Changeset file for PR opensearch-project#6575 created/updated

* [Workspace] add more comments

Signed-off-by: yubonluo <[email protected]>

* [Workspace] delete useless code

Signed-off-by: yubonluo <[email protected]>

* [Workspace] delete useless code

Signed-off-by: yubonluo <[email protected]>

---------

Signed-off-by: yubonluo <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[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