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.13] [Backport 2.x] [MDS] Add Vega support for importing saved objects #6222

Merged
merged 1 commit into from
Mar 20, 2024

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport d144637 from #6214.

* Add MDS support for Vega

Signed-off-by: Huy Nguyen <[email protected]>

* Refactor field to data_source_id

Signed-off-by: Huy Nguyen <[email protected]>

* Add to CHANGELOG.md

Signed-off-by: Huy Nguyen <[email protected]>

* Added test cases and renamed field to use data_source_name

Signed-off-by: Huy Nguyen <[email protected]>

* Add prefix datasource name test case and add example in default hjson

Signed-off-by: Huy Nguyen <[email protected]>

* Move CHANGELOG to appropriate section

Signed-off-by: Huy Nguyen <[email protected]>

* Increased test coverage of search() method

Signed-off-by: Huy Nguyen <[email protected]>

* Add test cases for util function

Signed-off-by: Huy Nguyen <[email protected]>

* Add util function to modify Vega Spec

Signed-off-by: Huy Nguyen <[email protected]>

* Add method to verify Vega saved object type

Signed-off-by: Huy Nguyen <[email protected]>

* Add import saved object support for Vega

Signed-off-by: Huy Nguyen <[email protected]>

* Add unit tests for Vega objects in create and conflict modes

Signed-off-by: Huy Nguyen <[email protected]>

* Refactored utils test file

Signed-off-by: Huy Nguyen <[email protected]>

* Add to CHANGELOG

Signed-off-by: Huy Nguyen <[email protected]>

* Use bulkget instead of single get

Signed-off-by: Huy Nguyen <[email protected]>

* Add datasource references to the specs

Signed-off-by: Huy Nguyen <[email protected]>

* Fix bootstrap errors

Signed-off-by: Huy Nguyen <[email protected]>

* Add edge case where title is potentially undefined

Signed-off-by: Huy Nguyen <[email protected]>

* Address PR comments

Signed-off-by: Huy Nguyen <[email protected]>

* Add more test coverage for checking conflict

Signed-off-by: Huy Nguyen <[email protected]>

* Fix unit test

Signed-off-by: Huy Nguyen <[email protected]>

---------

Signed-off-by: Huy Nguyen <[email protected]>
(cherry picked from commit de978d4)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

# Conflicts:
#	CHANGELOG.md

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Ashwin P Chandran <[email protected]>
(cherry picked from commit d144637)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Copy link

codecov bot commented Mar 20, 2024

Codecov Report

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

Project coverage is 67.24%. Comparing base (693e0c0) to head (29b8fd1).

Files Patch % Lines
...erver/saved_objects/import/create_saved_objects.ts 68.88% 10 Missing and 4 partials ⚠️
src/core/server/saved_objects/import/utils.ts 90.24% 2 Missing and 2 partials ⚠️
...d_objects/import/check_conflict_for_data_source.ts 80.00% 0 Missing and 2 partials ⚠️
src/plugins/vis_type_vega/server/utils.ts 95.23% 1 Missing and 1 partial ⚠️
...e_vega/server/vega_visualization_client_wrapper.ts 93.33% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             2.13    #6222      +/-   ##
==========================================
+ Coverage   67.18%   67.24%   +0.06%     
==========================================
  Files        3332     3335       +3     
  Lines       64435    64566     +131     
  Branches    10289    10322      +33     
==========================================
+ Hits        43292    43419     +127     
  Misses      18643    18643              
- Partials     2500     2504       +4     
Flag Coverage Δ
Linux_1 31.27% <44.04%> (-3.81%) ⬇️
Linux_2 55.39% <79.16%> (+0.10%) ⬆️
Linux_3 44.69% <6.25%> (-0.05%) ⬇️
Linux_4 35.31% <6.25%> (-0.05%) ⬇️
Windows_1 31.29% <44.04%> (-3.81%) ⬇️
Windows_2 55.35% <79.16%> (+0.10%) ⬆️
Windows_3 44.70% <6.25%> (-0.07%) ⬇️
Windows_4 35.31% <6.25%> (-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.

@BionIT BionIT merged commit 4086a8d into 2.13 Mar 20, 2024
91 of 92 checks passed
@github-actions github-actions bot deleted the backport/backport-6214-to-2.13 branch March 20, 2024 03:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autocut Skip the changelog verification check on backports first-time-contributor multiple datasource multiple datasource project v2.13.0
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

2 participants