-
Notifications
You must be signed in to change notification settings - Fork 75
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
make threat intel async #703
Conversation
Signed-off-by: Subhobrata Dey <[email protected]>
Codecov Report
@@ Coverage Diff @@
## main #703 +/- ##
============================================
- Coverage 26.99% 25.18% -1.82%
+ Complexity 1068 1021 -47
============================================
Files 274 275 +1
Lines 12352 12458 +106
Branches 1343 1361 +18
============================================
- Hits 3334 3137 -197
- Misses 8745 9053 +308
+ Partials 273 268 -5
|
Signed-off-by: Subhobrata Dey <[email protected]> (cherry picked from commit 0dd9787)
Signed-off-by: Subhobrata Dey <[email protected]> (cherry picked from commit 0dd9787)
Signed-off-by: Subhobrata Dey <[email protected]> (cherry picked from commit 0dd9787) Co-authored-by: Subhobrata Dey <[email protected]>
createThreatIntelFeedData(); | ||
tifdIndex = getLatestIndexByCreationDate(); | ||
createThreatIntelFeedData(listener); | ||
} else { |
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.
Why this should be in else? Dont we need to do even when tifIndex was null and after it is populated in if?
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.
similar search request has been made in the createThreatIntelFeedData()
method once the index creation is done.
Signed-off-by: Subhobrata Dey <[email protected]>
…project#704)" This reverts commit 5b4ab6c.
…project#704)" This reverts commit 5b4ab6c. Signed-off-by: Joanne Wang <[email protected]>
…project#704)" This reverts commit 5b4ab6c. Signed-off-by: Joanne Wang <[email protected]>
* Revert "make threat intel async (#703) (#704)" This reverts commit 5b4ab6c. Signed-off-by: Joanne Wang <[email protected]> * Revert "Integrate threat intel feeds (#669) (#690)" This reverts commit 559d97e. Signed-off-by: Joanne Wang <[email protected]> --------- Signed-off-by: Joanne Wang <[email protected]>
Description
this pr changes the logic of threat intel implementation to use listeners and removes blocking Future.actionGet() calls from the code which fails test validations.
Issues Resolved
[List any issues this PR will resolve]
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.