-
Notifications
You must be signed in to change notification settings - Fork 0
feat(timeToRead): [DIS-852] Add time_to_read / timeToRead #56
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
Conversation
| CH, | ||
| AT, | ||
| BE, | ||
| ] |
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.
This is unrelated to time-to-read, but we just happened to notice that #55 accidentally re-introduced this enum. The generated code was not impacted by this, so requests from unsupported regions such as NL continue to work.
| timeToRead: | ||
| type: integer | ||
| description: Article read time in minutes |
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.
@ScottDowne Just to confirm, timeToRead (camel-case) is supported by Firefox when hitting the new api, right?
Seems like that's the case looking at the code: https://searchfox.org/mozilla-central/source/browser/components/pocket/content/pktApi.sys.mjs#868
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.
That is correct.
Herraj
left a comment
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.
🚀
| return recommendationWithoutTimeToRead; | ||
| } | ||
| }; | ||
|
|
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
| timeToRead: | ||
| type: integer | ||
| description: Article read time in minutes |
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.
That is correct.
Goal
Add time_to_read and timeToRead respectively to the old and new recommendation endpoint.
Implementation Decisions
References
JIRA ticket:
QA
As part of the QA steps in #908 we simulated a Parser outage, and checked that recommendations continue to be returned successfully. When firefox-api-proxy is deployed to Pocket-Dev it requests production recommendations, so we can only QA the scenario where the Parser is available for this PR.
/v3/firefox/global-recs en-GB
time_to_readis missing for a small number of the recommendations/desktop/v1/recommendations fr-FR
time_to_readis missing for a small number of the recommendations