Repository navigation
Reco: fix fetch-incidents failing silently with Minimum risk level below Critical - #46289
Conversation
|
|
|
Thank you for your contribution. Your generosity and caring are unrivaled! Make sure to register your contribution by filling the Contribution Registration form, so our content wizard @kamalq97 will know the proposed changes are ready to be reviewed. |
|
Hi @yanivblumReco, thanks for contributing to the XSOAR marketplace. To receive credit for your generous contribution please follow this link. |
🤖 AI-Powered Code Review AvailableHi @kamalq97, you can leverage AI-powered code review to assist with this PR! Available Commands:
|
|
Hi @ilappe @lironcohen272 |
|
For the Reviewer: Trigger build request has been accepted for this contribution PR. |
|
For the Reviewer: Successfully created a pipeline in GitLab with url: https://gitlab.xdr.pan.local/xdr/cortex-content/content/-/pipelines/13996993 |
|
🤖 Analysis started. Please wait for results... |
🤖 AI Review DisclaimerThis review was generated by an AI-powered tool and may contain inaccuracies. Please be advised, and we extend our sincere apologies for any inconvenience this may cause. |
marketplace-ai-reviewer
left a comment
There was a problem hiding this comment.
Thank you for your contribution! No issues found. Great work! 👍
@lironcohen272, @kamalq97 please review and approve the results generated by the AI Reviewer by responding 👍 on this comment.
|
Hi @yanivblumReco , To proceed with the review process, please:
Please let me know if you have any questions. Thank you! |
* Removed unnecessary arraymap from modeling rule * Added RN
…low Critical - Send multiple severities as `eq` clauses joined with `or`; the External API returns HTTP 500 on the SCIM `in` operator. - Raise API errors from get_alerts instead of returning [], so failures are visible in XSOAR rather than looking like "no new alerts". - Make the Test button query alerts with the same filter fetch-incidents uses. - Bump pack to 1.8.2 with release notes. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
87b6ff9 to
e307a76
Compare
|
Hi @lironcohen272, thanks for the review. Update on your points:
|
Status
Description
Fixes a regression in Reco 1.8.1 where
fetch-incidentsstopped returning alerts, with no error in XSOAR, whenever Minimum risk level was set below Critical.inoperator, which the API rejects with HTTP 500.RecoClient.get_alerts()swallowed every exception and returned[], so the failure looked like "no new alerts". The Test button passed because it calledalerts/listwithout a filter.eqclauses joined withor.get_alerts()no longer swallows API errors, so a failed fetch is reported in XSOAR.test-modulenow queries alerts with the same filterfetch-incidentsuses (Preview exclusion + configured minimum risk level), so a rejected filter fails at configuration time.Must have
Added unit tests for the
orfilter, error propagation fromget_alertsandfetch_incidents, and the Test button using the fetch filter. The Reco unit tests pass locally;demisto-sdk pre-commitcould not be run in Docker locally, so CI is the first run.🤖 Generated with Claude Code
relates: https://jira-dc.paloaltonetworks.com/browse/CIAC-18782