Skip to content

Prisma Cloud v2 #24171

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 82 commits into from
Mar 2, 2023
Merged

Prisma Cloud v2 #24171

merged 82 commits into from
Mar 2, 2023

Conversation

BEAdi
Copy link
Contributor

@BEAdi BEAdi commented Jan 30, 2023

Status

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

Related Issues

fixes: https://jira-hq.paloaltonetworks.local/browse/CIAC-1066, https://jira-hq.paloaltonetworks.local/browse/CIAC-5337

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

@BEAdi BEAdi self-assigned this Jan 30, 2023
@ShirleyDenkberg
Copy link
Contributor

@BEAdi @dorschw
I implemented all my comments in all the yml and README files that were straight forward. I left a few comments for you to review.
I reviewed the Breaking Changes section in the integration README. The link to the Breaking Changes section was broken so I fixed it. I made some other changes.
I guess you will need to regenerate the integration README again since I made changes to the yml file. There is no need for me to review the integration README.

reduced_dict[key] = reduced_nested_dict
elif isinstance(value, list):
reduced_list = []
for item in value:
Copy link
Contributor

Choose a reason for hiding this comment

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

can we just call it recursively instead?

Comment on lines 448 to 454
if isinstance(item, dict):
if reduced_nested_dict := remove_empty_values_from_dict(item):
reduced_list.append(reduced_nested_dict)
elif item:
reduced_list.append(item)
if reduced_list:
reduced_dict[key] = reduced_list
Copy link
Contributor

@dorschw dorschw Feb 28, 2023

Choose a reason for hiding this comment

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

can we just do reduced_dict[key] = [remove_empty_values_from_dict(subvalue) for subvalue in value] instead of lines 448-454?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, it doesn't have the same behaviour- can cause an empty list being inserted in case all nested values are empty.
I did change the function to make it more generic and recursive, and less nested.

BEAdi added 8 commits March 2, 2023 11:48
# Conflicts:
#	Packs/PrismaCloud/pack_metadata.json
# Conflicts:
#	Packs/CommonTypes/IncidentFields/incidentfield-Last_Update_Time.json
#	Packs/CommonTypes/ReleaseNotes/3_3_52.md
@xsoar-bot
Copy link
Contributor

@BEAdi BEAdi merged commit bd9a6dc into master Mar 2, 2023
@BEAdi BEAdi deleted the prisma-cloud-v2 branch March 2, 2023 14:25
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