Closed Bug 1320843 Opened 8 years ago Closed 5 years ago

JSON data is stale for translations

Categories

(developer.mozilla.org Graveyard :: API, defect, P3)

All
Other
defect

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: jwhitlock, Unassigned)

References

Details

(Keywords: in-triage, Whiteboard: [specification][type:bug][points=1])

What did you do? ================ While scraping the site to construct a sample database, I found several instances where the $json API data had not been updated for at least 9 months, as indicated by the missing UUID parameter added in February 2016. What happened? ============== JSON representing the state from nine or more months ago was returned. What should have happened? ========================== The JSON should reflect recent changes like new alternate translations. Is there anything else we should know? ====================================== The JSON is cached in the database in the Document record, and is updated when a new revision is created. Stale translations are particularly susceptible to this problem. The JSON takes a long time to generate, so some caching may be needed. However, other methods could be used that do not involve a database write due to a GET in some situations. A cacheback task could automatically regenerate the JSON in the background periodically, and invalidate the cache in more situations, such as the adding of an alternate translation.
See Also: → 1378386

This also impacts the Doc Status pages for translations, as reported in https://discourse.mozilla.org/t/recent-changes-for-caching-policy-doc-status-pages-management/34858

Summary: JSON data is too stale for stale translations → JSON data is stale for translations
Keywords: in-triage
Priority: -- → P3
Whiteboard: [specification][type:bug] → [specification][type:bug][points=1]
MDN Web Docs' bug reporting has now moved to GitHub. From now on, please file content bugs at https://github.com/mdn/sprints/issues/ and platform bugs at https://github.com/mdn/kuma/issues/.
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → WONTFIX
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.