Closed Bug 1089718 Opened 10 years ago Closed 10 years ago

[music] Make the metadata parser sane

Categories

(Firefox OS Graveyard :: Gaia::Music, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: squib, Assigned: squib)

References

Details

Attachments

(1 file)

46 bytes, text/x-github-pull-request
djf
: review+
Details | Review
In the interests of maintainability (and some easy startup perf improvements), we should clean up the music metadata parser. This means: cleaning up the code style, splitting it out into multiple (lazy-loaded) files, using Promises where possible, and probably a few other things as I think of them.
Blocks: 1065858
Attached file Pull request
Still WIP, but I've already reduced metadata.js by almost 50% in size.
Assignee: nobody → squibblyflabbetydoo
Status: NEW → ASSIGNED
Blocks: 1093225
Comment on attachment 8512271 [details] [review]
Pull request

Ok, I think this is done. Sorry for making another huge metadata patch, but this should be the last time I need to do any big rewrites, since everything's now safely nestled in separate files.
Attachment #8512271 - Flags: review?(dflanagan)
Attachment #8512271 - Flags: feedback?(hub)
Comment on attachment 8512271 [details] [review]
Pull request

This looks like a really solid patch to me. I really like that each metadata format can be independently lazy loaded.  I've left a bunch of comments on github. Almost all are minor. I think I only found two real errors and I think you've already fixed those.
Attachment #8512271 - Flags: review?(dflanagan) → review+
Comment on attachment 8512271 [details] [review]
Pull request

Looks good to me. Nothing to add from David thorough reviewing.
Attachment #8512271 - Flags: feedback?(hub) → feedback+
Oops, I forgot to squash this before landing, so I kind of made a mess of things. Anyway, here's the squashed merge commit:

https://github.com/mozilla-b2g/gaia/commit/ace8153b0db6fa89f006f22f76ce338a258203c7
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
No longer blocks: 1093225
Depends on: 1106612
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: