The MDN dev team met in Madison, WI for a work week, and made some progress
on MDN and BrowserCompat features, as well as the go-to-production plan.
We couldn't find any flaws in the idea of collecting the MDN pieces into
the the contribution app. These pieces include:
- A contribution interface for changing and adding contribution data
- JavaScript to convert raw API data into MDN-specific HTML tables
- Assets (images, fonts, etc) not already on MDN
- A headless JS renderer (PhantomJS) for pre-rendering content as HTML
- One source code repository to coordinate changes in MDN rendering and
workflow
This doesn't change the refresh strategy, just where the work occurs:
- The BrowserCompat API publishes JSON
- The Contribution App publishes HTML, rendered from JSON using the
headless JS renderer
- KumaScript injects the rendered HTML into the page
- On MDN page load, the page asks the API if there is newer JSON. If there
is, it loads the table-generating JS and replaces the source HTML.
The MDN Contribution site can use the headless JS renderer to compile JS
templates, and can use the table-generating JS for previews and other UI
elements.
Things may be adjusted on the way to deployment, but the strategy is the
same: inject HTML at page edit, rebuild as needed on page load, and move
scaling problems to the new services. We didn't make progress on this plan
(or write bugzilla tickets), but instead focused on API updates required
for the contribution interface.
The other discussion in Madison is the 'skateboard' plan, to get a working
version of the new compatibility displays into production. Stephanie will
present details of the plan, and you'll get to see for yourself soon on
staging. We have most of the pieces already, but we expect the project
priorities will shift to automating manual steps, fixing bugs, and
improving the skateboard. The two-phase rendering is not required for the
skateboard plan, so it may be a while before either part is implemented.
John
On Tue, Sep 15, 2015 at 2:32 PM, Stephanie Hobson <
sho...@mozilla.com>
wrote: