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

Phishing Campaign - GetCampaignIncidentsInfo handling deleted incidents #27621

Merged
merged 21 commits into from Jun 22, 2023

Conversation

rshunim
Copy link
Contributor

@rshunim rshunim commented Jun 21, 2023

Status

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

Related Issues

fixes: link to the issue

Description

A few sentences describing the overall goals of the pull request's commits.

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

@rshunim rshunim requested a review from dorschw June 21, 2023 15:00
@rshunim rshunim self-assigned this Jun 21, 2023
rshunim and others added 4 commits June 22, 2023 12:23
Co-authored-by: dorschw <81086590+dorschw@users.noreply.github.com>
…identsInfo.py

Co-authored-by: dorschw <81086590+dorschw@users.noreply.github.com>
@rshunim rshunim requested a review from dorschw June 22, 2023 09:33
@content-bot
Copy link
Collaborator

This PR was automatically updated by a GitHub Action

  • Campaign pack version was bumped to 3.3.1.

To stop automatic version bumps, add the ignore-auto-bump-version label to the github PR.

Copy link
Contributor

@dorschw dorschw left a comment

Choose a reason for hiding this comment

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

Nice

@rshunim rshunim requested a review from dorschw June 22, 2023 11:01
Copy link
Contributor

@dorschw dorschw left a comment

Choose a reason for hiding this comment

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

Good job!

Comment on lines 135 to +137
try:
main()
assert False, 'SystemExit should occurred'
pytest.fail(msg='SystemExit should occurred')
Copy link
Contributor

Choose a reason for hiding this comment

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

If you feel like being a good scout, let's change this to with pytest.raises(SystemExit): main(), it's the same but more explicit. Not urgent anyway.


##### GetCampaignIncidentsInfo

- Fixed an issue causing the script to fail when incidents were deleted.
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
- Fixed an issue causing the script to fail when incidents were deleted.
- Fixed an issue causing the script to fail after incidents are deleted.

Copy link
Contributor

Choose a reason for hiding this comment

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

@ShirleyDenkberg Which of the options do you think is clearer?

@rshunim rshunim merged commit 750d4aa into master Jun 22, 2023
17 checks passed
@rshunim rshunim deleted the phishing_campaign_incident branch June 22, 2023 14:18
MosheEichler pushed a commit that referenced this pull request Jul 2, 2023
…ts (#27621)

* remove deleted incident

* RN

* DO

* Update Packs/Campaign/ReleaseNotes/3_2_24.md

Co-authored-by: dorschw <81086590+dorschw@users.noreply.github.com>

* Update Packs/Campaign/Scripts/GetCampaignIncidentsInfo/GetCampaignIncidentsInfo.py

Co-authored-by: dorschw <81086590+dorschw@users.noreply.github.com>

* safe access

* Bump pack from version Campaign to 3.3.1.

* fix CR

* add UT

* fix pre-commit

* fix UT

* fix PT015

* add import

---------

Co-authored-by: dorschw <81086590+dorschw@users.noreply.github.com>
Co-authored-by: Content Bot <bot@demisto.com>
xsoar-bot pushed a commit to xsoar-contrib/content that referenced this pull request Jul 26, 2023
…ts (demisto#27621)

* remove deleted incident

* RN

* DO

* Update Packs/Campaign/ReleaseNotes/3_2_24.md

Co-authored-by: dorschw <81086590+dorschw@users.noreply.github.com>

* Update Packs/Campaign/Scripts/GetCampaignIncidentsInfo/GetCampaignIncidentsInfo.py

Co-authored-by: dorschw <81086590+dorschw@users.noreply.github.com>

* safe access

* Bump pack from version Campaign to 3.3.1.

* fix CR

* add UT

* fix pre-commit

* fix UT

* fix PT015

* add import

---------

Co-authored-by: dorschw <81086590+dorschw@users.noreply.github.com>
Co-authored-by: Content Bot <bot@demisto.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants