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

Update integrations to allow custom checkpoint locations #1501

Merged
merged 18 commits into from
Mar 9, 2024

Conversation

Swiddis
Copy link
Collaborator

@Swiddis Swiddis commented Mar 8, 2024

Description

Per #1468, integrations has an improperly hardcoded checkpoint location. This PR adds the ability for users to input their own location.

Before:
image

After:
image

Issues Resolved

Closes #1468

Check List

  • New functionality includes testing.
    • All tests pass, including unit test, integration test and doctest
  • New functionality has been documented.
    • New functionality has javadoc added
    • New functionality has user manual doc added
  • Commits are signed per the DCO using --signoff

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.

Swiddis added 14 commits March 6, 2024 14:40
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>
@Swiddis Swiddis added bug Something isn't working integrations Used to denote items related to the Integrations project backport 2.x labels Mar 8, 2024
Copy link

codecov bot commented Mar 8, 2024

Codecov Report

Attention: Patch coverage is 21.27660% with 37 lines in your changes are missing coverage. Please review.

Project coverage is 56.64%. Comparing base (4fdd4e0) to head (5736312).

Files Patch % Lines
...ents/integrations/components/setup_integration.tsx 21.27% 37 Missing ⚠️
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     
Flag Coverage Δ
dashboards-observability 56.64% <21.27%> (+0.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Swiddis Swiddis force-pushed the feature/checkpoint branch from ce784cc to ae4c5c7 Compare March 8, 2024 18:38
@Swiddis Swiddis marked this pull request as ready for review March 8, 2024 18:43
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://')}
Copy link
Member

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.\-]+/;

Copy link
Collaborator Author

@Swiddis Swiddis Mar 9, 2024

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.

@Swiddis Swiddis merged commit dec4ff2 into opensearch-project:main Mar 9, 2024
15 of 20 checks passed
@Swiddis Swiddis deleted the feature/checkpoint branch March 9, 2024 19:53
opensearch-trigger-bot bot pushed a commit that referenced this pull request Mar 9, 2024
* 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>
mengweieric pushed a commit that referenced this pull request Mar 11, 2024
* 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>
amsiglan pushed a commit to amsiglan/dashboards-observability that referenced this pull request Jun 7, 2024
…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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x bug Something isn't working integrations Used to denote items related to the Integrations project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Integrations MV checkpoint is hardcoded to improper location
3 participants