-
Notifications
You must be signed in to change notification settings - Fork 164
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
Lift state up one and generalize flow, render picker for auth tab #1835
Lift state up one and generalize flow, render picker for auth tab #1835
Conversation
Signed-off-by: Derek Ho <dxho@amazon.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## feature/supporting-multiple-datasources #1835 +/- ##
===========================================================================
+ Coverage 67.65% 67.91% +0.25%
===========================================================================
Files 95 95
Lines 2427 2431 +4
Branches 330 330
===========================================================================
+ Hits 1642 1651 +9
+ Misses 707 702 -5
Partials 78 78 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Derek Ho <dxho@amazon.com>
Signed-off-by: Derek Ho <dxho@amazon.com>
@@ -748,19 +755,27 @@ export function defineRoutes(router: IRouter, dataSourceEnabled: boolean) { | |||
{ | |||
path: `${API_PREFIX}/configuration/cache`, | |||
validate: { | |||
body: schema.object({ | |||
query: schema.object({ |
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.
Change to query since GET doesn't support body
Signed-off-by: Derek Ho <dxho@amazon.com>
Signed-off-by: Derek Ho <dxho@amazon.com>
Signed-off-by: Derek Ho <dxho@amazon.com>
Signed-off-by: Derek Ho <dxho@amazon.com>
Signed-off-by: Derek Ho <dxho@amazon.com>
Signed-off-by: Derek Ho <dxho@amazon.com>
Signed-off-by: Derek Ho <dxho@amazon.com>
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.
One small thing but great job
.set(AUTHORIZATION_HEADER_NAME, ADMIN_CREDENTIALS); | ||
|
||
// Getting auth info on a datasource that does not exist | ||
expect(getAuthResponseWrongDataSource.status).not.toEqual(200); |
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.
Nit: This should probably be an assertion against the error code i.e. 500
eae331a
into
opensearch-project:feature/supporting-multiple-datasources
Description
Supports multi datasources for the "Authentication Tab". Lifts the state up to be managed/saved across Get Started and Authentication tabs.
Category
[Enhancement, New feature, Bug fix, Test fix, Refactoring, Maintenance, Documentation]
Why these changes are required?
What is the old behavior before changes and new behavior after changes?
Screen.Recording.2024-03-20.at.3.15.40.PM.mov
Issues Resolved
Fix: #1797, Fix: #1816
Testing
[Please provide details of testing done: unit testing, integration testing and manual testing]
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.