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] Implement patch API for datasources #2328

Merged
merged 1 commit into from
Oct 19, 2023

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport f835112 from #2273.

* Implement patch API for datasources

Signed-off-by: Derek Ho <[email protected]>

* Change patch implementation to Map

Signed-off-by: Derek Ho <[email protected]>

* Fix up, everything complete except unit test

Signed-off-by: Derek Ho <[email protected]>

* Revise PR to use existing functions

Signed-off-by: Derek Ho <[email protected]>

* Remove unused utility function

Signed-off-by: Derek Ho <[email protected]>

* Add tests

Signed-off-by: Derek Ho <[email protected]>

* Add back line

Signed-off-by: Derek Ho <[email protected]>

* fix build issue

Signed-off-by: Derek Ho <[email protected]>

* Fix tests and add in rst

Signed-off-by: Derek Ho <[email protected]>

* Register patch

Signed-off-by: Derek Ho <[email protected]>

* Add imports

Signed-off-by: Derek Ho <[email protected]>

* Patch

Signed-off-by: Derek Ho <[email protected]>

* Fix integration test

Signed-off-by: Derek Ho <[email protected]>

* Update IT

Signed-off-by: Derek Ho <[email protected]>

* Add tests

Signed-off-by: Derek Ho <[email protected]>

* Fix test

Signed-off-by: Derek Ho <[email protected]>

* Fix tests and increase code cov

Signed-off-by: Derek Ho <[email protected]>

* Add more coverage to impl

Signed-off-by: Derek Ho <[email protected]>

* Fix test and jacoco passing

Signed-off-by: Derek Ho <[email protected]>

* Test fix

Signed-off-by: Derek Ho <[email protected]>

* Add docs

Signed-off-by: Derek Ho <[email protected]>

---------

Signed-off-by: Derek Ho <[email protected]>
(cherry picked from commit f835112)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@codecov
Copy link

codecov bot commented Oct 18, 2023

Codecov Report

Merging #2328 (1152d64) into 2.x (fbf6143) will decrease coverage by 0.19%.
The diff coverage is 72.81%.

@@             Coverage Diff              @@
##                2.x    #2328      +/-   ##
============================================
- Coverage     96.73%   96.55%   -0.19%     
- Complexity     4876     4899      +23     
============================================
  Files           455      458       +3     
  Lines         13370    13473     +103     
  Branches        899      906       +7     
============================================
+ Hits          12934    13009      +75     
- Misses          422      449      +27     
- Partials         14       15       +1     
Flag Coverage Δ
sql-engine 96.55% <72.81%> (-0.19%) ⬇️

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

Files Coverage Δ
...sql/datasources/service/DataSourceServiceImpl.java 100.00% <100.00%> (ø)
...rces/transport/TransportPatchDataSourceAction.java 100.00% <100.00%> (ø)
...rch/sql/datasources/utils/XContentParserUtils.java 98.90% <97.50%> (-1.10%) ⬇️
...model/transport/PatchDataSourceActionResponse.java 0.00% <0.00%> (ø)
.../model/transport/PatchDataSourceActionRequest.java 21.42% <21.42%> (ø)
...ql/datasources/rest/RestDataSourceQueryAction.java 0.00% <0.00%> (ø)

@vmmusings vmmusings merged commit e87e7a7 into 2.x Oct 19, 2023
30 of 34 checks passed
@github-actions github-actions bot deleted the backport/backport-2273-to-2.x branch October 19, 2023 00:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants