Closed Bug 1372559 Opened 8 years ago Closed 8 years ago

[l10nstats] update to compare-locales 2.0 json format

Categories

(Webtools Graveyard :: Elmo, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Pike, Assigned: Pike)

References

Details

Attachments

(1 file)

bug 1372558 will start generating the data for compare-locales in the new json format, elmo needs to be able to show that. Given that the ES index won't change, we can land this support ahead of generating the data, and show both formats with runtime detection. Ride-along: stop pretending that the json is in build logs.
This is 4 commits, the first two are cosmetic cleanup, removing dead code and flaking. Then I transform the compare view to a class-based view, so that I can insert testing json data by subclassing, and create a test. Then I add a second variant to detect the new json format, and adapt it slightly differently in a way that works for the template. Tested against a local setup with the new version of compare-locales, and missing/obsolete and errors all work.
Assignee: nobody → l10n
Status: NEW → ASSIGNED
Comment on attachment 8877544 [details] [review] Handle both old and new json format Matjaz, is this something you could review? When you're back, that is.
Attachment #8877544 - Flags: review?(m)
Comment on attachment 8877544 [details] [review] Handle both old and new json format ... actually, this is the review I talked about moving from matjaz to stas.
Attachment #8877544 - Flags: review?(m) → review?(stas)
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
This is in production now.
Attachment #8877544 - Flags: review?(stas) → review+
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: