Closed
Bug 847406
Opened 11 years ago
Closed 11 years ago
Refactor call log rendering algorithm
Categories
(Firefox OS Graveyard :: Gaia::Dialer, defect)
Firefox OS Graveyard
Gaia::Dialer
Tracking
(blocking-b2g:leo+, b2g18 verified)
People
(Reporter: ferjm, Assigned: alberto.pastor)
References
Details
Attachments
(2 files)
No description provided.
Updated•11 years ago
|
Assignee: nobody → fbsc
Comment 1•11 years ago
|
||
Hi Etienne! This is a proposal about the refactor in call-log. Could you take a first look? Thanks!
Attachment #737100 -
Flags: feedback?(etienne)
Flags: needinfo?(etienne)
Updated•11 years ago
|
Attachment #737100 -
Flags: feedback?(gtorodelvalle)
Reporter | ||
Comment 2•11 years ago
|
||
leo? based on https://bugzilla.mozilla.org/show_bug.cgi?id=857398#c7
blocking-b2g: --- → leo?
Comment 3•11 years ago
|
||
Fernando, can someone else pick up this work since Borja will focused on MMS for the next couple of weeks?
Flags: needinfo?(ferjmoreno)
Reporter | ||
Comment 4•11 years ago
|
||
If I am not wrong, Alberto is already working on this.
Assignee: fbsc → alberto.pastor
Flags: needinfo?(ferjmoreno)
Updated•11 years ago
|
Attachment #737100 -
Flags: feedback?(gtorodelvalle)
Attachment #737100 -
Flags: feedback?(etienne)
Comment 7•11 years ago
|
||
Also I suggest to use caching + visibility_monitor.js for all lists. That will make it way less expensive to render a big list and even for what is rendered the work will be done once.
Comment 8•11 years ago
|
||
I opened bug 865741 as a meta btw.
Updated•11 years ago
|
Target Milestone: --- → 1.1 QE1 (5may)
Updated•11 years ago
|
Target Milestone: 1.1 QE1 (5may) → ---
Comment 9•11 years ago
|
||
Alberto, can you provide current status on this bug?
Flags: needinfo?(alberto.pastor)
Assignee | ||
Comment 10•11 years ago
|
||
Hi there, I'm working right now on this. https://github.com/albertopq/gaia/tree/callog-refactor The only remaining thing is related to store the contacts info in the Call-log DB. Should be ready to be reviewed later today.
Flags: needinfo?(alberto.pastor)
Assignee | ||
Comment 11•11 years ago
|
||
Pointer to Github pull-request
Assignee | ||
Updated•11 years ago
|
Attachment #745231 -
Flags: review?(etienne)
Attachment #745231 -
Flags: feedback?(anygregor)
Assignee | ||
Comment 12•11 years ago
|
||
I finally didn't add the contacts part in this PR. Is almost ready, but given the complexity on cases when updating contacts, and the current performace, let's see if caching contacts is finally necessary. We will track that part on Bug 862385. You can check current results with 500 groups here: https://www.dropbox.com/s/7zuykfaveltcq0z/dialer.m4v I think this PR + Bug 847409 (Inifinite scrolling), could be enough, but let's check with the partners
Comment 13•11 years ago
|
||
Gorgeous! ;-)
Updated•11 years ago
|
Attachment #745231 -
Flags: feedback?(anygregor) → feedback+
Reporter | ||
Comment 14•11 years ago
|
||
Comment on attachment 745231 [details] Pointer to Github pull request: https://github.com/mozilla-b2g/gaia/pull/9545 Drive-by feedback and random nit picking. f- mostly because the DB schema and tests need to be updated with the new 'status' field. Thanks for working on this Alberto :) great job so far!
Attachment #745231 -
Flags: feedback-
Comment 15•11 years ago
|
||
Comment on attachment 745231 [details] Pointer to Github pull request: https://github.com/mozilla-b2g/gaia/pull/9545 Started commenting on github. FTR, even if I won't block on it: the choice of keeping the contacts out of the backend doesn't make much sense to me. The current contacts-related code paths are a complete mess and I was really hoping to clean these. And more generally not end up with 400 lines of rendering code after a _complete_ rewrite of the backend... That said, I'm both aware of the massive amount of work that went into the refactoring and the huge performance gain. So let's fix the issues reported on github and get this boost!
Attachment #745231 -
Flags: review?(etienne) → review-
Assignee | ||
Comment 16•11 years ago
|
||
I agree on storing the contact details in the backend if we re-check the info after rendering it, instead of relying on the oncontactchange event and the complex use cases we could find for updating the cache (or when the app is closed). We need to take in account the stage we are and being aware that minimize the risks is also a priority. That said, I already addressed the comments. :ferj is working in the remaining stuff regarding the DB (multientry id for the groupsStore). Hopefully tomorrow everything will be landeable. Thanks! (In reply to Etienne Segonzac (:etienne) from comment #15) > Comment on attachment 745231 [details] > Pointer to Github pull request: https://github.com/mozilla-b2g/gaia/pull/9545 > > Started commenting on github. > > FTR, even if I won't block on it: the choice of keeping the contacts out of > the backend doesn't make much sense to me. > The current contacts-related code paths are a complete mess and I was really > hoping to clean these. > > And more generally not end up with 400 lines of rendering code after a > _complete_ rewrite of the backend... > > That said, I'm both aware of the massive amount of work that went into the > refactoring and the huge performance gain. So let's fix the issues reported > on github and get this boost!
Assignee | ||
Updated•11 years ago
|
Assignee | ||
Updated•11 years ago
|
Attachment #745231 -
Flags: feedback- → feedback?
Assignee | ||
Updated•11 years ago
|
Attachment #745231 -
Flags: feedback? → feedback?(ferjmoreno)
Reporter | ||
Comment 17•11 years ago
|
||
Comment on attachment 745231 [details] Pointer to Github pull request: https://github.com/mozilla-b2g/gaia/pull/9545 Thanks Alberto! This looks great! I left just a few minor comments in the PR. I would really love to see the CallLogDBManager.deleteAll() method used in this PR, but it is ok if you want to do it as part of bug 860612.
Attachment #745231 -
Flags: feedback?(ferjmoreno) → feedback+
Assignee | ||
Updated•11 years ago
|
Attachment #745231 -
Flags: review- → review?(etienne)
Comment 18•11 years ago
|
||
Comment on attachment 745231 [details] Pointer to Github pull request: https://github.com/mozilla-b2g/gaia/pull/9545 Comments on github, ping me when it's ready!
Attachment #745231 -
Flags: review?(etienne)
Comment 19•11 years ago
|
||
Comment on attachment 745231 [details] Pointer to Github pull request: https://github.com/mozilla-b2g/gaia/pull/9545 Thanks for all the work! r=me (c44b7cd06fb6e3ef196ad2a2cf8c5d72fe1403fd) We still need: - to squash the commits - to make sure we have a nice QA round on this before uplifiting - to open a bug for the proper contact caching
Attachment #745231 -
Flags: review+
Assignee | ||
Comment 20•11 years ago
|
||
Thanks etienne for the hard review! - commits squashed - I don't know who in QA could help us with this, but I'll find out - The caching contacts par will be tracked in Bug 862385 https://github.com/mozilla-b2g/gaia/commit/a6bd75d7c26c1589cd8b6d2ea4859cde0b636cba
Assignee | ||
Updated•11 years ago
|
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Comment 21•11 years ago
|
||
+1!!!
Comment 22•11 years ago
|
||
I was not able to uplift this bug to v1-train. If this bug has dependencies which are not marked in this bug, please comment on this bug. If this bug depends on patches that aren't approved for v1-train, we need to re-evaluate the approval. Otherwise, if this is just a merge conflict, you might be able to resolve it with: git checkout v1-train git cherry-pick -x -m1 a6bd75d7c26c1589cd8b6d2ea4859cde0b636cba <RESOLVE MERGE CONFLICTS> git commit
Updated•11 years ago
|
status-b2g18:
--- → affected
Comment 23•11 years ago
|
||
Flagging Naoki for a QA check as discussed during the gaia weekly meeting.
Flags: needinfo?(nhirata.bugzilla)
Updated•11 years ago
|
There is only one bug that I definitely could say is due to this code change: Bug 874671 - First time going into the call log after reboot or reopening the dialer app doesn't show focus on All. Here are the list of other bugs that I ran across: New bugs: Bug 874665 - getting a call from a phone that gets interrupted via the telecom, will leave the b2g phone in a wierd pick up state bug 874639 If you have the same number for 2 different contacts, dialer will always connect you through the last created contact. bug 874568 Crash occurs w/ MC when getting hung up right after answering a call. Bug 874668 - Phone does not wake by itself when receiving a call Old Bugs : bug 857484 Proximity sensor does not work on Ikura bug 868207 Bug 834530 - Emergency dialer DTMF tones aren't regulated by the volume button (and are different volume from Dialer App's DTMF tones) Bug 855040 - [Crash Reporter] Crash reporter is not sending system crashes after b2g restart itself. There's some instability and I would not like to push this to v1.1 just yet until we figure out what's causing some of the crashing... it looks like several different crashes, 1 of which is graphic related.
Flags: needinfo?(nhirata.bugzilla)
There looks like some more changes to the dialer that landed today, so I will have to check tomorrow's build as well.
Comment 26•11 years ago
|
||
Naoki, do you have time to re-evaluate this today?
Flags: needinfo?(nhirata.bugzilla)
QA Contact: nhirata.bugzilla
Comment 28•11 years ago
|
||
No, it's just on master. We have asked Naoki to do some testing & validation there before uplifting to v1-train.
Flags: needinfo?(alberto.pastor)
I found a new bug: bug 875581 I'm still in the midst of testing, but that's enough to block it from landing on v1-train.
Flags: needinfo?(nhirata.bugzilla)
Turns out that the bug I found isn't related, it happened just recently. There's still some crashing w/ the phone, though I heard it was more gecko related than the changes here. Please let me know as soon as this lands in v1-train so I can do further testing.
Assignee | ||
Comment 31•11 years ago
|
||
v1-train: e94cfe9923e550b17ed4acca3c3b90aa1493f8ce
Marking as verified: Had to build my own build for gaia. Gecko http://hg.mozilla.org/releases/mozilla-b2g18/rev/762354023009 Gaia 4d10e1297b859cacc174c0a54af61a7678d7c32d BuildID 20130522070207 Version 18.0 Ran into : https://bugzilla.mozilla.org/show_bug.cgi?id=875901 https://bugzilla.mozilla.org/show_bug.cgi?id=875913 https://bugzilla.mozilla.org/show_bug.cgi?id=875920 I think this needs to be push to b2g18: https://bugzilla.mozilla.org/show_bug.cgi?id=875227 No crashing occured. Looks like the crashing is master related.
Status: RESOLVED → VERIFIED
Updated•11 years ago
|
Flags: in-moztrap?
Updated•11 years ago
|
Flags: in-moztrap? → in-moztrap-
You need to log in
before you can comment on or make changes to this bug.
Description
•