Closed
Bug 1115295
Opened 10 years ago
Closed 10 years ago
[Stingray][AppDeck/Home] Empty folders are not removed correctly in cardManager
Categories
(Firefox OS Graveyard :: Gaia, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
2.2 S3 (9jan)
People
(Reporter: rexboy, Assigned: dwi2)
References
Details
(Whiteboard: [ft:conndevices])
Attachments
(2 files, 1 obsolete file)
When there are several empty folders, cardManager wouldn't remove them
correctly after calling writeCardlistInCardStore(). Some of them keep remained.
We also need to send card-removed event when empty folders are removed.
To handle situations that several folders are removed at once, we may need
to change argument passed to callback on card-removed such that multiple
folders can be removed at once.
Reporter | ||
Updated•10 years ago
|
Assignee: nobody → tzhuang
Assignee | ||
Comment 1•10 years ago
|
||
Working on it
Assignee | ||
Comment 2•10 years ago
|
||
We could send `card-removed` event with detail of multiple indices of cardlist
Assignee | ||
Updated•10 years ago
|
Target Milestone: --- → 2.2 S3 (9jan)
Reporter | ||
Comment 3•10 years ago
|
||
The work in progress.
Since Tzu-lin is doing refactoring, this is just for reference.
It also includes some modification to allow inserting card/folder on specified position.
Reporter | ||
Comment 4•10 years ago
|
||
Another issue is that DETACHED folders are still written to database in the topmost cardList.
(Although they don't generate new folder entries)
We need to write cardList to database *after* excluding empty folders.
Reporter | ||
Comment 5•10 years ago
|
||
Sorry I slightly changed it a bit.
I found that it would be better to let user specify if it has to clean-up empty folders, otherwise rearranging would also cause empty folders to be cleaned.
This is the WIP for reference.
Attachment #8541135 -
Attachment is obsolete: true
Assignee | ||
Comment 6•10 years ago
|
||
Hi Rex,
I made a patch based on the WIP you provided (https://bug1115295.bugzilla.mozilla.org/attachment.cgi?id=8541398).
Please help to review it, thanks.
Attachment #8542887 -
Flags: review?(rexboy)
Assignee | ||
Updated•10 years ago
|
Status: NEW → ASSIGNED
Reporter | ||
Comment 7•10 years ago
|
||
Comment on attachment 8542887 [details] [review]
pull request
Looks good to me with some comments.
Thanks for the work!
Attachment #8542887 -
Flags: review?(rexboy) → review+
Assignee | ||
Comment 8•10 years ago
|
||
Thanks,
I modified commit message as commented and rebased the patch to latest master.
Waiting fo Gaia-Try result
https://treeherder.mozilla.org/ui/#/jobs?repo=gaia-try&revision=3bcc50c668e1
Assignee | ||
Comment 9•10 years ago
|
||
Landed on master
https://github.com/mozilla-b2g/gaia/commit/3e56f24a0eaf2e95f3f438748290a9b2c877db7f
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•