-
Notifications
You must be signed in to change notification settings - Fork 139
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
Fixed response codes For Requests With security exception. #2033
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vamsi-amazon
requested review from
pjfitzgibbons,
ps48,
kavithacm,
derek-ho,
joshuali925,
dai-chen,
YANG-DB,
rupal-bq,
mengweieric,
Swiddis,
penghuo,
seankao-az,
MaxKsyunz,
Yury-Fridlyand,
anirudha,
forestmvey,
acarbonetto and
GumpacG
as code owners
August 28, 2023 15:37
derek-ho
previously approved these changes
Aug 28, 2023
vamsi-amazon
force-pushed
the
main
branch
3 times, most recently
from
August 29, 2023 04:01
23d4352
to
83ecc70
Compare
Codecov Report
@@ Coverage Diff @@
## main #2033 +/- ##
============================================
- Coverage 97.30% 97.28% -0.02%
- Complexity 4623 4624 +1
============================================
Files 407 409 +2
Lines 11934 11942 +8
Branches 828 828
============================================
+ Hits 11612 11618 +6
- Misses 315 317 +2
Partials 7 7
Flags with carried forward coverage won't be shown. Click here to find out more.
|
vamsi-amazon
force-pushed
the
main
branch
3 times, most recently
from
August 29, 2023 06:09
23da25f
to
9bc5920
Compare
vamsi-amazon
force-pushed
the
main
branch
3 times, most recently
from
August 29, 2023 20:08
ff605da
to
8894539
Compare
rupal-bq
previously approved these changes
Aug 29, 2023
derek-ho
reviewed
Aug 29, 2023
prometheus/src/main/java/org/opensearch/sql/prometheus/client/PrometheusClientImpl.java
Show resolved
Hide resolved
derek-ho
previously approved these changes
Aug 29, 2023
dai-chen
reviewed
Aug 29, 2023
plugin/src/main/java/org/opensearch/sql/plugin/rest/RestPPLQueryAction.java
Outdated
Show resolved
Hide resolved
penghuo
reviewed
Aug 29, 2023
integ-test/src/test/java/org/opensearch/sql/ppl/ResourceMonitorIT.java
Outdated
Show resolved
Hide resolved
plugin/src/main/java/org/opensearch/sql/plugin/rest/RestPPLQueryAction.java
Outdated
Show resolved
Hide resolved
rupal-bq
previously approved these changes
Aug 29, 2023
Signed-off-by: Vamsi Manohar <[email protected]>
penghuo
approved these changes
Aug 30, 2023
plugin/src/main/java/org/opensearch/sql/plugin/rest/RestPPLQueryAction.java
Outdated
Show resolved
Hide resolved
seankao-az
approved these changes
Aug 30, 2023
The backport to
To backport manually, run these commands in your terminal: # Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/sql/backport-2.9 2.9
# Navigate to the new working tree
pushd ../.worktrees/sql/backport-2.9
# Create a new branch
git switch --create backport/backport-2033-to-2.9
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 56bc7d5e168d22f2874d07179824c1ba6f660d27
# Push it to GitHub
git push --set-upstream origin backport/backport-2033-to-2.9
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/sql/backport-2.9 Then, create a pull request where the |
opensearch-trigger-bot bot
pushed a commit
that referenced
this pull request
Aug 30, 2023
Signed-off-by: Vamsi Manohar <[email protected]> (cherry picked from commit 56bc7d5) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
vamsi-amazon
added a commit
that referenced
this pull request
Aug 30, 2023
Signed-off-by: Vamsi Manohar <[email protected]> (cherry picked from commit 56bc7d5)
vamsi-amazon
added a commit
that referenced
this pull request
Aug 30, 2023
Signed-off-by: Vamsi Manohar <[email protected]> (cherry picked from commit 56bc7d5)
vamsi-amazon
pushed a commit
that referenced
this pull request
Aug 30, 2023
) (cherry picked from commit 56bc7d5) Signed-off-by: Vamsi Manohar <[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>
vamsi-amazon
added a commit
that referenced
this pull request
Aug 30, 2023
) Signed-off-by: Vamsi Manohar <[email protected]> (cherry picked from commit 56bc7d5)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
With this change, we are setting the status received from Opensearch Security Exception.
Testing
Before Changes:
POST _plugins/_ppl
{
"query" : "source=prometheus10.instance_cpu_time_ns"
}
After Changes:
POST _plugins/_ppl
{
"query" : "source=prometheus10.instance_cpu_time_ns"
}
Now the response code changes to 403.
Backlog
Created below backlog issue to handle this.
Check List
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.