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

Don't fail create workflow on already-consumed OpenSearch REST params #543

Merged
merged 1 commit into from
Feb 27, 2024

Conversation

dbwiddis
Copy link
Member

Description

Some OpenSearch params are consumed before being passed to a plugin REST handler, such as pretty, format, error_trace, human, filter_path.

This PR fixes the logic in #525 to remove all previously-consumed parameters from the params list, so it will only fail in the same cases that the request would normally fail.

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.

Copy link

codecov bot commented Feb 27, 2024

Codecov Report

Attention: Patch coverage is 66.66667% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 73.83%. Comparing base (2c6dfd5) to head (2960af8).

Files Patch % Lines
...h/flowframework/rest/RestCreateWorkflowAction.java 66.66% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main     #543      +/-   ##
============================================
+ Coverage     73.74%   73.83%   +0.09%     
  Complexity      663      663              
============================================
  Files            79       79              
  Lines          3314     3314              
  Branches        263      263              
============================================
+ Hits           2444     2447       +3     
+ Misses          756      752       -4     
- Partials        114      115       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dbwiddis dbwiddis merged commit 37a2869 into opensearch-project:main Feb 27, 2024
28 of 29 checks passed
@dbwiddis dbwiddis deleted the fix-consumed-params branch February 27, 2024 23:23
opensearch-trigger-bot bot pushed a commit that referenced this pull request Feb 27, 2024
…#543)

Signed-off-by: Daniel Widdis <[email protected]>
(cherry picked from commit 37a2869)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
dbwiddis pushed a commit that referenced this pull request Feb 28, 2024
…rch REST params (#544)

Don't fail create workflow on already-consumed OpenSearch REST params (#543)


(cherry picked from commit 37a2869)

Signed-off-by: Daniel Widdis <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x backport PRs to 2.x branch skip-changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants