Skip to content

Don't show a "Supported versions" banner on extra-docs pages that have no marketplace data - #1884

Merged
BEAdi merged 1 commit into
masterfrom
fix-banner
Nov 17, 2026
Merged

BEAdi merged 1 commit into
masterfrom
fix-banner

Conversation

@BEAdi

@BEAdi BEAdi commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Related Issues

fixes: https://jira-dc.paloaltonetworks.com/browse/CIAC-17794

Description

Summary

The Email Communication page on xsoar.pan.dev says the pack is available on Cortex XSIAM and Cortex XPANSE, but the pack is XSOAR-only.

Root cause

Pages under content-repo/extra-docs/ aren't part of the content repo, so the lookup in get_pack_marketplaces() never finds a pack_metadata.json for them and returns an empty list. Since #1858, get_fromversion_data() treats an empty list as "available on all marketplaces." The result is that every extra-docs page shows "Available on Cortex XSOAR, Cortex XSIAM, and Cortex XPANSE." #1858 was a fromversion fix and wasn't meant to add this banner to these pages.

Change

  • get_fromversion_data() now returns no banner when there is no fromversion and no marketplace data. This puts these pages back to how they looked before change version support info #1858.
  • Updated the matching test case in gendocs_test.py.

Impact

  • 63 extra-docs pages no longer show the banner: 22 packs, 27 articles, 11 integrations and 3 scripts.
  • No content-repo page changes. I checked 1,353 integration, 1,514 script and 1,589 playbook READMEs, and all of them keep their current banner.
  • Each pack's marketplace page still shows which products it supports.

@BEAdi BEAdi self-assigned this Nov 12, 2026
@content-bot

Copy link
Copy Markdown
Contributor

Preview Site Available

Congratulations! The automatic build has completed successfully.
A preview site is available at: https://xsoar-pan-dev--pull-request-1884-m2mjjkmt.web.app


Important: Make sure to inspect your changes at the preview site.

@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: dcb830a4bf64f7b2

📋 Triage Report

⚠️ AI-generated triage. Validate before acting.

@ShacharKidor
ShacharKidor self-requested a review November 15, 2026 07:02

@ShacharKidor ShacharKidor 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 @BEAdi,
Thank you for the quick fix.

Please see my question below.

Comment thread content-repo/gendocs.py

# No marketplace info and no fromversion - nothing reliable to show
if not marketplaces and not from_version:
return ''

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.

So what will be displayed in the banner for the Email Communication pack? (It should be "XSOAR").
Also, will it affect the other packs there?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

With this fix, the Email Communication docs page won't show a banner at all (not "XSOAR"), as it was before #1858; the XSOAR-only support still appears on the pack's marketplace page, and we can show "XSOAR" on the docs page by adding marketplaces: [xsoar] to its front matter if needed. The change only affects the 63 hand-written extra-docs pages (including the other 21 pack pages there), which also lose the banner, while all integration, script and playbook pages generated from the content repo keep their current banner.

@BEAdi BEAdi changed the title No marketplace info and no fromversion - nothing reliable to show Don't show a "Supported versions" banner on extra-docs pages that have no marketplace data Nov 17, 2026

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

Good work!

@BEAdi
BEAdi merged commit f641490 into master Nov 17, 2026
12 checks passed
@BEAdi
BEAdi deleted the fix-banner branch November 17, 2026 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants