-
Notifications
You must be signed in to change notification settings - Fork 44
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
Changed return code for RBAC and provision #1083
Changed return code for RBAC and provision #1083
Conversation
f8508d3
to
b38b84f
Compare
Codecov ReportAttention: Patch coverage is
❌ Your patch status has failed because the patch coverage (50.00%) is below the target coverage (70.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #1083 +/- ##
============================================
- Coverage 76.32% 76.30% -0.02%
- Complexity 1075 1076 +1
============================================
Files 101 101
Lines 5276 5276
Branches 503 504 +1
============================================
- Hits 4027 4026 -1
Misses 1001 1001
- Partials 248 249 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Can we evaluate all the return codes and put them in a single PR? I think provisioning should return a 202, for example. Any others? |
This was the only one I was aware of. Can you point me where should we return 202 I can make the changes in the same PR? |
Dan might mean here flow-framework/src/main/java/org/opensearch/flowframework/rest/RestProvisionWorkflowAction.java Line 103 in 005029c
|
Yes, and also here if either provision or reprovision is true: flow-framework/src/main/java/org/opensearch/flowframework/rest/RestCreateWorkflowAction.java Line 256 in 005029c
|
b38b84f
to
d4f5615
Compare
Although one might say 201 is still appropriate for provision; but should be 202 for reprovision, not 201. @ohltyler thoughts? |
src/main/java/org/opensearch/flowframework/rest/RestCreateWorkflowAction.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Owais <[email protected]>
d4f5615
to
99c7f2d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM pending fixing tests for the new codes.
src/main/java/org/opensearch/flowframework/rest/RestCreateWorkflowAction.java
Outdated
Show resolved
Hide resolved
|
Signed-off-by: Owais <[email protected]>
6a7caa2
to
29e1761
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
Changed return code for RBAC
Related Issues
Resolves #[Issue number to be closed when this PR is merged]
Check List
--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.