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

[BUG][Workspace]Dev server crashed after unassigning self from workspace owner #7639

Closed
wanglam opened this issue Aug 7, 2024 · 1 comment
Labels
bug Something isn't working untriaged

Comments

@wanglam
Copy link
Contributor

wanglam commented Aug 7, 2024

Describe the bug

Dev server crashes due to unhandled promise rejection when attempting to set default data source after the current workspace owner unassigns themselves, as they are removed from the workspace permission list before this operation.

To Reproduce
Steps to reproduce the behavior:

1.Clone main branch and run yarn osd bootstrap
2.Add below configs in config/opensearch_dashboards.yml

workspace.enabled: true
savedObjects.permission.enabled: true
data_source.enabled: true
uiSettings:
  overrides:
    'home:useNewHomePage': true
opensearchDashboards.dashboardAdmin.users: ['admin']

3.Run yarn start --no-base-path
4.Login with admin user and create a test user with kibanauser role
5.Create a workspace and set test user as a workspace owner
6.Login with test user and go to workspace detail page
7.Remove test user in Collaborator tab
8.Click save button and then the dev server will crashed

Expected behavior
Dev server should not be crashed, default data source should be set

OpenSearch Version
N/A

Dashboards Version
Latest main branch

Plugins
workspace

Screenshots
N/A

Host/Environment (please complete the following information):
N/A

Additional context
#4944

@SuZhou-Joe
Copy link
Member

closed because of #7636

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working untriaged
Projects
None yet
Development

No branches or pull requests

2 participants