Closed
Bug 1111466
Opened 11 years ago
Closed 11 years ago
[Stingray]Unpin card from context menu of app deck
Categories
(Firefox OS Graveyard :: Gaia, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
2.2 S3 (9jan)
People
(Reporter: dwi2, Assigned: dwi2)
References
Details
(Whiteboard: [ft:conndevices])
Attachments
(1 external file)
Users are able to unpin card from context menu of home app.
| Assignee | ||
Updated•11 years ago
|
Target Milestone: --- → 2.2 S2 (19dec)
| Assignee | ||
Comment 1•11 years ago
|
||
to be able to unpin card from
Summary: [Stingray][Home]Unpin card from home app → [Stingray]Unpin card from context menu of app deck
| Assignee | ||
Comment 2•11 years ago
|
||
comment 0 is incorrect. This bug should be - Unpin card from context menu of app deck.
First, we should let app deck know the whole card list (fetch from datastore)
| Assignee | ||
Updated•11 years ago
|
Target Milestone: 2.2 S2 (19dec) → 2.2 S3 (9jan)
| Assignee | ||
Comment 3•11 years ago
|
||
WIP https://github.com/dwi2/gaia/tree/bug1111466
DONE:
1. Move logic of `serialize` and `deserialize` card into card-like classes
2. Move card_store, piped_promise, and card-like classes into tv_shared
3. Implement card_reader for app-deck
TODO:
1. Because there are a lot of common in card_reader and card_manager (of smart-home), I'll drop card_reader and reuse card_manager as much as possible. I'll move card_manager to tv_shared and make it dual-mode (read mode for app-deck, and write mode for smart-home)
2. Unpin logic
Status: NEW → ASSIGNED
| Assignee | ||
Comment 4•11 years ago
|
||
status report:
DONE:
1. Move logic of `serialize` and `deserialize` card into card-like classes
2. Move card_store, piped_promise, and card-like classes into tv_shared
3. Implement card_reader for app-deck
4. Because there are a lot of common in card_reader and card_manager (of smart-home), I'll drop card_reader and reuse card_manager as much as possible. I'll move card_manager to tv_shared and make it dual-mode (read mode for app-deck, and write mode for smart-home)
5. Unpin logic
TODO:
1. there are some state transition error in card_manager. I am still looking at it.
| Assignee | ||
Comment 5•11 years ago
|
||
status report:
I am almost done. Only need to remove my debugging console.log() and make it more reviewing-friendly. I guess I could send review request tomorrow.
| Assignee | ||
Comment 6•11 years ago
|
||
Hi John,
Since Rex is out-of-office, please help to review the patch. Thanks
We did the following in this patch:
1. Move logic of serialize and deserialize into card-like classes
2. Move CardStore, PipedPromise, and card-like classes into tv_shared folder
3. Implement dual mode of CardManager for App-Deck. Only Smart-Home can run CardManager in readwrite mode. All other apps can only run CardManager in readonly mode. CardManager now also have two states - READY and SYNCING. When CardManager are reading data from or writing data to CardStore, it is in SYNCING state.
4. Add unpin logic in App-Deck and sending unpin activity to Smart-Home.
Attachment #8541571 -
Flags: review?(im)
Comment 7•11 years ago
|
||
Comment on attachment 8541571 [details] [review]
pull request
This patch looks good. But it may be better. Please find my comments in PR.
Attachment #8541571 -
Flags: review?(im)
| Assignee | ||
Comment 8•11 years ago
|
||
Comment on attachment 8541571 [details] [review]
pull request
Hi John,
Your comments are addressed. But since you are also on PTO for a long period, I'll let Luke review the patch. I also flag you feedback? if you have time.
Hi Luke,
Would you help to review the patch? Thanks
Attachment #8541571 -
Flags: review?(lchang)
Attachment #8541571 -
Flags: feedback?(im)
Comment 9•11 years ago
|
||
Comment on attachment 8541571 [details] [review]
pull request
Hi Tzu-Lin,
I left some comments on GitHub. Please take a look? Thanks.
Attachment #8541571 -
Flags: review?(lchang)
| Assignee | ||
Comment 10•11 years ago
|
||
Comment on attachment 8541571 [details] [review]
pull request
Hi Luke,
Comment addressed. Please take a look at the patch again. Thanks
Attachment #8541571 -
Flags: review?(lchang)
Comment 11•11 years ago
|
||
Comment on attachment 8541571 [details] [review]
pull request
Looks great! Thanks.
Attachment #8541571 -
Flags: review?(lchang) → review+
| Assignee | ||
Comment 12•11 years ago
|
||
Thanks,
landed on master
https://github.com/mozilla-b2g/gaia/commit/a2060fbf5cfae3f2d0bdaf95b248fb03ac93ec78
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
| Assignee | ||
Updated•11 years ago
|
Attachment #8541571 -
Flags: feedback?(im)
You need to log in
before you can comment on or make changes to this bug.
Description
•