Closed
Bug 1017069
Opened 11 years ago
Closed 11 years ago
home1 to home2 Data Migration
Categories
(Firefox OS Graveyard :: Gaia::Homescreen, defect)
Tracking
(feature-b2g:2.0, tracking-b2g:backlog, b2g-v2.0 fixed, b2g-v2.1 fixed)
VERIFIED
FIXED
2.0 S4 (20june)
People
(Reporter: amirn, Assigned: crdlc)
References
Details
(Whiteboard: [systemsfe])
No description provided.
Reporter | ||
Updated•11 years ago
|
Blocks: vertical-homescreen, collection-app
Comment 1•11 years ago
|
||
What is the point of this bug? Is it to track home2 default enabling? If so, I think that Bug 1009111 is enough.
Reporter | ||
Updated•11 years ago
|
Summary: home1 to home2 Migration → home1 to home2 Data Migration
Reporter | ||
Comment 2•11 years ago
|
||
(In reply to Johan Lorenzo [:jlorenzo] from comment #1)
> What is the point of this bug? Is it to track home2 default enabling? If so,
> I think that Bug 1009111 is enough.
This bug is about creating a data migration script that copies data from the old homescreen (like Collections) to the new one
Updated•11 years ago
|
blocking-b2g: --- → backlog
feature-b2g: --- → 2.0
Whiteboard: systemsfe
Updated•11 years ago
|
Assignee: nobody → crdlc
Target Milestone: --- → 2.0 S3 (6june)
Comment 4•11 years ago
|
||
Do we have any data on the number of collections that users are making? I am just wondering if this is really a critical feature to have for 2.0. If it is, we should probably follow what bookmarks is doing to migrate data. We will need to test these upgrade steps thoroughly, I think we might need to actually launch the old homescreen, migrate the data, then launch the new homescreen.
Comment 5•11 years ago
|
||
(In reply to Kevin Grandon :kgrandon from comment #4)
> Do we have any data on the number of collections that users are making? I am
> just wondering if this is really a critical feature to have for 2.0. If it
> is, we should probably follow what bookmarks is doing to migrate data. We
> will need to test these upgrade steps thoroughly, I think we might need to
> actually launch the old homescreen, migrate the data, then launch the new
> homescreen.
Ran - Do you know?
Flags: needinfo?(ran)
Assignee | ||
Comment 6•11 years ago
|
||
Well, I have to understand properly what we want to do here. We have two scenarios:
1) Someone buys a new device 2.0:
No migration, bye bye
2) Someone updates a device from 1.x to 2.0:
* I assume that the FTU is launched after upgrading
* Behind scene we have to launch the old home (or open an iFrame with the same origin)
* Iterate the old indexedDB, filtering by type=collection and migrate data to the new collection datastore
* Uninstall the old home at the end
Regarding to point 2, I don't know if we can do it or if it is feasible. Any suggestion? More ideas how to face it?
Thanks in advance
-----
I don't know if we can do it.... Release the new vertical-homescreen in v2.0 under the same origin than old one in order to migrate data when it will be launched the first time
Flags: needinfo?(kgrandon)
Flags: needinfo?(crdlc)
Flags: needinfo?(21)
Assignee | ||
Comment 7•11 years ago
|
||
BTW we have exactly the same work for bookmarks
Assignee | ||
Comment 8•11 years ago
|
||
I think that we could do the work in the same task.. iterating indexedDB by "collection" type and calling CollectionDatabase.add().... and indexed by "bookmarks" type and calling to BookmkarkDatabase.add()
Comment 9•11 years ago
|
||
(In reply to Cristian Rodriguez (:crdlc) from comment #6)
> 2) Someone updates a device from 1.x to 2.0:
>
> * I assume that the FTU is launched after upgrading
> * Behind scene we have to launch the old home (or open an iFrame with the
> same origin)
> * Iterate the old indexedDB, filtering by type=collection and migrate
> data to the new collection datastore
> * Uninstall the old home at the end
>
> Regarding to point 2, I don't know if we can do it or if it is feasible. Any
> suggestion? More ideas how to face it?
I think this is a pretty good approach to take, and something I would like to investigate. I know we were investigating doing this before, and I think Kyle might know something about it, so ni? on him. It doesn't seem like it would be too bad to:
1 - On upgrade send an IAC message to the old homescreen.
2 - Migrate bookmarks, instantiate collections.
3 - Respond to the IAC message.
4 - Launch the new homescreen.
You might even be able to do this from the homescreen (and not FTU).
> I don't know if we can do it.... Release the new vertical-homescreen in v2.0
> under the same origin than old one in order to migrate data when it will be
> launched the first time
Worst case scenario I suppose we can do this. I would like to investigate to see if we can use a new origin though. If it turns out to be way too painful, let's plan on this.
Flags: needinfo?(kgrandon) → needinfo?(kyle)
Comment 10•11 years ago
|
||
(In reply to Kevin Grandon :kgrandon from comment #4)
> Do we have any data on the number of collections that users are making? I am
> just wondering if this is really a critical feature to have for 2.0. If it
> is, we should probably follow what bookmarks is doing to migrate data. We
> will need to test these upgrade steps thoroughly, I think we might need to
> actually launch the old homescreen, migrate the data, then launch the new
> homescreen.
Thinking about this more, I don't think we can cause intentional data loss on an update with a front-facing feature. That's going to cause a nasty spike of support complaints even if there's a small group of people using it. Collections also was considered a flagship feature in the release it shipped in, so I am a bit nervous to take any data loss risks on an update.
Flags: needinfo?(ran)
Comment 11•11 years ago
|
||
Yeah, that's why it would be nice to have data on this issue. Without real data we're just making guesses. In the meantime I'm fine with planning on doing a data migration. The hardest thing to do here is to probably write some solid tests to make sure this works and we don't regress it.
Assignee | ||
Comment 12•11 years ago
|
||
Well, I think that we are on the same page here, my plan could be something like this:
1) On upgrade send an IAC message to the old homescreen, e.g. "migrate my old friend".
2) Perform the migration of bookmarks and collections (old-homescreen should have access to new datastores).
3) - Respond to the IAC message. e.g "ready"
4) - Launch the new homescreen because both datastores are populated
My question, when and from where can I send that IAC message? from system?
Comment 13•11 years ago
|
||
Let's see if Kyle responds about where the communication should be, I think he may have looked into it before?
Collections already blocks homescreen, so let's just block the collections metabug here.
No longer blocks: vertical-homescreen
Comment 14•11 years ago
|
||
Looked at, yes, implemented, no.
FTU bringup on upgrade got rolled into bug 939174 in January and is /still/ trying to land. If you need it before next week, I recommend someone go in, make it a new bug, and decouple it from bug 939174, unless Guillaume will finish it before next week.
However, I never really figured out how this was going to work because we could never decide when the old browser was going to be taken out, so the work never happened. The only solution I had is exactly what Cristian laid out in Comment #6; write a stub app that comes up, migrates, uninstalls itself.
Flags: needinfo?(kyle)
Comment 15•11 years ago
|
||
I'm in the process of rebasing/manually merging the work from bug 939174 as I also need it for bug 990036 (which should be able to land travis & reviewer-availability willing.), The tutorial config approach in 939174 is now supplanted by a different-but-similar idea in bug 1017314. So please cc me on any new bug created for the FTU/upgrade scenario.
Assignee | ||
Comment 16•11 years ago
|
||
Well, I gonna work just on a mechanism to migrate data from indexedDB to datastores in the old homescreen today. We will call to this mechanism via IAC. I gonna split into two different bugs this one. The mechanism in old homescreen to migrate data and also another bug to start the migration from FTE or from where we'll decide
Comment 17•11 years ago
|
||
(In reply to Cristian Rodriguez (:crdlc) from comment #12)
> Well, I think that we are on the same page here, my plan could be something
> like this:
>
> 1) On upgrade send an IAC message to the old homescreen, e.g. "migrate my
> old friend".
Why do you need IAC ? Can you simply open the homescreen into a <iframe mozbrowser mozapp> in the FTU app, and let the homescreen perform the work ?
> 2) Perform the migration of bookmarks and collections (old-homescreen should
> have access to new datastores).
> 3) - Respond to the IAC message. e.g "ready"
Then the homescreen just call window.close() when it is ready.
> 4) - Launch the new homescreen because both datastores are populated
>
> My question, when and from where can I send that IAC message? from system?
So basically one step of the FTU would be to open an <iframe mozbrowser mozapp> on the old homescreen, this one can display a 'Migrating Data' something as a UI. Then when it is ready the 'Next' button of the FTU is activated and the user can go forward.
Does it makes sense ?
Flags: needinfo?(21)
Assignee | ||
Comment 18•11 years ago
|
||
It has been implemented with IAC because there is not UI to show (it will be performed behind scene) and that solution although nice could be more complex thought.
Updated•11 years ago
|
QA Whiteboard: [VH-FL-blocking+]
Whiteboard: systemsfe → [systemsfe]
Updated•11 years ago
|
QA Whiteboard: [VH-FL-blocking+] → [VH-FL-blocking-]
Updated•11 years ago
|
feature-b2g: 2.0 → 2.1
Updated•11 years ago
|
feature-b2g: 2.1 → 2.0
Target Milestone: 2.0 S3 (6june) → 2.0 S4 (20june)
Updated•11 years ago
|
QA Whiteboard: [VH-FL-blocking-] → [VH-FL-blocking-][VH-FC-blocking+]
Updated•11 years ago
|
QA Whiteboard: [VH-FL-blocking-][VH-FC-blocking+] → [VH-FL-blocking+][VH-FC-blocking+]
Assignee | ||
Comment 19•11 years ago
|
||
All dependencies already landed on master so closing...
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Comment 20•11 years ago
|
||
Verified from 1.4 to 2.0. Privileged and hosted apps are migrated, not bookmarks. Icons of hosted apps are set to the default one until an Internet connection is established.
See bug 1026737 and bug 1026733 for details.
Comment 21•11 years ago
|
||
Dependent bugs have been uplifted. Marking as fixed in 2.0, 2.1 to simplify tracking.
status-b2g-v2.0:
--- → fixed
status-b2g-v2.1:
--- → fixed
Comment 22•11 years ago
|
||
https://moztrap.mozilla.org/manage/case/13218/
https://moztrap.mozilla.org/manage/case/13222/
https://moztrap.mozilla.org/manage/case/13223/
https://moztrap.mozilla.org/manage/case/13225/
https://moztrap.mozilla.org/manage/case/13226/
https://moztrap.mozilla.org/manage/case/13227/
https://moztrap.mozilla.org/manage/case/13228/
https://moztrap.mozilla.org/manage/case/13229/
https://moztrap.mozilla.org/manage/case/13230/
Flags: in-moztrap+
Updated•10 years ago
|
blocking-b2g: backlog → ---
tracking-b2g:
--- → backlog
You need to log in
before you can comment on or make changes to this bug.
Description
•