-
Notifications
You must be signed in to change notification settings - Fork 920
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
feat: introducing workspace level ui settings and hide non-global ui settings from advance settings page #8500
Conversation
ui settings from advance settings page + make defaultIndex pattern a workspace ui setting when workspace is on and make it a global setting when workspace is off Signed-off-by: Yulong Ruan <ruanyl@amazon.com>
❌ Empty Changelog SectionThe Changelog section in your PR description is empty. Please add a valid changelog entry or entries. If you did add a changelog entry, check to make sure that it was not accidentally included inside the comment block in the Changelog section. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8500 +/- ##
=======================================
Coverage 60.95% 60.95%
=======================================
Files 3766 3768 +2
Lines 89364 89396 +32
Branches 13978 13981 +3
=======================================
+ Hits 54468 54492 +24
- Misses 31498 31506 +8
Partials 3398 3398
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
CI failed, not sure if related. |
…vance-setting-page
Signed-off-by: Yulong Ruan <ruanyl@amazon.com>
// cannot import from core/server due to src/core/server/saved_objects/opensearch_query.js which | ||
// export { opensearchKuery } from '../../../plugins/data/server'; | ||
// eslint-disable-next-line @osd/eslint/no-restricted-paths | ||
import { UiSettingScope } from '../../../core/server/ui_settings/types'; |
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.
will this impacts build?
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.
No. Actually, if importing from core/server
, it only affects the unit tests in create_or_upgrade_saved_config.test.ts
…settings from advance settings page (#8500) * feat: introducing workspace level ui settings and hide non-global ui settings from advance settings page + make defaultIndex pattern a workspace ui setting when workspace is on and make it a global setting when workspace is off Signed-off-by: Yulong Ruan <ruanyl@amazon.com> * Changeset file for PR #8500 created/updated * fix: failed tests Signed-off-by: Yulong Ruan <ruanyl@amazon.com> * fix: lint Signed-off-by: Yulong Ruan <ruanyl@amazon.com> --------- Signed-off-by: Yulong Ruan <ruanyl@amazon.com> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> (cherry picked from commit 91fd6d3) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…settings from advance settings page (#8500) (#8539) * feat: introducing workspace level ui settings and hide non-global ui settings from advance settings page + make defaultIndex pattern a workspace ui setting when workspace is on and make it a global setting when workspace is off --------- (cherry picked from commit 91fd6d3) Signed-off-by: Yulong Ruan <ruanyl@amazon.com> 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>
…settings from advance settings page (opensearch-project#8500) * feat: introducing workspace level ui settings and hide non-global ui settings from advance settings page + make defaultIndex pattern a workspace ui setting when workspace is on and make it a global setting when workspace is off Signed-off-by: Yulong Ruan <ruanyl@amazon.com> * Changeset file for PR opensearch-project#8500 created/updated * fix: failed tests Signed-off-by: Yulong Ruan <ruanyl@amazon.com> * fix: lint Signed-off-by: Yulong Ruan <ruanyl@amazon.com> --------- Signed-off-by: Yulong Ruan <ruanyl@amazon.com> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
Description
UI changes:
Make
defaultIndex
pattern a workspace ui setting when workspace is on and make it a global setting when workspace is offIssues Resolved
Screenshot
Workspace disabled:
Workspace enabled:
Testing the changes
Changelog
Check List
yarn test:jest
yarn test:jest_integration