-
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] DataSource creation and edition page improvement to better support registered auth types #6122
[Multiple DataSource] DataSource creation and edition page improvement to better support registered auth types #6122
Conversation
…itDataSource pages Signed-off-by: Xinrui Bai <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6122 +/- ##
=======================================
Coverage 67.17% 67.18%
=======================================
Files 3328 3328
Lines 64448 64461 +13
Branches 10376 10376
=======================================
+ Hits 43295 43306 +11
- Misses 18621 18622 +1
- Partials 2532 2533 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
…ge and edit page Signed-off-by: Xinrui Bai <[email protected]>
Signed-off-by: Xinrui Bai <[email protected]>
Signed-off-by: Xinrui Bai <[email protected]>
Signed-off-by: Xinrui Bai <[email protected]>
...management/public/components/edit_data_source/components/edit_form/edit_data_source_form.tsx
Show resolved
Hide resolved
...management/public/components/edit_data_source/components/edit_form/edit_data_source_form.tsx
Outdated
Show resolved
Hide resolved
...management/public/components/edit_data_source/components/edit_form/edit_data_source_form.tsx
Show resolved
Hide resolved
Signed-off-by: Xinrui Bai <[email protected]>
@@ -380,5 +380,71 @@ describe('DataSourceManagement: Utils.ts', () => { | |||
|
|||
expect(deepEqual(registedAuthTypeCredentials, expectExtractedAuthCredentials)); | |||
}); | |||
|
|||
test('Should inherit value from registered field when credentail state not have registered field', () => { |
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.
Typo: credentail
. Actually, there are only 8 files referenced by crendentialFormField
. Can you please fix crendentialFormField
in this PR, and then fix #6122 (comment) (31 files referenced)?
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.
Sure, thanks for the comment.
Fixing.
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.
crendentialFormField
typo resolved, thanks.
…t to better support registered auth types (#6122) * [Token Exchange Unification] State update for createDataSource and editDataSource pages Signed-off-by: Xinrui Bai <[email protected]> * [Token Exchange Unification] rectify state for dataSource creation page and edit page Signed-off-by: Xinrui Bai <[email protected]> * [UT] Add more test cases for util functions Signed-off-by: Xinrui Bai <[email protected]> * [Token Exchange Unification] Update dataSource bottom banner control Signed-off-by: Xinrui Bai <[email protected]> * Update changefile.md Signed-off-by: Xinrui Bai <[email protected]> * Add comments Signed-off-by: Xinrui Bai <[email protected]> * Code review change, fix typo Signed-off-by: Xinrui Bai <[email protected]> * Resolve comments, update typo in test cases Signed-off-by: Xinrui Bai <[email protected]> --------- Signed-off-by: Xinrui Bai <[email protected]> (cherry picked from commit 31e8481) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md
…t to better support registered auth types (#6122) (#6145) * [Token Exchange Unification] State update for createDataSource and editDataSource pages Signed-off-by: Xinrui Bai <[email protected]> * [Token Exchange Unification] rectify state for dataSource creation page and edit page Signed-off-by: Xinrui Bai <[email protected]> * [UT] Add more test cases for util functions Signed-off-by: Xinrui Bai <[email protected]> * [Token Exchange Unification] Update dataSource bottom banner control Signed-off-by: Xinrui Bai <[email protected]> * Update changefile.md Signed-off-by: Xinrui Bai <[email protected]> * Add comments Signed-off-by: Xinrui Bai <[email protected]> * Code review change, fix typo Signed-off-by: Xinrui Bai <[email protected]> * Resolve comments, update typo in test cases Signed-off-by: Xinrui Bai <[email protected]> --------- Signed-off-by: Xinrui Bai <[email protected]> (cherry picked from commit 31e8481) 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
This is the PR to improve state handle for "CreateDataSource" and "EditDataSource" pages. With this change registered auth type with be better supported in editDataSource page by showing initial credential info in the edit page
Issues Resolved
Partially fixes #5692, #5838
Screenshot
CreateDataSourceWithTokenExchange.mov
EditTestingForTokenExchange.mov
Testing the changes
For the first video, we do following steps to test dataSource creation:
For the second video, we do following steps to test dataSource edition:
Check List
yarn test:jest
yarn test:jest_integration