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

Feature findings enhancemnt #596

Conversation

riysaxen-amzn
Copy link
Collaborator

@riysaxen-amzn riysaxen-amzn commented Feb 14, 2024

Description

Findings API Enhancements

Issues Resolved

[Issue
Alerting PR: https://github.com/opensearch-project/alerting/pull/1427/files
SA PR: https://github.com/opensearch-project/security-analytics/pull/803/files

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --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.

Copy link

codecov bot commented Feb 19, 2024

Codecov Report

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

Project coverage is 73.97%. Comparing base (730b1f8) to head (577850a).
Report is 2 commits behind head on main.

Files Patch % Lines
...arch/commons/alerting/action/GetFindingsRequest.kt 77.77% 6 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main     #596      +/-   ##
============================================
- Coverage     74.00%   73.97%   -0.04%     
- Complexity      890      896       +6     
============================================
  Files           133      133              
  Lines          5843     5890      +47     
  Branches        715      716       +1     
============================================
+ Hits           4324     4357      +33     
- Misses         1207     1222      +15     
+ Partials        312      311       -1     

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

engechas
engechas previously approved these changes Feb 20, 2024
Comment on lines 25 to 26
severity: String? = null,
detectionType: String? = null
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should these be enums? Not sure if there's a fixed list of possibilities or not

Signed-off-by: Riya Saxena <[email protected]>
@riysaxen-amzn riysaxen-amzn force-pushed the feature-findingsEnhancemnt branch from 53965a0 to 577850a Compare February 29, 2024 20:26
monitorIds: List<String>? = null
monitorIds: List<String>? = null,
severity: String? = null,
detectionType: String? = null,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar comment here; this parameter should be named either logType, or detectorType to align with the rest of the repo. The UI refers to it as the logType (source), so I think that would be the better option; but I'd suggest going with whichever is more common in the code.

@riysaxen-amzn riysaxen-amzn merged commit 892c34f into opensearch-project:main Mar 8, 2024
10 of 11 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Mar 9, 2024
* added support for  param in Finding API

Signed-off-by: Riya Saxena <[email protected]>

* added detectionType as param for Findings API enhancements

Signed-off-by: Riya Saxena <[email protected]>

* adding addiional params findingIds, startTime and endTime

Signed-off-by: Riya Saxena <[email protected]>

* fix klint errors

Signed-off-by: Riya Saxena <[email protected]>

---------

Signed-off-by: Riya Saxena <[email protected]>
(cherry picked from commit 892c34f)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
eirsep pushed a commit that referenced this pull request Mar 9, 2024
* added support for  param in Finding API



* added detectionType as param for Findings API enhancements



* adding addiional params findingIds, startTime and endTime



* fix klint errors



---------


(cherry picked from commit 892c34f)

Signed-off-by: Riya Saxena <[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>
opensearch-trigger-bot bot pushed a commit that referenced this pull request Mar 9, 2024
* added support for  param in Finding API

Signed-off-by: Riya Saxena <[email protected]>

* added detectionType as param for Findings API enhancements

Signed-off-by: Riya Saxena <[email protected]>

* adding addiional params findingIds, startTime and endTime

Signed-off-by: Riya Saxena <[email protected]>

* fix klint errors

Signed-off-by: Riya Saxena <[email protected]>

---------

Signed-off-by: Riya Saxena <[email protected]>
(cherry picked from commit 892c34f)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
riysaxen-amzn pushed a commit that referenced this pull request Mar 11, 2024
* added support for  param in Finding API



* added detectionType as param for Findings API enhancements



* adding addiional params findingIds, startTime and endTime



* fix klint errors



---------


(cherry picked from commit 892c34f)

Signed-off-by: Riya Saxena <[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>
opensearch-trigger-bot bot pushed a commit that referenced this pull request Mar 15, 2024
* added support for  param in Finding API

Signed-off-by: Riya Saxena <[email protected]>

* added detectionType as param for Findings API enhancements

Signed-off-by: Riya Saxena <[email protected]>

* adding addiional params findingIds, startTime and endTime

Signed-off-by: Riya Saxena <[email protected]>

* fix klint errors

Signed-off-by: Riya Saxena <[email protected]>

---------

Signed-off-by: Riya Saxena <[email protected]>
(cherry picked from commit 892c34f)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
jowg-amazon pushed a commit that referenced this pull request Mar 15, 2024
* added support for  param in Finding API



* added detectionType as param for Findings API enhancements



* adding addiional params findingIds, startTime and endTime



* fix klint errors



---------


(cherry picked from commit 892c34f)

Signed-off-by: Riya Saxena <[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>
@riysaxen-amzn riysaxen-amzn deleted the feature-findingsEnhancemnt branch April 5, 2024 21:50
AWSHurneyt pushed a commit to AWSHurneyt/common-utils that referenced this pull request Apr 12, 2024
…ect#606)

* added support for  param in Finding API



* added detectionType as param for Findings API enhancements



* adding addiional params findingIds, startTime and endTime



* fix klint errors



---------


(cherry picked from commit 892c34f)

Signed-off-by: Riya Saxena <[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>
Signed-off-by: AWSHurneyt <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants