-
Notifications
You must be signed in to change notification settings - Fork 58
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
Update integrations to allow custom checkpoint locations #1501
Conversation
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1501 +/- ##
==========================================
+ Coverage 56.58% 56.64% +0.05%
==========================================
Files 331 331
Lines 12138 12145 +7
Branches 3119 3116 -3
==========================================
+ Hits 6868 6879 +11
+ Misses 5216 5213 -3
+ Partials 54 53 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
ce784cc
to
ae4c5c7
Compare
error={["Must be a URL starting with 's3://'."]} | ||
> | ||
<EuiFieldText | ||
value={config.connectionLocation} | ||
onChange={(event) => updateConfig({ connectionLocation: event.target.value })} | ||
placeholder="s3://" | ||
isInvalid={isBlurred && !config.connectionLocation.startsWith('s3://')} | ||
isInvalid={isBucketBlurred && !config.connectionLocation.startsWith('s3://')} |
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.
do we need to do a Regex check for location and bucket checkpoint instead of a prefix check?
export const ACCELERATION_S3_URL_REGEX = /^(s3|s3a):\/\/[a-zA-Z0-9.\-]+/; |
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.
Might be overkill? I think UI-wise we already communicate that we need a URL and the protocol check is enough that a user would have to be trying to break it. Not sure if we should try and play the "Write a URL validator" game ourselves unless we have a library specifically for it.
* Update integration type for new format Signed-off-by: Simeon Widdis <sawiddis@amazon.com> * Update integration type validator for new type Signed-off-by: Simeon Widdis <sawiddis@amazon.com> * Fix type errors in integration_reader Signed-off-by: Simeon Widdis <sawiddis@amazon.com> * Fix return types in adaptor Signed-off-by: Simeon Widdis <sawiddis@amazon.com> * Update integrations constants Signed-off-by: Simeon Widdis <sawiddis@amazon.com> * Fix local repository and local repository tests Signed-off-by: Simeon Widdis <sawiddis@amazon.com> * Fix remaining integrations unit tests Signed-off-by: Simeon Widdis <sawiddis@amazon.com> * Add integration format migration Signed-off-by: Simeon Widdis <sawiddis@amazon.com> * Fix frontend usage of integration assets Signed-off-by: Simeon Widdis <sawiddis@amazon.com> * Update integration install query iteration Signed-off-by: Simeon Widdis <sawiddis@amazon.com> * Add checkpoint field to setup form Signed-off-by: Simeon Widdis <sawiddis@amazon.com> * Update checkpoint text based on UI feedback Signed-off-by: Simeon Widdis <sawiddis@amazon.com> * Add new checkpoint usage to setup flow Signed-off-by: Simeon Widdis <sawiddis@amazon.com> * Split out integrations setup methods Signed-off-by: Simeon Widdis <sawiddis@amazon.com> --------- Signed-off-by: Simeon Widdis <sawiddis@amazon.com> (cherry picked from commit dec4ff2) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Update integration type for new format * Update integration type validator for new type * Fix type errors in integration_reader * Fix return types in adaptor * Update integrations constants * Fix local repository and local repository tests * Fix remaining integrations unit tests * Add integration format migration * Fix frontend usage of integration assets * Update integration install query iteration * Add checkpoint field to setup form * Update checkpoint text based on UI feedback * Add new checkpoint usage to setup flow * Split out integrations setup methods --------- (cherry picked from commit dec4ff2) Signed-off-by: Simeon Widdis <sawiddis@amazon.com> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…project#1501) (opensearch-project#1511) * Update integration type for new format * Update integration type validator for new type * Fix type errors in integration_reader * Fix return types in adaptor * Update integrations constants * Fix local repository and local repository tests * Fix remaining integrations unit tests * Add integration format migration * Fix frontend usage of integration assets * Update integration install query iteration * Add checkpoint field to setup form * Update checkpoint text based on UI feedback * Add new checkpoint usage to setup flow * Split out integrations setup methods --------- (cherry picked from commit dec4ff2) Signed-off-by: Simeon Widdis <sawiddis@amazon.com> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> (cherry picked from commit 3191614)
Description
Per #1468, integrations has an improperly hardcoded checkpoint location. This PR adds the ability for users to input their own location.
Before:
After:
Issues Resolved
Closes #1468
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.