-
Notifications
You must be signed in to change notification settings - Fork 919
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
Allow unknown query parameter for ui settings route #8152
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #8152 +/- ##
==========================================
- Coverage 63.89% 63.89% -0.01%
==========================================
Files 3739 3739
Lines 88752 88752
Branches 13810 13810
==========================================
- Hits 56712 56710 -2
- Misses 31444 31446 +2
Partials 596 596
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@@ -43,6 +43,7 @@ const validate = { | |||
scope: schema.maybe( | |||
schema.oneOf([schema.literal(UiSettingScope.GLOBAL), schema.literal(UiSettingScope.USER)]) | |||
), | |||
security_tenant: schema.maybe(schema.any()), |
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.
Just feel having security tenant in core is a bit weird.
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.
right, remove whole query validation part
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.
found a new option to allow unknown parameters
Signed-off-by: Hailong Cui <[email protected]>
14002d7
to
55cc11f
Compare
Signed-off-by: Hailong Cui <[email protected]> (cherry picked from commit ba8c50b) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Signed-off-by: Hailong Cui <[email protected]> (cherry picked from commit ba8c50b) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
(cherry picked from commit ba8c50b) Signed-off-by: Hailong Cui <[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>
(cherry picked from commit ba8c50b) Signed-off-by: Hailong Cui <[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>
Description
Issues Resolved
functional test set ui settings with tenant specified
https://github.com/opensearch-project/opensearch-dashboards-functional-test/blob/c9884bf615b9ab50c013abda4f878f7899a9d1d8/cypress/utils/commands.js#L483-L506
Screenshot
Testing the changes
calling
api/opensearch-dashboards/settings
with query parameterChangelog
Check List
yarn test:jest
yarn test:jest_integration