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

Implement GET API of ip2geo datasource #261

Closed

Conversation

heemin32
Copy link
Collaborator

Description

Implement GET API of ip2geo datasource

Issues Resolved

Check List

  • 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.

* Implementation of ip2geo datasource creation
* Implementation of ip2geo processor creation

Signed-off-by: Heemin Kim <heemin@amazon.com>
Signed-off-by: Heemin Kim <heemin@amazon.com>
@heemin32 heemin32 requested a review from a team April 19, 2023 21:03
@heemin32 heemin32 marked this pull request as draft April 19, 2023 21:10
@codecov-commenter
Copy link

Codecov Report

Merging #261 (56fa87f) into main (e594bf3) will decrease coverage by 29.53%.
The diff coverage is 22.31%.

📣 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     #261       +/-   ##
=============================================
- Coverage     84.89%   55.37%   -29.53%     
- Complexity      378      424       +46     
=============================================
  Files            52       71       +19     
  Lines          1185     2243     +1058     
  Branches         98      201      +103     
=============================================
+ Hits           1006     1242      +236     
- Misses          137      946      +809     
- Partials         42       55       +13     
Impacted Files Coverage Δ
...geospatial/ip2geo/action/GetDatasourceRequest.java 0.00% <0.00%> (ø)
...eospatial/ip2geo/action/GetDatasourceResponse.java 0.00% <0.00%> (ø)
...al/ip2geo/action/GetDatasourceTransportAction.java 0.00% <0.00%> (ø)
...al/ip2geo/action/PutDatasourceTransportAction.java 0.00% <0.00%> (ø)
...atial/ip2geo/jobscheduler/DatasourceExtension.java 0.00% <0.00%> (ø)
...ospatial/ip2geo/jobscheduler/DatasourceRunner.java 0.00% <0.00%> (ø)
...h/geospatial/ip2geo/processor/Ip2GeoProcessor.java 5.03% <5.03%> (ø)
...spatial/ip2geo/action/RestGetDatasourceAction.java 11.11% <11.11%> (ø)
...arch/geospatial/ip2geo/common/GeoIpDataHelper.java 15.83% <15.83%> (ø)
...rch/geospatial/ip2geo/common/DatasourceHelper.java 16.92% <16.92%> (ø)
... and 10 more

... and 1 file with indirect coverage changes

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


public class DatasourceTests extends OpenSearchTestCase {
public void testCurrentIndexName() {
String id = "test";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shall we create random string here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please review on this PR. #257
Current PR will be ready once parent PR is closed.

@heemin32 heemin32 changed the base branch from main to feature/ip2geo April 27, 2023 20:54
@heemin32 heemin32 closed this Apr 27, 2023
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.

3 participants