Repository navigation
Don't show a "Supported versions" banner on extra-docs pages that have no marketplace data - #1884
Conversation
Preview Site AvailableCongratulations! The automatic build has completed successfully. Important: Make sure to inspect your changes at the preview site. |
🔍 AI Triage Report AvailableAn automated triage report has been generated for this pipeline. Status:
|
ShacharKidor
left a comment
There was a problem hiding this comment.
Hi @BEAdi,
Thank you for the quick fix.
Please see my question below.
|
|
||
| # No marketplace info and no fromversion - nothing reliable to show | ||
| if not marketplaces and not from_version: | ||
| return '' |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
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
Impact