Closed Bug 1226166 Opened 9 years ago Closed 6 years ago

Move apps/system/js/places.js to /shared so other apps can reuse it

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: mbdejong, Assigned: mbdejong)

References

Details

Attachments

(2 files)

Prerequisite / first part of the work for bug 1208352
Assignee: nobody → mbdejong
Blocks: 1208352
Moving functions:

* getStore
* defaultPlace
* editPlace
* setVisits
* setPinned
* isPinned
* addToVisited
* saveScreenshot
* saveThemeColor
* clearHistory (except for LazyLoader wrapper)
* addVisit (except for onLocationChange LazyLoader wrapper)
* setTitle (except for onTitleChange LazyLoader wrapper)
* setIcon (except for onIconChange LazyLoader wrapper)
* debounce
* debouncePlacesChanges

Not moving functions:

* _start (related to Module)
* handleEvent (related to Module)
* screenshotRequested (uses Service)
* takeScreenshot (not related to places)
* checkTopSites (uses asyncStorage)
* clearHistory (LazyLoader wrapper)
* onLocationChange (LazyLoader wrapper for addVisit)
* onTitleChange (LazyLoader wrapper for setTitle)
* onIconChange (LazyLoader wrapper for setIcon)
Comment on attachment 8690029 [details] [review]
[gaia] michielbdejong:1226166-move-systems-editPlaces-to-shared > mozilla-b2g:master

Hi Dale,

In the end I left the debounce part in systems and moved only editPlace to /shared.

Can you give some early feedback to let me know if I'm on the right track?

I still need to fix the MockLazyLoader problem, move the relevant unit tests so that they're next to the code in shared, and clean up the loose ends.
Attachment #8690029 - Flags: feedback?(dale)
Summary: Move apps/js/places.js to /shared so other apps can reuse it → Move apps/system/js/places.js to /shared so other apps can reuse it
Comment on attachment 8690029 [details] [review]
[gaia] michielbdejong:1226166-move-systems-editPlaces-to-shared > mozilla-b2g:master

This looks great, no further comments :)
Attachment #8690029 - Flags: feedback?(dale) → feedback+
Comment on attachment 8689527 [details] [review]
[gaia] michielbdejong:1226166-move-systems-places-to-shared > mozilla-b2g:master

Obsolete.
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: