Skip to content

Ml bug empty query #17849

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

Merged
merged 3 commits into from
Feb 24, 2022
Merged

Ml bug empty query #17849

merged 3 commits into from
Feb 24, 2022

Conversation

lperryp
Copy link
Contributor

@lperryp lperryp commented Feb 24, 2022

Contributing to Cortex XSOAR Content

Make sure to register your contribution by filling the contribution registration form

The Pull Request will be reviewed only after the contribution registration form is filled.

Status

  • In Progress
  • Ready
  • In Hold - (Reason for hold)

Related Issues

fixes: link to the issue

Description

After the new change in the ML page, a but occurred when query argument was left empty.

  1. Added a verification in DBotBuildPhishingClassifier if query is empty, and in that case treat it as no query was given
  2. Fixed a bug in GetIncidentsByQuery, to first check if GetIncidents didn't return an error, and just then access the resukt

Screenshots

Paste here any images that will help the reviewer

Minimum version of Cortex XSOAR

  • 6.0.0
  • 6.1.0
  • 6.2.0
  • 6.5.0

Does it break backward compatibility?

  • Yes
    • Further details:
  • No

Must have

  • Tests
  • Documentation

##### GetIncidentsByQuery
- Added verification that query was parsed correctly.
##### DBotBuildPhishingClassifier
- Added support for the case when *query* argument is an empty string.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
- Added support for the case when *query* argument is an empty string.
- Added support for the case where the *query* argument is an empty string.

@content-bot
Copy link
Collaborator

@lperryp lperryp merged commit 9b94834 into master Feb 24, 2022
@lperryp lperryp deleted the ml_bug_empty_query branch February 24, 2022 17:51
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.

5 participants