-
Notifications
You must be signed in to change notification settings - Fork 10
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
DISCO-3202 - Enrich the curated-recommendations endpoint with icon-urls #784
Conversation
f18430a
to
b975b8e
Compare
ca2687b
to
0cedcab
Compare
b72fc31
to
9c206a6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🖼️
9c206a6
to
31448f3
Compare
LGTM, let's confirm a few things before the merge.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only have some questions related to testing. The rest looks good. Thanks for making this change! 👍
tests/integration/api/v1/curated_recommendations/test_curated_recommendations.py
Show resolved
Hide resolved
tests/integration/api/v1/curated_recommendations/test_curated_recommendations.py
Outdated
Show resolved
Hide resolved
We set the expectation that adding attributes is not a breaking change, but that clients (Desktop and Android for now) will be notified of any changes regardless, to avoid surprises. If they're not already aware, could you send them a Slack message before merging this? |
31448f3
to
6eb12b9
Compare
@@ -140,7 +151,7 @@ def provider( | |||
|
|||
|
|||
@pytest.fixture(autouse=True) | |||
def setup_providers(corpus_provider): | |||
def setup_suggest_providers(corpus_provider): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
def setup_suggest_providers(corpus_provider): | |
def setup_curated_recommendations_provider(corpus_provider): |
References
JIRA:
Description
Enriching the
/curated-recommendations
endpoint with aiconUrl
field for each article recommendation. TheiconUrl
is aHttpUrl
, taken from theManifest
provider, and if the favicon for the domain is available, we attach it to a recommendation. Otherwise, we return an empty string.In the background, the
Manifest
is updated once a week, and therefore the icons will be updated in this interval. Which means newly added domains to theManifest
will be available to this endpoint at that time.PR Review Checklist
Put an
x
in the boxes that apply[DISCO-####]
, and has the same title (if applicable)[load test: (abort|skip|warn)]
keywords are applied to the last commit message (if applicable)