Closed
Bug 1221307
Opened 10 years ago
Closed 10 years ago
[fxos-device-service] Modularize routes and tests
Categories
(Firefox OS Graveyard :: Infrastructure, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
2.6 S1 - 11/20
People
(Reporter: Eli, Assigned: Eli)
Details
(Whiteboard: [systemsfe])
Attachments
(3 files)
The routes and tests files are getting a little long and unwieldy. I'd like to see these broken up a bit and become more manageable.
| Assignee | ||
Comment 1•10 years ago
|
||
First patch: modularizes the routing code. Route endpoints are there own files and takes advantage of modular Express router. Also did some clean up with the Express response helpers and associated test changes. Grouped routes with logic, should make creating new routes and logic a little easier with less maintenance.
Attachment #8682795 -
Flags: review?(gaye)
| Assignee | ||
Updated•10 years ago
|
Target Milestone: --- → FxOS-S11 (13Nov)
| Assignee | ||
Comment 2•10 years ago
|
||
I'll work on the test modularization after the router work has met standards.
Comment 3•10 years ago
|
||
Comment on attachment 8682795 [details] [review]
Link to Github pull-request: https://github.com/mozilla-b2g/fxos-device-service/pull/13
r+ with a single ocd nit
Attachment #8682795 -
Flags: review?(gaye) → review+
| Assignee | ||
Comment 4•10 years ago
|
||
| Assignee | ||
Comment 5•10 years ago
|
||
Step 2: split testing up into separate files.
Attachment #8683121 -
Flags: review?(gaye)
Comment 6•10 years ago
|
||
Comment on attachment 8683121 [details] [review]
Link to Github pull-request: https://github.com/mozilla-b2g/fxos-device-service/pull/14
Much better! Not everything can live in the same file :)
Attachment #8683121 -
Flags: review?(gaye) → review+
| Assignee | ||
Comment 7•10 years ago
|
||
In master: https://github.com/mozilla-b2g/fxos-device-service/commit/e0b51538b4ae0374aa609d8da88d7efde39561a9
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Comment 8•10 years ago
|
||
Attachment #8683757 -
Flags: review?(eperelman)
| Assignee | ||
Updated•10 years ago
|
Attachment #8683757 -
Flags: review?(eperelman) → review+
Comment 9•10 years ago
|
||
Updated•10 years ago
|
Whiteboard: [systemsfe]
Target Milestone: FxOS-S11 (13Nov) → 2.6 S1 - 11/20
You need to log in
before you can comment on or make changes to this bug.
Description
•