Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose fallback documents in topic cards. #6490

Merged
merged 1 commit into from
Feb 5, 2025

Conversation

akatsoulas
Copy link
Collaborator

  • Update counter with fallback docs

Copy link
Contributor

@escattone escattone left a comment

Choose a reason for hiding this comment

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

Just a minor tweak needed.

featured_articles = get_featured_articles(product, locale=request.LANGUAGE_CODE, topics=topics)

# Get both main and fallback documents from the faceted search
main_docs_data, fallback_docs_data = documents_for(
Copy link
Contributor

Choose a reason for hiding this comment

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

The fact that fallback_docs_data can be None should be accounted for.

* Update counter with fallback docs
@akatsoulas akatsoulas force-pushed the topic-cards-fallback-docs branch from e8c1416 to 14dcc4a Compare February 5, 2025 16:00
@akatsoulas akatsoulas merged commit 878c4d8 into mozilla:main Feb 5, 2025
2 checks passed
@akatsoulas akatsoulas deleted the topic-cards-fallback-docs branch February 5, 2025 17:57
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.

2 participants