[Multiple DataSource]Refactor authentication type selection in create and edit data source forms#3693
Conversation
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## main #3693 +/- ##
==========================================
- Coverage 66.43% 66.38% -0.05%
==========================================
Files 3210 3210
Lines 61677 61676 -1
Branches 9522 9522
==========================================
- Hits 40977 40946 -31
- Misses 18419 18445 +26
- Partials 2281 2285 +4
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 7 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
|
Could we just confirm with UX the layout is what's been advised? |
@KrooshalUX Kroosh, could you take a look? |
Assuming this is using |
ashwin-pc
left a comment
There was a problem hiding this comment.
Just a few comments about the implementation and types. Functionality looks good.
… forms to use EuiSelect instead of EuiRadioGroup for better user experience Signed-off-by: Su <szhongna@amazon.com>
Signed-off-by: Su <szhongna@amazon.com>
953bc10 to
a45cfe1
Compare
Signed-off-by: Su <szhongna@amazon.com>
a45cfe1 to
26fae2a
Compare
|
@ashwin-pc @kristenTian addressed all comments, and resolve conflict in changelog, plz take another look, thx |
| idSelected={this.state.auth.type} | ||
| onChange={(id) => this.onChangeAuthType(id)} | ||
| value={this.state.auth.type} | ||
| onChange={(e) => this.onChangeAuthType(e)} |
There was a problem hiding this comment.
| onChange={(e) => this.onChangeAuthType(e)} | |
| onChange={this.onChangeAuthType} |
nit: not blocking the PR for this though
| - [Vis Builder] Removed Hard Coded Strings and Used i18n to transalte([#2867](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2867)) | ||
| - [Console] Replace jQuery.ajax with core.http when calling OSD APIs in console ([#3080](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/3080)) | ||
| - [I18n] Fix Listr type errors and error handlers ([#3629](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/3629)) | ||
| - [Multiple DataSource]Refactor authentication type selection in create and edit data source forms to use EuiSelect ([#3693](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/3693)) |
There was a problem hiding this comment.
| - [Multiple DataSource]Refactor authentication type selection in create and edit data source forms to use EuiSelect ([#3693](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/3693)) | |
| - [Multiple DataSource] Present the authentication type choices in a drop-down ([#3693](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/3693)) |
How does this sound?
| { value: AuthType.NoAuth, text: 'No authentication' }, | ||
| { value: AuthType.UsernamePasswordType, text: 'Username & Password' }, | ||
| { value: AuthType.SigV4, text: 'AWS SigV4' }, |
There was a problem hiding this comment.
Can we use i18n for these?
Signed-off-by: Su <szhongna@amazon.com>
… and edit data source forms (#3693) * Refactor authentication type selection in create and edit data source forms to use EuiSelect instead of EuiRadioGroup for better user experience Signed-off-by: Su <szhongna@amazon.com> (cherry picked from commit 44e2e34) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md
… and edit data source forms (#3693) (#3790) * Refactor authentication type selection in create and edit data source forms to use EuiSelect instead of EuiRadioGroup for better user experience Signed-off-by: Su <szhongna@amazon.com> (cherry picked from commit 44e2e34) 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>
… and edit data source forms (opensearch-project#3693) * Refactor authentication type selection in create and edit data source forms to use EuiSelect instead of EuiRadioGroup for better user experience Signed-off-by: Su <szhongna@amazon.com> Signed-off-by: David Sinclair <david@sinclair.tech>
Description
[Multiple DataSource]Refactor authentication type selection in create and edit data source forms to use EuiSelect component
Based on #2110 (comment), I made the UI changes to multiple datasource creation page
Current UI:

Updated UI:


Issues Resolved
#3551
#2110 (comment)
Check List
yarn test:jestyarn test:jest_integrationyarn test:ftr