You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hide topics with 2 or fewer sources from A-Z, category browse, and Google [sc-45176] (#3496)
* feat(topics): hide low-source topics from A-Z, category browse, and Google search [sc-45176]
Topics with 2 or fewer sources are no longer surfaced on the Topic A-Z page,
category/TOC browse cards, or Google (excluded from the sitemap and marked
noindex on their own page). They remain fully intact in the database and
still appear in other topics' "Related Topics" sidebars.
should_display() gains an optional min_sources param (default preserves
existing behavior) so the stricter threshold can be applied only at the
three affected call sites, leaving the sidebar's annotate_topic_link() path
untouched.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
* test(topics): parametrize should_display tests
Collapses four repetitive test methods into a single pytest.mark.parametrize
covering the same cases (default vs raised threshold, curation exemptions,
explicit shouldDisplay=False override).
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
0 commit comments