Closed
Bug 877526
Opened 13 years ago
Closed 13 years ago
[osumo] [tracker] Add API to kitsune's wiki package in order to get data out from SUMO
Categories
(support.mozilla.org :: General, defect)
support.mozilla.org
General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: shuhao, Assigned: shuhao)
References
Details
An API needs to be created in the kitsune project in order to get the data out of SUMO to be downloaded. Some initial ideas are:
- Bundles (all articles) are generated and rendered every <day/week/month?>
- Diffs are generated for smaller time frame (day, per edit, etc.)
- API to download the latest bundles to build initial offline caches
- API to download diffs for updating offline caches
Since we cannot reasonably store bundles and diffs from all the generations indefinitely, we should only store the latest bundles and diffs that goes up to a certain time. If the user's local content is too outdated[1], we replace it with a new bundle.
[1]: The term "too outdated" is loosely defined. I think we should take a look at the amount that the KB has changed rather than just setting a timeout.
More comments to come if necessary.
A good point is offline images.
While at this point I'm not sure how big all the images are, it is probably quite big. The user should be able to opt out of downloading these images or have some sort of click to download (or queued to be downloaded when there is network) functionality (which means we need the correct sizes to be downloaded with the API).
Here's the client side database format. The web api should return all of this to avoid any computations client side:
https://github.com/shuhaowu/osumo/blob/master/docs/database.md
This work is currently in progress and can be viewed at:
https://github.com/shuhaowu/kitsune/tree/offline-sumo
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•