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

REST API for GET,PUT and DELETE #1482

Merged

Conversation

vamsi-amazon
Copy link
Member

@vamsi-amazon vamsi-amazon commented Mar 28, 2023

Description

These changes introduce REST APIs for GET DATASOURCE, UPDATE DATASOURCE and DELETE DATASOURCE APIS as follow up to CREATE DATASOURCE APIs #1458

Issues Resolved

Rough LLD Diagrams

Modification of datasource is similar to create apis. Below images corresponds to GET ALL and DELETE APIs.

Screen Shot 2023-03-28 at 3 51 46 PM

Screen Shot 2023-03-28 at 3 51 33 PM

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.

@codecov-commenter
Copy link

codecov-commenter commented Mar 28, 2023

Codecov Report

Merging #1482 (dcfbff2) into main (23cc0f6) will increase coverage by 0.00%.
The diff coverage is 100.00%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@            Coverage Diff            @@
##               main    #1482   +/-   ##
=========================================
  Coverage     98.46%   98.47%           
- Complexity     3869     3886   +17     
=========================================
  Files           345      347    +2     
  Lines          9603     9649   +46     
  Branches        616      625    +9     
=========================================
+ Hits           9456     9502   +46     
  Misses          142      142           
  Partials          5        5           
Flag Coverage Δ
sql-engine 98.47% <100.00%> (+<0.01%) ⬆️

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

Impacted Files Coverage Δ
...arch/sql/datasource/DataSourceLoaderCacheImpl.java 100.00% <100.00%> (ø)
...ensearch/sql/datasource/DataSourceServiceImpl.java 100.00% <100.00%> (ø)
...source/exceptions/DataSourceNotFoundException.java 100.00% <100.00%> (ø)
...anner/physical/datasource/DataSourceTableScan.java 100.00% <100.00%> (ø)
...l/prometheus/storage/PrometheusStorageFactory.java 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@vamsi-amazon vamsi-amazon force-pushed the get-put-delete-main branch 2 times, most recently from 9e85e8b to 2069e97 Compare April 3, 2023 23:24
YANG-DB
YANG-DB previously approved these changes Apr 4, 2023
dai-chen
dai-chen previously approved these changes Apr 6, 2023
Signed-off-by: vamsi-amazon <reddyvam@amazon.com>
Signed-off-by: vamsi-amazon <reddyvam@amazon.com>
@vamsi-amazon vamsi-amazon merged commit 3fbbaa4 into opensearch-project:main Apr 6, 2023
opensearch-trigger-bot bot pushed a commit that referenced this pull request Apr 6, 2023
* REST API for GET,PUT and DELETE

Signed-off-by: vamsi-amazon <reddyvam@amazon.com>

* changed permission action names

Signed-off-by: vamsi-amazon <reddyvam@amazon.com>

---------

Signed-off-by: vamsi-amazon <reddyvam@amazon.com>
(cherry picked from commit 3fbbaa4)
opensearch-trigger-bot bot pushed a commit that referenced this pull request Apr 6, 2023
* REST API for GET,PUT and DELETE

Signed-off-by: vamsi-amazon <reddyvam@amazon.com>

* changed permission action names

Signed-off-by: vamsi-amazon <reddyvam@amazon.com>

---------

Signed-off-by: vamsi-amazon <reddyvam@amazon.com>
(cherry picked from commit 3fbbaa4)
vamsi-amazon pushed a commit that referenced this pull request Apr 6, 2023
* REST API for GET,PUT and DELETE

Signed-off-by: vamsi-amazon <reddyvam@amazon.com>
vamsi-amazon pushed a commit that referenced this pull request Apr 6, 2023
* REST API for GET,PUT and DELETE

Signed-off-by: vamsi-amazon <reddyvam@amazon.com>
acarbonetto pushed a commit to Bit-Quill/opensearch-project-sql that referenced this pull request Apr 18, 2023
* REST API for GET,PUT and DELETE

Signed-off-by: vamsi-amazon <reddyvam@amazon.com>

* changed permission action names

Signed-off-by: vamsi-amazon <reddyvam@amazon.com>

---------

Signed-off-by: vamsi-amazon <reddyvam@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE]Update Datasource API [FEATURE]Get Datasource API [FEATURE] Delete Datasource API
6 participants