Closed
Bug 1027005
Opened 11 years ago
Closed 11 years ago
[Collection] Population task triggers
Categories
(Firefox OS Graveyard :: Gaia::Everything.me, defect)
Tracking
(feature-b2g:2.0, b2g-v2.0 verified, b2g-v2.1 fixed)
People
(Reporter: amirn, Assigned: kgrandon)
References
Details
(Whiteboard: [systemsfe])
User Story
The Collection population task should run: 1. for all installed collections - first time a Collection is opened (done: bug 1016241) 2. on app install/uninstall - add/remove app from collections 3. on collection install - run the task for the new collection
Attachments
(2 files)
84 bytes,
text/plain
|
Details | |
46 bytes,
text/x-github-pull-request
|
daleharvey
:
review+
bajaj
:
approval-gaia-v2.0+
|
Details | Review |
No description provided.
Reporter | ||
Updated•11 years ago
|
Blocks: collection-app
Updated•11 years ago
|
QA Whiteboard: [VH-FL-blocking+][VH-FC-blocking+]
Comment 1•11 years ago
|
||
Looks like this is required feature work for collections.
Candice - Can you add the feature-b2g flag here?
Flags: needinfo?(cserran)
Updated•11 years ago
|
feature-b2g: --- → 2.0
Flags: needinfo?(cserran)
Reporter | ||
Updated•11 years ago
|
User Story: (updated)
Summary: [Collection] Run population task on app install/uninstall → [Collection] Population task triggers
Updated•11 years ago
|
Assignee: nobody → dale
Comment 2•11 years ago
|
||
ran / amir / kevin, just a quick pointer asking what a test for this looks like, so it sounds like if I have a smart collection with facebook in it, then install facebook, I should see the icon update? just a simple workflow I can verify with (also pointer to the e.me integration tests would be handy)
Assignee | ||
Comment 3•11 years ago
|
||
Yes, that's correct. If you install facebook, I belive you should see the "Social" collections app icon update.
Also if you remove it, it should update as well. We only have a handful of e.me integration tests in the verticalhome collection_test.js file, working on adding more though.
Assignee | ||
Comment 4•11 years ago
|
||
I'm going to free this bug for now to look at it with Cristian. If we don't make much progress, will assign back to you Dale, or you can steal it in the morning. Thanks.
Assignee: dale → nobody
Assignee | ||
Comment 5•11 years ago
|
||
Cristian - we could really use your help tonight to look into this if you don't have more important things. I think we will need to use IAC perhaps from the homescreen app whenever an app is installed to check if it needs to be part of the 'native info'.
There are two pieces left, app installing/unintalling and collection creation. It would probably help to look at the code here: https://github.com/mozilla-b2g/gaia/pull/20231
I know this is a bit tricky, so if you don't finish a patch or anything, whatever findings you come up with could be useful for us tomorrow. Thanks!
Flags: needinfo?(crdlc)
Updated•11 years ago
|
Assignee: nobody → crdlc
Status: NEW → ASSIGNED
Updated•11 years ago
|
Assignee: crdlc → nobody
Status: ASSIGNED → NEW
Comment 7•11 years ago
|
||
I could do the code for app install/uninstall - add/remove app from collections bug 1028087
Reporter | ||
Comment 8•11 years ago
|
||
hope this patch can help, it's something I did real quick and was not tested
Comment 9•11 years ago
|
||
Kevin told me that I did it and the bug 1028087 does it
(In reply to Amir Nissim (Everything.me) from comment #8)
> Created attachment 8443391 [details]
> bug_1027005: WIP Population triggers
>
> hope this patch can help, it's something I did real quick and was not tested
Reporter | ||
Comment 10•11 years ago
|
||
(In reply to Cristian Rodriguez (:crdlc) from comment #9)
> Kevin told me that I did it and the bug 1028087 does it
Sorry Cristian, didn't know about that. I should have checked the bug before I worked on it :(
Anyway, I only handled the collection-app side so you can use my patch for native_info.js and objects.js. It's small and also handles the case collection is removed.
Thanks
Comment 11•11 years ago
|
||
Yes it will be very useful for who will do the collection part (collection install). The path is smoother for the last bug here :)
(In reply to Amir Nissim [on PTO until Jul 6] (:amirn) from comment #10)
> (In reply to Cristian Rodriguez (:crdlc) from comment #9)
> > Kevin told me that I did it and the bug 1028087 does it
>
> Sorry Cristian, didn't know about that. I should have checked the bug before
> I worked on it :(
>
> Anyway, I only handled the collection-app side so you can use my patch for
> native_info.js and objects.js. It's small and also handles the case
> collection is removed.
>
> Thanks
Assignee | ||
Comment 12•11 years ago
|
||
Cristian has taken the first part, and the harder one, in the dependent bug. I'm going to take this one to land the more simple install collections part.
Assignee: nobody → kgrandon
Status: NEW → ASSIGNED
Target Milestone: --- → 2.0 S4 (20june)
Assignee | ||
Comment 13•11 years ago
|
||
Assignee | ||
Comment 14•11 years ago
|
||
Comment on attachment 8443453 [details] [review]
Github pull request
Dale - this is one of the last FL blockers for 2.0, wondering if you could give it a review. There's two commits in it, but the first one already has an R+.
I'll work on an integration test for this next week.
Attachment #8443453 -
Flags: review?(dale)
Comment 15•11 years ago
|
||
Yeh I didnt have the background to write this without tests so it was gonna take a while longer, cheers for stealing, taking a look now
Comment 16•11 years ago
|
||
Comment on attachment 8443453 [details] [review]
Github pull request
Tested this out, works good for me
Attachment #8443453 -
Flags: review?(dale) → review+
Assignee | ||
Comment 17•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 18•11 years ago
|
||
Comment on attachment 8443453 [details] [review]
Github pull request
Needed for the vertical homescreen.
Attachment #8443453 -
Flags: approval-gaia-v2.0?(bbajaj)
Updated•11 years ago
|
Attachment #8443453 -
Flags: approval-gaia-v2.0?(bbajaj) → approval-gaia-v2.0+
Assignee | ||
Comment 19•11 years ago
|
||
Assignee | ||
Updated•11 years ago
|
status-b2g-v2.0:
--- → fixed
status-b2g-v2.1:
--- → fixed
Comment 20•11 years ago
|
||
Verified with Social Smart Collection:
* Populated when created Smart Collection => OK
* Populated when installed app from Market Place => NOK. See 1029009
* Removed when app is unistalled => OK
Status: RESOLVED → VERIFIED
Flags: needinfo?(jlorenzo)
Updated•11 years ago
|
Updated•11 years ago
|
Whiteboard: [systemsfe]
Updated•11 years ago
|
Flags: in-moztrap-
You need to log in
before you can comment on or make changes to this bug.
Description
•