Skip to content

Crtx 265664 migrate script - #45511

Open
talzich wants to merge 37 commits into
masterfrom
CRTX-265664-migrate-script
Open

Crtx 265664 migrate script#45511
talzich wants to merge 37 commits into
masterfrom
CRTX-265664-migrate-script

Conversation

@talzich

@talzich talzich commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Status

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

Related Issues

Resolves https://jira-dc.paloaltonetworks.com/browse/CRTX-265664

Description

This PR resolves CRTX-265664. It changes the underlying command for the Cloud Additional Alert script, used in the Cloud Alerts layout. The change in the underlying content is to use the new getRawAlert PCI command instead of the soon to be deprecated core command.

@talzich talzich added docs-approved ready-for-pipeline-running Whether the pr is ready for running the whole pipeline, including testing on SAAS machines ready-for-ai-review The PR is ready for reviewing the PR with the AI Reviewer. labels Aug 13, 2026
@content-bot

Copy link
Copy Markdown
Contributor

🤖 AI-Powered Code Review Available

You can leverage AI-powered code review to assist with this PR!

Available Commands:

  • @marketplace-ai-reviewer start review - Initiate a full AI code review
  • @marketplace-ai-reviewer re-review - Incremental review for new commits

@marketplace-ai-reviewer marketplace-ai-reviewer removed the ready-for-ai-review The PR is ready for reviewing the PR with the AI Reviewer. label Aug 13, 2026
@github-actions

Copy link
Copy Markdown

Coverage

Coverage Report
FileStmtsMissCoverMissing
Packs/CloudIncidentResponse/Scripts/XCloudAdditionalAlertInformationWidget
   XCloudAdditionalAlertInformationWidget.py25388%9, 11, 44
TOTAL25388% 

Tests Skipped Failures Errors Time
4 0 💤 0 ❌ 0 🔥 2.512s ⏱️

@marketplace-ai-reviewer

Copy link
Copy Markdown
Contributor

🤖 Analysis started. Please wait for results...

##### XCloudRelatedAlertsWidget

- Updated the Docker image to: *demisto/python3:3.12.13.10116658*.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

revert this

core_alert_context = demisto.context().get("Core", {})
if not core_alert_context.get("OriginalAlert"):
original_alert_data = demisto.executeCommand("core-get-cloud-original-alerts", {"alert_ids": alert_context.get("id")})
original_alert_data = demisto.executeCommand("getRawAlerts", {"issue_ids": alert_context.get("id")})

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This looks good, but you'll need to check server version, I think,
The new command will be available only 8.16.0, right now we still releassing the 8.15

@marketplace-ai-reviewer

Copy link
Copy Markdown
Contributor
🤖 AI Review Disclaimer

This 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 marketplace-ai-reviewer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hi! Thanks for contributing to the Cloud Incident Response pack. I have a few quick notes to help get this ready for merging. Please ensure the pack metadata includes the created key and vendor keyword, and update the release notes to follow our versioning phrasing and bold-italic styling guidelines. Lastly, make sure to revert the accidental edit to the historical release note and consider adding error handling to the script's command execution. Thanks again!

Additionally, please address the following file-level notes:

  • Packs/CloudIncidentResponse/pack_metadata.json: - The mandatory key created is missing from the pack metadata.
  • The vendor name is missing from the keywords list.
  • Packs/CloudIncidentResponse/ReleaseNotes/1_0_36.md: The version bump is a patch (1.0.36), which is allowed only for bug fixes. According to the guidelines, patch release notes must start with Fixed an issue. Since this entry starts with Updated the, it indicates a non-bug-fix change. Please either rephrase the release note to start with Fixed an issue (if this is considered a bug fix), or bump the version to minor (1.1.0) and rename this file to 1_1_0.md. You can use demisto-sdk update-release-notes -i Packs/CloudIncidentResponse -u <revision|minor> to regenerate the version and release-notes filename consistently. Refer to the Release Notes Documentation.

@ssokolovich, @Shellyber, @talzich please review and approve the results generated by the AI Reviewer by responding 👍 on this comment.


##### XCloudAdditionalAlertInformationWidget

- Updated the script to use the `getRawAlerts` command instead of `core-get-cloud-original-alerts` to retrieve original alert information.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Command names must be styled as ***bold-italics*** (e.g., ***command-name***), not with backticks. Please update the styling for getRawAlerts and core-get-cloud-original-alerts. Refer to the Entity Styling guidelines.

Suggested change
- Updated the script to use the `getRawAlerts` command instead of `core-get-cloud-original-alerts` to retrieve original alert information.
- Updated the script to use the ***getRawAlerts*** command instead of ***core-get-cloud-original-alerts*** to retrieve original alert information.

##### XCloudRelatedAlertsWidget

- Updated the Docker image to: *demisto/python3:3.12.13.10116658*.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Historical release notes should generally not be modified unless fixing a typo in the current PR's context. This appears to be an accidental removal of a trailing dash. Please revert this change.

core_alert_context = demisto.context().get("Core", {})
if not core_alert_context.get("OriginalAlert"):
original_alert_data = demisto.executeCommand("core-get-cloud-original-alerts", {"alert_ids": alert_context.get("id")})
original_alert_data = demisto.executeCommand("getRawAlerts", {"issue_ids": alert_context.get("id")})

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

  • Consider adding error checking for the command result.
  • Verify command name, arguments, and output compatibility with verify_list_type.

@content-bot

Copy link
Copy Markdown
Contributor

🔍 AI Triage Report Available

An automated triage report has been generated for this pipeline.

Status: failed
Report ID: 07c351b5017417f3

📋 Triage Report
💡 Resolutions are available in the full report.

⚠️ AI-generated triage. Validate before acting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs-approved ready-for-pipeline-running Whether the pr is ready for running the whole pipeline, including testing on SAAS machines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants