Skip to content

XSUP-73591: DBotFindSimilarIncidents script - fix broken incident hyperlinks - #45259

Merged
lironcohen272 merged 3 commits into
masterfrom
XSUP-73591/DBotFindSimilarIncidents-script-fix-broken-incident-hyperlinks
Jul 29, 2026
Merged

XSUP-73591: DBotFindSimilarIncidents script - fix broken incident hyperlinks#45259
lironcohen272 merged 3 commits into
masterfrom
XSUP-73591/DBotFindSimilarIncidents-script-fix-broken-incident-hyperlinks

Conversation

@lironcohen272

Copy link
Copy Markdown
Contributor

Related Issues

fixes: https://jira-dc.paloaltonetworks.com/browse/XSUP-73591

Description

Issue:
The DBotFindSimilarIncidents script hardcoded legacy XSOAR 6 hash-based hyperlinks (id) for similar incident IDs, which are malformed on XSOAR 8.x and redirect analysts to the dashboard instead of the target incident.

Fix:
Added a create_incident_link helper that conditionally builds the URL based on the platform version (is_demisto_version_ge("8.4.0")), producing path-based links (/Details/id) on XSOAR 8.x and preserving legacy hash-based links (#/Details/id) on XSOAR 6.x.

@lironcohen272 lironcohen272 self-assigned this Jul 28, 2026
@lironcohen272
lironcohen272 requested a review from kamalq97 July 28, 2026 11:41
@lironcohen272 lironcohen272 added the ready-for-ai-review The PR is ready for reviewing the PR with the AI Reviewer. label Jul 28, 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

@github-actions

github-actions Bot commented Jul 28, 2026

Copy link
Copy Markdown

Coverage

Coverage Report
FileStmtsMissCoverMissing
Packs/Base/Scripts/DBotFindSimilarIncidents
   DBotFindSimilarIncidents.py4733592%166, 209, 230, 244, 248, 250, 293–294, 296, 361, 380, 513, 592, 622–623, 634–635, 639, 691–692, 694, 698, 741–745, 749, 772, 874, 907, 915, 976, 1009–1010
TOTAL4733592% 

Tests Skipped Failures Errors Time
30 0 💤 0 ❌ 0 🔥 5.421s ⏱️

@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 Jul 28, 2026
@marketplace-ai-reviewer

Copy link
Copy Markdown
Contributor

🤖 Analysis started. Please wait for results...

@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 your contribution to the DBotFindSimilarIncidents script. I've left a few notes primarily focused on optimizing performance. Specifically, evaluating the XSOAR version inside a DataFrame .apply() call adds unnecessary overhead per row, so I highly recommend using a factory function to check the version just once and updating the related calls and tests accordingly. Great work overall!

@kamalq97, @jlevypaloalto, @lironcohen272 please review and approve the results generated by the AI Reviewer by responding 👍 on this comment.

Comment thread Packs/Base/Scripts/DBotFindSimilarIncidents/DBotFindSimilarIncidents.py Outdated
Comment thread Packs/Base/Scripts/DBotFindSimilarIncidents/DBotFindSimilarIncidents.py Outdated
Comment thread Packs/Base/Scripts/DBotFindSimilarIncidents/DBotFindSimilarIncidents.py Outdated
Comment thread Packs/Base/Scripts/DBotFindSimilarIncidents/DBotFindSimilarIncidents_test.py Outdated
@lironcohen272 lironcohen272 changed the title fix broken incident hyperlinks XSUP-73591: DBotFindSimilarIncidents script - fix broken incident hyperlinks Jul 28, 2026
@content-bot

This comment has been minimized.

@kamalq97 kamalq97 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.

Looks good! Let's make sure all types of tenants are handled

Comment thread Packs/Base/Scripts/DBotFindSimilarIncidents/DBotFindSimilarIncidents.py Outdated
@kamalq97
kamalq97 self-requested a review July 29, 2026 09:25
Comment thread Packs/Base/Scripts/DBotFindSimilarIncidents/DBotFindSimilarIncidents_test.py Dismissed
@lironcohen272 lironcohen272 added the ready-for-pipeline-running Whether the pr is ready for running the whole pipeline, including testing on SAAS machines label Jul 29, 2026
@content-bot

Copy link
Copy Markdown
Contributor

Validate summary
The following errors were thrown as a part of this pr: .
If the AG100 validation in the pre-commit GitHub Action fails, the pull request cannot be force-merged.

Verdict: PR can be force merged from validate perspective? ✅

@content-bot

Copy link
Copy Markdown
Contributor

🔍 AI Triage Report Available

An automated triage report has been generated for this pipeline.

Status: success
Report ID: 85c0f4333c46a5e9

📋 Triage Report

⚠️ AI-generated triage. Validate before acting.

@lironcohen272
lironcohen272 merged commit f6ea37b into master Jul 29, 2026
35 checks passed
@lironcohen272
lironcohen272 deleted the XSUP-73591/DBotFindSimilarIncidents-script-fix-broken-incident-hyperlinks branch July 29, 2026 14:05
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