-
Notifications
You must be signed in to change notification settings - Fork 36
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
Hides user and credential field from search response #680
Conversation
Signed-off-by: Owais Kazi <[email protected]>
2ee3e0a
to
6228342
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #680 +/- ##
============================================
+ Coverage 72.27% 72.80% +0.53%
- Complexity 687 694 +7
============================================
Files 82 82
Lines 3585 3589 +4
Branches 295 296 +1
============================================
+ Hits 2591 2613 +22
+ Misses 863 845 -18
Partials 131 131 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Owais Kazi <[email protected]>
src/main/java/org/opensearch/flowframework/common/CommonValue.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opensearch/flowframework/transport/GetWorkflowTransportAction.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opensearch/flowframework/util/EncryptorUtils.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opensearch/flowframework/util/EncryptorUtils.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opensearch/flowframework/util/EncryptorUtils.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Owais Kazi <[email protected]>
a966c8c
to
00f912b
Compare
Approved, but it doesn't look like tests are covering the |
src/main/java/org/opensearch/flowframework/transport/GetWorkflowTransportAction.java
Show resolved
Hide resolved
6609b5f
to
025f21b
Compare
@dbwiddis you might want to review again since I added more changes. Thanks |
Added tests for RestHandlerUtils and removed the TODO. |
025f21b
to
b18b35e
Compare
Signed-off-by: Owais Kazi <[email protected]>
b18b35e
to
6cc5851
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.
(Re)approved with a question.
* Hide user and credential field from search response Signed-off-by: Owais Kazi <[email protected]> * Hid the user field for Get API as well Signed-off-by: Owais Kazi <[email protected]> * Addressed PR Comments Signed-off-by: Owais Kazi <[email protected]> * Added user permission and new tests Signed-off-by: Owais Kazi <[email protected]> --------- Signed-off-by: Owais Kazi <[email protected]> (cherry picked from commit 757eaaf) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…ect#680) * Hide user and credential field from search response Signed-off-by: Owais Kazi <[email protected]> * Hid the user field for Get API as well Signed-off-by: Owais Kazi <[email protected]> * Addressed PR Comments Signed-off-by: Owais Kazi <[email protected]> * Added user permission and new tests Signed-off-by: Owais Kazi <[email protected]> --------- Signed-off-by: Owais Kazi <[email protected]>
…ect#680) * Hide user and credential field from search response Signed-off-by: Owais Kazi <[email protected]> * Hid the user field for Get API as well Signed-off-by: Owais Kazi <[email protected]> * Addressed PR Comments Signed-off-by: Owais Kazi <[email protected]> * Added user permission and new tests Signed-off-by: Owais Kazi <[email protected]> --------- Signed-off-by: Owais Kazi <[email protected]>
…681) Hides user and credential field from search response (#680) * Hide user and credential field from search response * Hid the user field for Get API as well * Addressed PR Comments * Added user permission and new tests --------- (cherry picked from commit 757eaaf) Signed-off-by: Owais Kazi <[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>
* Hides user and credential field from search response (#680) * Hide user and credential field from search response Signed-off-by: Owais Kazi <[email protected]> * Hid the user field for Get API as well Signed-off-by: Owais Kazi <[email protected]> * Addressed PR Comments Signed-off-by: Owais Kazi <[email protected]> * Added user permission and new tests Signed-off-by: Owais Kazi <[email protected]> --------- Signed-off-by: Owais Kazi <[email protected]> * Addressed PR Comments Signed-off-by: Owais Kazi <[email protected]> * Fixed failing test Signed-off-by: Owais Kazi <[email protected]> --------- Signed-off-by: Owais Kazi <[email protected]>
* Hides user and credential field from search response (#680) * Hide user and credential field from search response Signed-off-by: Owais Kazi <[email protected]> * Hid the user field for Get API as well Signed-off-by: Owais Kazi <[email protected]> * Addressed PR Comments Signed-off-by: Owais Kazi <[email protected]> * Added user permission and new tests Signed-off-by: Owais Kazi <[email protected]> --------- Signed-off-by: Owais Kazi <[email protected]> * Addressed PR Comments Signed-off-by: Owais Kazi <[email protected]> * Fixed failing test Signed-off-by: Owais Kazi <[email protected]> --------- Signed-off-by: Owais Kazi <[email protected]> (cherry picked from commit 56e4a78) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…flowSteps (#683) Throw the correct error message in status API for WorkflowSteps (#676) * Hides user and credential field from search response (#680) * Hide user and credential field from search response * Hid the user field for Get API as well * Addressed PR Comments * Added user permission and new tests --------- * Addressed PR Comments * Fixed failing test --------- (cherry picked from commit 56e4a78) Signed-off-by: Owais Kazi <[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>
Description
filter
field instead of_source
causing more client side work. Handled the credential field filtering in a better way.Testing
Request
Response of Search API:
Response of GET API:
Issues Resolved
Resolves #546
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.