-
Notifications
You must be signed in to change notification settings - Fork 0
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
[MD][Cred mngment] - PoC Create credential #9
Conversation
...a_source_management/public/components/create_data_source_wizard/components/header/header.tsx
Show resolved
Hide resolved
<p> | ||
<FormattedMessage | ||
id="credentialManagement.createCredential.description" | ||
defaultMessage="An credential can be attached to multiple sources. For example, {credential} can be attached to two data sources {first} and {second}." |
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 An credential
...redential_management/public/components/create_credential_wizard/create_credential_wizard.tsx
Outdated
Show resolved
Hide resolved
...redential_management/public/components/create_credential_wizard/create_credential_wizard.tsx
Show resolved
Hide resolved
...redential_management/public/components/create_credential_wizard/create_credential_wizard.tsx
Outdated
Show resolved
Hide resolved
const legacyPatternsPath = 'management/opensearch-dashboards/credentials'; | ||
|
||
urlForwarding.forwardApp( | ||
'management/opensearch-dashboards/credentials', | ||
newAppPath, | ||
(path) => '/create' | ||
); | ||
|
||
urlForwarding.forwardApp(legacyPatternsPath, newAppPath, (path) => { | ||
const pathInApp = path.substr(legacyPatternsPath.length + 1); | ||
return pathInApp && `/patterns${pathInApp}`; | ||
}); |
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.
there is no need to support legacyPath,
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.
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 also doubt if legacy path support is necessary
src/plugins/credential_management/public/service/creation/manager.ts
Outdated
Show resolved
Hide resolved
try save a credential, but got error? i guess it is because missing crypto_material? if so, how could i got a working dummy crypto_material file?
|
Check readme - https://github.com/elastic-analytics/OpenSearch-Dashboards/tree/2.x/src/plugins/credential_management |
good idea, but i'm not sure if there is industry standard for such kind of file type. |
Thanks, readme helped. there are a few ux issues which we could work with ux to find better experience.
|
Because it is not a top priority, I would remove this UI component for the time being and follow up later: opensearch-project#1872 |
Thanks for the feedback, should included in the next PR. |
...redential_management/public/components/create_credential_wizard/create_credential_wizard.tsx
Show resolved
Hide resolved
.then((res) => { | ||
console.log(res); | ||
}); | ||
} catch (e) { | ||
console.log(e); | ||
} |
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.
show a toast if error
const legacyPatternsPath = 'management/opensearch-dashboards/credentials'; | ||
|
||
urlForwarding.forwardApp( | ||
'management/opensearch-dashboards/credentials', | ||
newAppPath, | ||
(path) => '/create' | ||
); | ||
|
||
urlForwarding.forwardApp(legacyPatternsPath, newAppPath, (path) => { | ||
const pathInApp = path.substr(legacyPatternsPath.length + 1); | ||
return pathInApp && `/patterns${pathInApp}`; | ||
}); |
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 also doubt if legacy path support is necessary
1. PoC delete credentials 2. Resolve some UI feedbacks in #9
Resolved in #12 |
Description