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] Clean up REST API (Part 1) (#2900) #3223

Merged
merged 1 commit into from
Aug 21, 2023

Conversation

willyborankin
Copy link
Collaborator

Manual backport 6bac470 from #2900

@codecov
Copy link

codecov bot commented Aug 21, 2023

Codecov Report

Merging #3223 (36fc3c7) into 2.x (478b27d) will increase coverage by 0.07%.
The diff coverage is 82.89%.

@@             Coverage Diff              @@
##                2.x    #3223      +/-   ##
============================================
+ Coverage     62.21%   62.29%   +0.07%     
+ Complexity     3313     3291      -22     
============================================
  Files           265      252      -13     
  Lines         19508    19469      -39     
  Branches       3329     3308      -21     
============================================
- Hits          12137    12128       -9     
+ Misses         5744     5718      -26     
+ Partials       1627     1623       -4     
Files Changed Coverage Δ
...curity/dlic/rest/api/AuthTokenProcessorAction.java 53.33% <0.00%> (ø)
...security/dlic/rest/api/SecuritySSLCertsAction.java 66.66% <ø> (ø)
...earch/security/dlic/rest/api/TenantsApiAction.java 27.77% <0.00%> (-13.89%) ⬇️
...arch/security/dlic/rest/api/ValidateApiAction.java 9.09% <0.00%> (-0.91%) ⬇️
...earch/security/dlic/rest/api/MigrateApiAction.java 4.54% <10.00%> (+0.87%) ⬆️
...ch/security/dlic/rest/api/FlushCacheApiAction.java 63.63% <33.33%> (+1.13%) ⬆️
...nsearch/security/dlic/rest/api/RolesApiAction.java 77.27% <70.00%> (-16.07%) ⬇️
...rch/security/dlic/rest/api/AllowlistApiAction.java 73.68% <75.00%> (-0.61%) ⬇️
...h/security/dlic/rest/api/SecurityConfigAction.java 75.00% <75.00%> (-0.76%) ⬇️
...earch/security/dlic/rest/api/NodesDnApiAction.java 86.00% <80.00%> (-0.96%) ⬇️
... and 11 more

... and 5 files with indirect coverage changes

@willyborankin willyborankin force-pushed the backport-2900-to-2.x branch 2 times, most recently from 538a26c to cfcd00f Compare August 21, 2023 20:20
The aim of this PR is to start cleaning code in REST API since with the
current implementation is difficult to understand and support.

Changes:

- Implemented new `RequestConetnValidator` class which uses the same
validation logic as `AbstractConfigurationValidator`
- Removed all redundant `AbstractConfigurationValidator` extensions

Signed-off-by: Andrey Pleskach <ples@aiven.io>
(cherry picked from commit 6bac470)
Signed-off-by: Andrey Pleskach <ples@aiven.io>

Signed-off-by: Andrey Pleskach <ples@aiven.io>
@cwperks cwperks merged commit 1bb6df5 into opensearch-project:2.x Aug 21, 2023
51 of 52 checks passed
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