-
Notifications
You must be signed in to change notification settings - Fork 935
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] fix set as default error in data source and index pattern #9187
[workspace] fix set as default error in data source and index pattern #9187
Conversation
Signed-off-by: Qxisylolo <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #9187 +/- ##
==========================================
- Coverage 61.02% 61.01% -0.02%
==========================================
Files 3813 3813
Lines 91401 91400 -1
Branches 14443 14443
==========================================
- Hits 55782 55772 -10
- Misses 32056 32067 +11
+ Partials 3563 3561 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: Qxisylolo <[email protected]>
Signed-off-by: Qxisylolo <[email protected]>
const isSuccess = await uiSettings.set(DEFAULT_DATA_SOURCE_UI_SETTINGS_ID, dataSourceID); | ||
return isSuccess; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const isSuccess = await uiSettings.set(DEFAULT_DATA_SOURCE_UI_SETTINGS_ID, dataSourceID); | |
return isSuccess; | |
return await uiSettings.set(DEFAULT_DATA_SOURCE_UI_SETTINGS_ID, dataSourceID); |
Nit: perhaps we can make it Concise.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the advice, already updated~
Signed-off-by: Qxisylolo <[email protected]>
…#9187) * fix set as default error Signed-off-by: Qxisylolo <[email protected]> * Changeset file for PR #9187 created/updated * add tests Signed-off-by: Qxisylolo <[email protected]> * fix tests Signed-off-by: Qxisylolo <[email protected]> * resolve comments Signed-off-by: Qxisylolo <[email protected]> --------- Signed-off-by: Qxisylolo <[email protected]> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> (cherry picked from commit 5a290a4) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…#9187) (#9195) * fix set as default error * Changeset file for PR #9187 created/updated * add tests * fix tests * resolve comments --------- (cherry picked from commit 5a290a4) Signed-off-by: Qxisylolo <[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> Co-authored-by: SuZhou-Joe <[email protected]>
…opensearch-project#9187) * fix set as default error Signed-off-by: Qxisylolo <[email protected]> * Changeset file for PR opensearch-project#9187 created/updated * add tests Signed-off-by: Qxisylolo <[email protected]> * fix tests Signed-off-by: Qxisylolo <[email protected]> * resolve comments Signed-off-by: Qxisylolo <[email protected]> --------- Signed-off-by: Qxisylolo <[email protected]> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
Description
When a user has read-only access to a workspace
the user shouldn't:
Screenshot
2025-01-15.14.19.36.mov
2025-01-15.14.20.08.mov
Changelog
Check List
yarn test:jest
yarn test:jest_integration