-
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
Hide/Show authentication method in multi data source plugin based on configuration #5916
Hide/Show authentication method in multi data source plugin based on configuration #5916
Conversation
…ass value to dataSourceManagement root mount Signed-off-by: Xinrui Bai <xinruiba@amazon.com>
Signed-off-by: Xinrui Bai <xinruiba@amazon.com>
…with AuthRegistray and providing data source options from AuthRegistry Signed-off-by: Xinrui Bai <xinruiba@amazon.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5916 +/- ##
=======================================
Coverage 67.01% 67.02%
=======================================
Files 3310 3307 -3
Lines 63647 63650 +3
Branches 10165 10171 +6
=======================================
+ Hits 42656 42664 +8
+ Misses 18522 18514 -8
- Partials 2469 2472 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
…ce creation page Signed-off-by: Xinrui Bai <xinruiba@amazon.com>
…s no more than 1 Signed-off-by: Xinrui Bai <xinruiba@amazon.com>
…ct NoAuth option. Also update credentialField data type Signed-off-by: Xinrui Bai <xinruiba@amazon.com>
Signed-off-by: Xinrui Bai <xinruiba@amazon.com>
Signed-off-by: Xinrui Bai <xinruiba@amazon.com>
Signed-off-by: Xinrui Bai <xinruiba@amazon.com>
Signed-off-by: Xinrui Bai <xinruiba@amazon.com>
...components/create_data_source_wizard/components/create_form/create_data_source_form.test.tsx
Show resolved
Hide resolved
}); | ||
}); | ||
|
||
test('default auth method is NoAuth when no auth options configured', () => { |
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 thought that will nothing return, and gray out. so we changed the plan to show NoAuth
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.
@bandinib-amzn and I have a further discussion, when there are no option enabled, the UX will looks like this:
Signed-off-by: Xinrui Bai <xinruiba@amazon.com>
Signed-off-by: Xinrui Bai <xinruiba@amazon.com>
Signed-off-by: Xinrui Bai <xinruiba@amazon.com>
Synced with @bandinib-amzn offline, when NoAuth type not been supported, the page will looks like this: |
...components/create_data_source_wizard/components/create_form/create_data_source_form.test.tsx
Outdated
Show resolved
Hide resolved
...blic/components/create_data_source_wizard/components/create_form/create_data_source_form.tsx
Outdated
Show resolved
Hide resolved
…e default message in datasorurce creation form ---> auth type section Signed-off-by: Xinrui Bai <xinruiba@amazon.com>
Test failure not looks like related to this change. |
…configuration (#5916) * [AuthType Config] Add EnabledAuthType configuration in yml file and pass value to dataSourceManagement root mount Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * [AuthType Config] provide default auth types when types array is empty Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * [AuthRegistry Onboard - DataSourceCreationForm] Integrate auth cofig with AuthRegistray and providing data source options from AuthRegistry Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * [AuthRegistry Onboard] Support default selected auth type in datasource creation page Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * [AuthRegistry Onboard] SDisable auth option selector when auth options no more than 1 Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * [AuthRegistry Onboard] clear credential attribute every time use select NoAuth option. Also update credentialField data type Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * Update yml file to disable config Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * Update change.md file Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * [UT] Fix broken test cases Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * [UT] Add more unit tests Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * [UT] update unit test and handle scenario when no options enabled Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * [UT] update description of unit test case Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * [UT] update unit test cases to resolve comment Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * [UT] Snapshot auth option super selector for unit test. Also upate the default message in datasorurce creation form ---> auth type section Signed-off-by: Xinrui Bai <xinruiba@amazon.com> --------- Signed-off-by: Xinrui Bai <xinruiba@amazon.com> (cherry picked from commit 20b6c5a) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md
…configuration (opensearch-project#5916) * [AuthType Config] Add EnabledAuthType configuration in yml file and pass value to dataSourceManagement root mount Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * [AuthType Config] provide default auth types when types array is empty Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * [AuthRegistry Onboard - DataSourceCreationForm] Integrate auth cofig with AuthRegistray and providing data source options from AuthRegistry Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * [AuthRegistry Onboard] Support default selected auth type in datasource creation page Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * [AuthRegistry Onboard] SDisable auth option selector when auth options no more than 1 Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * [AuthRegistry Onboard] clear credential attribute every time use select NoAuth option. Also update credentialField data type Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * Update yml file to disable config Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * Update change.md file Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * [UT] Fix broken test cases Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * [UT] Add more unit tests Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * [UT] update unit test and handle scenario when no options enabled Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * [UT] update description of unit test case Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * [UT] update unit test cases to resolve comment Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * [UT] Snapshot auth option super selector for unit test. Also upate the default message in datasorurce creation form ---> auth type section Signed-off-by: Xinrui Bai <xinruiba@amazon.com> --------- Signed-off-by: Xinrui Bai <xinruiba@amazon.com>
…configuration (#5916) (#5976) * [AuthType Config] Add EnabledAuthType configuration in yml file and pass value to dataSourceManagement root mount Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * [AuthType Config] provide default auth types when types array is empty Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * [AuthRegistry Onboard - DataSourceCreationForm] Integrate auth cofig with AuthRegistray and providing data source options from AuthRegistry Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * [AuthRegistry Onboard] Support default selected auth type in datasource creation page Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * [AuthRegistry Onboard] SDisable auth option selector when auth options no more than 1 Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * [AuthRegistry Onboard] clear credential attribute every time use select NoAuth option. Also update credentialField data type Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * Update yml file to disable config Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * Update change.md file Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * [UT] Fix broken test cases Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * [UT] Add more unit tests Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * [UT] update unit test and handle scenario when no options enabled Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * [UT] update description of unit test case Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * [UT] update unit test cases to resolve comment Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * [UT] Snapshot auth option super selector for unit test. Also upate the default message in datasorurce creation form ---> auth type section Signed-off-by: Xinrui Bai <xinruiba@amazon.com> --------- Signed-off-by: Xinrui Bai <xinruiba@amazon.com> (cherry picked from commit 20b6c5a) 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>
…configuration (opensearch-project#5916) * [AuthType Config] Add EnabledAuthType configuration in yml file and pass value to dataSourceManagement root mount Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * [AuthType Config] provide default auth types when types array is empty Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * [AuthRegistry Onboard - DataSourceCreationForm] Integrate auth cofig with AuthRegistray and providing data source options from AuthRegistry Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * [AuthRegistry Onboard] Support default selected auth type in datasource creation page Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * [AuthRegistry Onboard] SDisable auth option selector when auth options no more than 1 Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * [AuthRegistry Onboard] clear credential attribute every time use select NoAuth option. Also update credentialField data type Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * Update yml file to disable config Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * Update change.md file Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * [UT] Fix broken test cases Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * [UT] Add more unit tests Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * [UT] update unit test and handle scenario when no options enabled Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * [UT] update description of unit test case Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * [UT] update unit test cases to resolve comment Signed-off-by: Xinrui Bai <xinruiba@amazon.com> * [UT] Snapshot auth option super selector for unit test. Also upate the default message in datasorurce creation form ---> auth type section Signed-off-by: Xinrui Bai <xinruiba@amazon.com> --------- Signed-off-by: Xinrui Bai <xinruiba@amazon.com>
Description
PR to hide/Show authentication method in multi data source plugin based on configuration
Please check more details under #5694
Issues Resolved
#5694
Screenshot
AuthTypeRegistry.mov
Testing the changes
New test cases added.
Check List
yarn test:jest
yarn test:jest_integration