Skip to content

[Backport 2.x] Added input parameter validation with few small changes#372

Merged
heemin32 merged 1 commit into
2.xfrom
backport/backport-371-to-2.x
Jul 27, 2023
Merged

[Backport 2.x] Added input parameter validation with few small changes#372
heemin32 merged 1 commit into
2.xfrom
backport/backport-371-to-2.x

Conversation

@opensearch-trigger-bot
Copy link
Copy Markdown
Contributor

Backport 0cfddbf from #371

1. Added datasource name validation in delete/update api
2. Added datasource name validation in processor creation method
3. Changed index name delimiter from `.` to `-` to be consistent with others

Signed-off-by: Heemin Kim <heemin@amazon.com>
(cherry picked from commit 0cfddbf)
@codecov
Copy link
Copy Markdown

codecov Bot commented Jul 27, 2023

Codecov Report

Merging #372 (fad02f0) into 2.x (4f7a585) will increase coverage by 0.19%.
The diff coverage is 92.50%.

@@             Coverage Diff              @@
##                2.x     #372      +/-   ##
============================================
+ Coverage     88.50%   88.69%   +0.19%     
- Complexity      746      753       +7     
============================================
  Files            91       92       +1     
  Lines          2697     2707      +10     
  Branches        215      219       +4     
============================================
+ Hits           2387     2401      +14     
+ Misses          230      228       -2     
+ Partials         80       78       -2     
Files Changed Coverage Δ
...rch/geospatial/ip2geo/jobscheduler/Datasource.java 96.56% <ø> (+0.76%) ⬆️
...atial/ip2geo/jobscheduler/DatasourceExtension.java 100.00% <ø> (ø)
...spatial/ip2geo/action/DeleteDatasourceRequest.java 91.66% <66.66%> (+0.75%) ⬆️
...h/geospatial/ip2geo/common/ParameterValidator.java 90.00% <90.00%> (ø)
...geospatial/ip2geo/action/PutDatasourceRequest.java 98.24% <100.00%> (+4.41%) ⬆️
...spatial/ip2geo/action/UpdateDatasourceRequest.java 100.00% <100.00%> (ø)
...h/geospatial/ip2geo/processor/Ip2GeoProcessor.java 93.02% <100.00%> (+0.91%) ⬆️

@heemin32 heemin32 merged commit 7d032ef into 2.x Jul 27, 2023
@gaiksaya gaiksaya deleted the backport/backport-371-to-2.x branch October 17, 2025 00:16
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.

2 participants