-
Notifications
You must be signed in to change notification settings - Fork 918
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
[Multiple Datasource] Handle form values(request payload) if the selected type is available in the authentication registry. #6049
Conversation
…taSource creation and dataSource edition Signed-off-by: Xinrui Bai <xinruiba@amazon.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6049 +/- ##
==========================================
+ Coverage 67.09% 67.11% +0.01%
==========================================
Files 3322 3322
Lines 64238 64258 +20
Branches 10321 10329 +8
==========================================
+ Hits 43101 43126 +25
+ Misses 18621 18610 -11
- Partials 2516 2522 +6
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
…ined in untils.ts Signed-off-by: Xinrui Bai <xinruiba@amazon.com>
Signed-off-by: Xinrui Bai <xinruiba@amazon.com>
…on form Signed-off-by: Xinrui Bai <xinruiba@amazon.com>
…changes enable / disable control and unit test cases Signed-off-by: Xinrui Bai <xinruiba@amazon.com>
Signed-off-by: Xinrui Bai <xinruiba@amazon.com>
...management/public/components/edit_data_source/components/edit_form/edit_data_source_form.tsx
Show resolved
Hide resolved
|
@Flyingliuhub Thanks for the comment, details added. |
CHANGELOG.md
Outdated
@@ -24,7 +24,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) | |||
- [Multiple Datasource] Refactoring create and edit form to use authentication registry ([#6002](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/6002)) | |||
- [Multiple Datasource] Expose a few properties for customize the appearance of the data source selector component ([#6057](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/6057)) | |||
- [Multiple Datasource] Create data source menu component able to be mount to nav bar ([#6082](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/6082)) | |||
|
|||
- [Multiple Datasource] Send registered authentication credentials during the dataSource creation and editing processes ([#6049](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/6049)) |
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.
I would say something simpler, e.g. "Handle form values(request payload) if the selected type is available in the authentication registry." or something like that. Same for PR title.
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 comment~
Will using the suggested title.
...blic/components/create_data_source_wizard/components/create_form/create_data_source_form.tsx
Show resolved
Hide resolved
setTimeout(() => { | ||
updateInputFieldAndBlur(component, descriptionFieldIdentifier, ''); | ||
expect( | ||
// @ts-ignore |
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.
why do we need //@ts-ignore?
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.
Good catch, will remove it.
...ement/public/components/edit_data_source/components/edit_form/edit_data_source_form.test.tsx
Show resolved
Hide resolved
...ement/public/components/edit_data_source/components/edit_form/edit_data_source_form.test.tsx
Show resolved
Hide resolved
Please update with rebase. |
Signed-off-by: Xinrui Bai <xinruiba@amazon.com>
…cted type is available in the authentication registry. (#6049) * [Token Exchange Unification] Send registered crendentail field for dataSource creation and dataSource edition Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * [UT] Add unit test for extractRegisteredAuthTypeCredentials newly defined in untils.ts Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * [UT] add more test cases for util.ts Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * [UT] Add test cases for datasource creation form and datasource edition form Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * [Token Exchange Unification + UT] Button create-data-source and save-changes enable / disable control and unit test cases Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * Update changelog file Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * Addressing comments Signed-off-by: Xinrui Bai <xinruiba@amazon.com> --------- Signed-off-by: Xinrui Bai <xinruiba@amazon.com> (cherry picked from commit 6f4d814) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md
…cted type is available in the authentication registry. (#6049) (#6099) * [Token Exchange Unification] Send registered crendentail field for dataSource creation and dataSource edition Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * [UT] Add unit test for extractRegisteredAuthTypeCredentials newly defined in untils.ts Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * [UT] add more test cases for util.ts Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * [UT] Add test cases for datasource creation form and datasource edition form Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * [Token Exchange Unification + UT] Button create-data-source and save-changes enable / disable control and unit test cases Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * Update changelog file Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * Addressing comments Signed-off-by: Xinrui Bai <xinruiba@amazon.com> --------- Signed-off-by: Xinrui Bai <xinruiba@amazon.com> (cherry picked from commit 6f4d814) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Description
Render credential form for registered from AuthMethod
Issues Resolved
Partially fixes #5692, #5838
Screenshot
AuthCredentialFieldSubmit.mov
Testing the changes
Test steps in this video:
Additionally, E2E tests have been conducted, and the request payload has been verified as correct for registered Auth Types.
Check List
yarn test:jest
yarn test:jest_integration