Closed Bug 609421 Opened 14 years ago Closed 14 years ago

Combine various JSMs

Categories

(Firefox :: Sync, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: philikon, Assigned: philikon)

References

Details

(Keywords: perf, Whiteboard: [qa-])

Attachments

(5 files)

* all type_record/* files can be merged with the relevant engines/* files * the base_record/* files can be merged into one (top-level) file * tracker.js and store.js can be merged into engines.js
Would be nice to wait for Bug 603489 before attempting this; otherwise it'd be a hell of a merge.
Depends on: 603489
status.js can be merged into main.js. (Rationale: While we want to keep main.js as lightweight as possible, as not to penalize users who don't use Sync, we don't have to worry about about status.js: anybody who wants to check whether Sync is configured will import main.js and call Weave.Status.checkSetup() which will import status.js anyway.)
auth.js can be merged into resource.js
Combine type_record/* files with their respective engines/* counterparts
Assignee: nobody → philipp
Status: NEW → ASSIGNED
Attachment #504619 - Flags: review?(rnewman)
auth.js and resource.js are very much designed to work together, so let's combine them.
Attachment #504629 - Flags: review?(rnewman)
Comment on attachment 504619 [details] [diff] [review] Part 1: Death to type_records [Checked in: See comment 19] Thanks for arranging these patches neatly :) I'm going to review in layers, too. This one is good.
Attachment #504619 - Flags: review?(rnewman) → review+
Attachment #504624 - Flags: review?(rnewman) → review+
Comment on attachment 504626 [details] [diff] [review] Part 3: Combine base_record/* files into record.js [Checked in: Seec omment 17] Looks good. Patch failed to apply on one of the tests, which is bizarre, because it's a trivial change. Easy to fix by hand, and produces a patch of the same size, so I'm not concerned.
Attachment #504626 - Flags: review?(rnewman) → review+
Comment on attachment 504629 [details] [diff] [review] Part 4: Combine auth.js and resource.js [Checked in: See comment 15] As mentioned on IRC, these patches as presented need a little fiddling to apply, but you're probably all set in your queue.
Attachment #504629 - Flags: review?(rnewman) → review+
Comment on attachment 505193 [details] [diff] [review] small follow up to fix copypasta Looks like it should be there, so thumbs up. (Confirmed in IRC that this fixes CW failures.) (Still have no idea why it doesn't fail on my machine.)
Attachment #505193 - Flags: review?(rnewman) → review+
Blocks: 625918
Whiteboard: [qa-]
Comment on attachment 504629 [details] [diff] [review] Part 4: Combine auth.js and resource.js [Checked in: See comment 15] http://hg.mozilla.org/mozilla-central/rev/11935a5a21ad without patch Makefile.in part.
Attachment #504629 - Attachment description: Part 4: Combine auth.js and resource.js → Part 4: Combine auth.js and resource.js [Checked in: See comment 15]
(In reply to Serge Gautherie (:sgautherie) from comment #15) > without patch Makefile.in part. s/Makefile.in/Makefile/
Comment on attachment 504626 [details] [diff] [review] Part 3: Combine base_record/* files into record.js [Checked in: Seec omment 17] http://hg.mozilla.org/mozilla-central/rev/50fd43f87ff4 without Makefile part
Attachment #504626 - Attachment description: Part 3: Combine base_record/* files into record.js → Part 3: Combine base_record/* files into record.js [Checked in: Seec omment 17]
Comment on attachment 504624 [details] [diff] [review] Part 2: Move store and tracker implementation into engines.js [Checked in: See comment 18] http://hg.mozilla.org/mozilla-central/rev/cb0da1fdfe9e without Makefile part
Attachment #504624 - Attachment description: Part 2: Move store and tracker implementation into engines.js → Part 2: Move store and tracker implementation into engines.js [Checked in: See comment 18]
Comment on attachment 504619 [details] [diff] [review] Part 1: Death to type_records [Checked in: See comment 19] http://hg.mozilla.org/mozilla-central/rev/636b5048b1a1 without Makefile part
Attachment #504619 - Attachment description: Part 1: Death to type_records → Part 1: Death to type_records [Checked in: See comment 19]
Component: Firefox Sync: Backend → Sync
Product: Cloud Services → Firefox
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: