Closed Bug 1221307 Opened 10 years ago Closed 10 years ago

[fxos-device-service] Modularize routes and tests

Categories

(Firefox OS Graveyard :: Infrastructure, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

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.
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)
Target Milestone: --- → FxOS-S11 (13Nov)
I'll work on the test modularization after the router work has met standards.
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+
Step 2: split testing up into separate files.
Attachment #8683121 - Flags: review?(gaye)
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+
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Attachment #8683757 - Flags: review?(eperelman) → review+
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.

Attachment

General

Creator:
Created:
Updated:
Size: