Skip to content

Refactoring datasource changes to a new module.#1504

Merged
vamsimanohar merged 3 commits intoopensearch-project:mainfrom
vamsimanohar:ref
Apr 10, 2023
Merged

Refactoring datasource changes to a new module.#1504
vamsimanohar merged 3 commits intoopensearch-project:mainfrom
vamsimanohar:ref

Conversation

@vamsimanohar
Copy link
Copy Markdown
Member

@vamsimanohar vamsimanohar commented Apr 7, 2023

Description

  • Refactoring datasource changes to new module.
  • will write test cases for RestClass in next PR.

Issues Resolved

[List any issues this PR will resolve]

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.

Signed-off-by: vamsi-amazon <reddyvam@amazon.com>
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Apr 7, 2023

Codecov Report

❌ Patch coverage is 64.00000% with 27 lines in your changes missing coverage. Please review.
✅ Project coverage is 97.13%. Comparing base (3fbbaa4) to head (beb8421).
⚠️ Report is 1031 commits behind head on main.

Files with missing lines Patch % Lines
...earch/sql/datasources/exceptions/ErrorMessage.java 0.00% 22 Missing ⚠️
...ql/datasources/rest/RestDataSourceQueryAction.java 0.00% 5 Missing ⚠️

❌ Your project status has failed because the head coverage (97.13%) is below the target coverage (99.00%). You can increase the head coverage or adjust the target coverage.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #1504      +/-   ##
============================================
- Coverage     98.47%   97.13%   -1.35%     
- Complexity     3886     4012     +126     
============================================
  Files           347      368      +21     
  Lines          9649    10245     +596     
  Branches        625      671      +46     
============================================
+ Hits           9502     9951     +449     
- Misses          142      287     +145     
- Partials          5        7       +2     
Flag Coverage Δ
sql-engine 97.13% <64.00%> (-1.35%) ⬇️

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.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@YANG-DB
Copy link
Copy Markdown
Member

YANG-DB commented Apr 7, 2023

This is an excellent addition to create the datasource module !!
Can you please add a README.md file in that root of the new module ?

YANG-DB
YANG-DB previously approved these changes Apr 7, 2023
Signed-off-by: vamsi-amazon <reddyvam@amazon.com>
@vamsimanohar vamsimanohar force-pushed the ref branch 7 times, most recently from a1e11ec to 6a6542b Compare April 10, 2023 19:43
Signed-off-by: vamsi-amazon <reddyvam@amazon.com>
@vamsimanohar vamsimanohar merged commit 7584f79 into opensearch-project:main Apr 10, 2023
opensearch-trigger-bot bot pushed a commit that referenced this pull request Apr 10, 2023
* Reafactor into new datasources module

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

* Refactored all the datasource releated code to new datasources module

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

* More unit tests

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

---------

Signed-off-by: vamsi-amazon <reddyvam@amazon.com>
(cherry picked from commit 7584f79)
opensearch-trigger-bot bot pushed a commit that referenced this pull request Apr 10, 2023
* Reafactor into new datasources module

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

* Refactored all the datasource releated code to new datasources module

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

* More unit tests

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

---------

Signed-off-by: vamsi-amazon <reddyvam@amazon.com>
(cherry picked from commit 7584f79)
@dai-chen dai-chen added the maintenance Improves code quality, but not the product label Apr 11, 2023
vamsimanohar added a commit that referenced this pull request Apr 14, 2023
* Reafactor into new datasources module

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

* Refactored all the datasource releated code to new datasources module

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

* More unit tests

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

---------

Signed-off-by: vamsi-amazon <reddyvam@amazon.com>
(cherry picked from commit 7584f79)

Co-authored-by: Vamsi Manohar <reddyvam@amazon.com>
vamsimanohar added a commit that referenced this pull request Apr 14, 2023
* Reafactor into new datasources module

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

* Refactored all the datasource releated code to new datasources module

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

* More unit tests

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

---------

Signed-off-by: vamsi-amazon <reddyvam@amazon.com>
(cherry picked from commit 7584f79)

Co-authored-by: Vamsi Manohar <reddyvam@amazon.com>
acarbonetto pushed a commit to Bit-Quill/opensearch-project-sql that referenced this pull request Apr 18, 2023
)

* Reafactor into new datasources module

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

* Refactored all the datasource releated code to new datasources module

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

* More unit tests

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

Labels

backport 2.x backport 2.7 maintenance Improves code quality, but not the product

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Datasource APIS] Documentation and other miscellaneous tasks

7 participants