Skip to content
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] Support Amazon OpenSearch Serverless #3957

Merged
merged 5 commits into from
May 19, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update auth type and credentials in CreateDataSourceForm
Signed-off-by: Su <szhongna@amazon.com>
  • Loading branch information
zhongnansu committed May 18, 2023
commit 8451673239c9cf049988c0babf27663e6a44ba9b
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,17 @@ export class CreateDataSourceForm extends React.Component<
};

onChangeAuthType = (e: React.ChangeEvent<HTMLSelectElement>) => {
this.setState({ auth: { ...this.state.auth, type: e.target.value as AuthType } });
const authType = e.target.value as AuthType;
this.setState({
auth: {
...this.state.auth,
type: authType,
credentials: {
...this.state.auth.credentials,
service: authType === AuthType.SigV4 ? SigV4ServiceName.OpenSearch : undefined,
},
},
});
};

onChangeSigV4ServiceName = (e: React.ChangeEvent<HTMLSelectElement>) => {
Expand Down