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

[Backport 2.x] Add Index-based adaptor for integrations #1399

Merged
merged 1 commit into from
Feb 2, 2024

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport ee3ca58 from #1381.

* Update comment for json adaptor construction

Signed-off-by: Simeon Widdis <[email protected]>

* Stub index data adaptor class

Signed-off-by: Simeon Widdis <[email protected]>

* Add initial impl for findIntegrationVersions

Signed-off-by: Simeon Widdis <[email protected]>

* Fill in simple getDirectoryType implementation

Signed-off-by: Simeon Widdis <[email protected]>

* Implement index adaptor as wrapper for json adaptor

Signed-off-by: Simeon Widdis <[email protected]>

* Add integration template type for index

Signed-off-by: Simeon Widdis <[email protected]>

* Fix lints for server/routes

Signed-off-by: Simeon Widdis <[email protected]>

* Fix integrations_manager lints

Signed-off-by: Simeon Widdis <[email protected]>

* Refactor template manager to support multiple readers at once

Signed-off-by: Simeon Widdis <[email protected]>

* Rename FileSystemCatalogDataAdaptor -> FileSystemDataAdaptor

Signed-off-by: Simeon Widdis <[email protected]>

* Add IndexReader to existing Manager logic

Signed-off-by: Simeon Widdis <[email protected]>

* Fix plugin label type

Signed-off-by: Simeon Widdis <[email protected]>

* Add tests for index adaptor

Signed-off-by: Simeon Widdis <[email protected]>

* Add object management to integration objects

Signed-off-by: Simeon Widdis <[email protected]>

* Fix bug with version parsing for numeric integration names

Signed-off-by: Simeon Widdis <[email protected]>

* Prioritize dynamic integrations over defaults

Signed-off-by: Simeon Widdis <[email protected]>

---------

Signed-off-by: Simeon Widdis <[email protected]>
(cherry picked from commit ee3ca58)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Copy link

codecov bot commented Feb 1, 2024

Codecov Report

Attention: 15 lines in your changes are missing coverage. Please review.

Comparison is base (ee4edc1) 54.19% compared to head (c68002b) 54.29%.

Files Patch % Lines
server/routes/integrations/integrations_router.ts 16.66% 10 Missing ⚠️
...tors/integrations/repository/index_data_adaptor.ts 88.88% 3 Missing ⚠️
...rver/adaptors/integrations/integrations_manager.ts 85.71% 1 Missing ⚠️
...ver/adaptors/integrations/repository/repository.ts 95.83% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              2.x    #1399      +/-   ##
==========================================
+ Coverage   54.19%   54.29%   +0.10%     
==========================================
  Files         314      315       +1     
  Lines       11114    11154      +40     
  Branches     2978     2982       +4     
==========================================
+ Hits         6023     6056      +33     
- Misses       5042     5049       +7     
  Partials       49       49              
Flag Coverage Δ
dashboards-observability 54.29% <80.26%> (+0.10%) ⬆️

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 added enhancement New feature or request integrations Used to denote items related to the Integrations project labels Feb 1, 2024
@Swiddis Swiddis merged commit 045306e into 2.x Feb 2, 2024
23 of 36 checks passed
@Swiddis Swiddis deleted the backport/backport-1381-to-2.x branch February 2, 2024 19:10
RyanL1997 pushed a commit to RyanL1997/dashboards-observability that referenced this pull request Apr 18, 2024
…pensearch-project#1396) (opensearch-project#1399)

* Fixed get-started page image not adapting to the browser window size

Signed-off-by: Sirazh Gabdullin <[email protected]>
Co-authored-by: Stephen Crawford <[email protected]>
(cherry picked from commit ce57d868af80e95c3493f2da155ca16902a333f8)
amsiglan pushed a commit to amsiglan/dashboards-observability that referenced this pull request Jun 7, 2024
…roject#1399)

* Update comment for json adaptor construction

* Stub index data adaptor class

* Add initial impl for findIntegrationVersions

* Fill in simple getDirectoryType implementation

* Implement index adaptor as wrapper for json adaptor

* Add integration template type for index

* Fix lints for server/routes

* Fix integrations_manager lints

* Refactor template manager to support multiple readers at once

* Rename FileSystemCatalogDataAdaptor -> FileSystemDataAdaptor

* Add IndexReader to existing Manager logic

* Fix plugin label type

* Add tests for index adaptor

* Add object management to integration objects

* Fix bug with version parsing for numeric integration names

* Prioritize dynamic integrations over defaults

---------

(cherry picked from commit ee3ca58)

Signed-off-by: Simeon Widdis <[email protected]>
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 045306e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request integrations Used to denote items related to the Integrations project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants