Closed
Bug 843163
Opened 12 years ago
Closed 12 years ago
[SMS] Split 'sms.js' in some files for getting a better architecture
Categories
(Firefox OS Graveyard :: Gaia::SMS, defect)
Tracking
(blocking-b2g:tef+, b2g18 verified, b2g18-v1.0.1 verified)
VERIFIED
FIXED
blocking-b2g | tef+ |
People
(Reporter: borjasalguero, Assigned: borjasalguero)
References
Details
Attachments
(1 file, 1 obsolete file)
224 bytes,
text/html
|
julienw
:
review+
lsblakk
:
approval-gaia-v1+
|
Details |
Having all the code in one file makes the code hard to read and maintain.
Assignee | ||
Updated•12 years ago
|
Assignee: nobody → fbsc
Comment 1•12 years ago
|
||
3 files will be enough ;)
The best would be to have MessageManager expose observer methods so that it doesn't call ThreadUI and ThreadListUI directly. This should be quite easy and wouold make MessageManager quite easy to test.
Obviously ThreadUI and ThreadListUI are a lot interdependant now but I think we can try to find the places where each object call the other and try to reduce these cases a lot.
Assignee | ||
Comment 2•12 years ago
|
||
Im creating the structure now, I will come with a proposal asap! ;)
Assignee | ||
Comment 3•12 years ago
|
||
Attachment #717008 -
Flags: review?(felash)
Comment 4•12 years ago
|
||
Comment on attachment 717008 [details]
Pull Request
feedback+ of course.
some other small changes needed and I think we'll be good.
Just need to take care that you have all the changes that landed, maybe use a diff tool before landing to check that.
Attachment #717008 -
Flags: review?(felash) → feedback+
Assignee | ||
Comment 5•12 years ago
|
||
I've added your suggestions to the bug. Adding you as a reviewer!
Assignee | ||
Updated•12 years ago
|
Attachment #717008 -
Flags: review?(felash)
Assignee | ||
Comment 6•12 years ago
|
||
Attachment #717008 -
Attachment is obsolete: true
Attachment #717008 -
Flags: review?(felash)
Attachment #718347 -
Flags: review?(felash)
Comment 7•12 years ago
|
||
Comment on attachment 718347 [details]
Patch rebased
r=me
we'll handle the discussion points in future bugs.
Attachment #718347 -
Flags: review?(felash) → review+
Assignee | ||
Updated•12 years ago
|
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 8•12 years ago
|
||
Assignee | ||
Comment 9•12 years ago
|
||
Comment on attachment 718347 [details]
Patch rebased
NOTE: Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to better understand the B2G approval process and landings.
[Approval Request Comment]
Bug caused by (feature/regressing bug #): We have a not clear JS files structure.
User impact if declined: Dev-Team needs to have a clear JS structure for changes coming and for debug current code. This change it's needed as well for adding performance stuff defined by bug 844770
Testing completed:
Risk to taking this patch (and alternatives if risky): Low. We have move the code to several JS files only.
String or UUID changes made by this patch:
Attachment #718347 -
Flags: approval-gaia-v1?
Comment 10•12 years ago
|
||
Do we have a way of knowing if any apps or calls to sms.js will be aware of this change and call the new file locations?
Assignee | ||
Comment 11•12 years ago
|
||
This change should not affect to other apps. Entry point it's the same (startup.js). It's only splitting the same code into several files. That's all! ;)
Comment 12•12 years ago
|
||
Lukas> If that's what worries you, we kept the same JS object names, the same activities, the same message handlers.
Comment 13•12 years ago
|
||
Comment on attachment 718347 [details]
Patch rebased
Thanks for clarifying, go ahead with uplift to v1-train.
Attachment #718347 -
Flags: approval-gaia-v1? → approval-gaia-v1+
Comment 14•12 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 74cee2b2ca39fe9ba96c17f36664b4b8296cbaa8
<RESOLVE MERGE CONFLICTS>
git commit
Assignee | ||
Comment 15•12 years ago
|
||
Hi John,
I've checked that the problem comes from this one https://bugzilla.mozilla.org/show_bug.cgi?id=841353, and I dont know if it should be uplifted to v1-train because I was not the reviewer and that patch makes a lot of changes in several apps. On the other hand the conflict it's only in 'index.html', so it should be easy to fix.
Comment 16•12 years ago
|
||
it seems Bug 841353 should be uplifted but it has a conflict as well. I'll take a look today.
Comment 17•12 years ago
|
||
A chain of conflicts leads to Bug 837267, where I asked for approval.
Comment 18•12 years ago
|
||
John, the cherry-pick works after the uplift for Bug 842315 is done.
Comment 19•12 years ago
|
||
Required for uplifting SMS performance improvement (bug 844770)
blocking-b2g: --- → tef+
Updated•12 years ago
|
status-b2g18-v1.0.1:
--- → affected
Updated•12 years ago
|
status-b2g18:
--- → affected
Comment 20•12 years ago
|
||
v1-train: 50f3262
Because bug 842315 is not yet on v1.0.1, this bug is waiting on that bug to be resolved before it can be landed on v1.0.1
Comment 21•12 years ago
|
||
The uplift of this broke v1-train, please don't uplift to v1.0.1 until I sort this out.
Comment 22•12 years ago
|
||
Seems like Bug 845278 is the culprit here :)
Comment 23•12 years ago
|
||
ok, this is fine to uplift along with Bug 845278. Should we wait for Bug 845278 to get tef+ or should we go ahead assuming it is automatic ?
Comment 24•12 years ago
|
||
Borja, could you help uplifting this to v1.0.1 please ?
This is needed for Bug 844770 and I don't want to screw the app.
Flags: needinfo?(fbsc)
Comment 25•12 years ago
|
||
Borja, have you tried doing this uplift ?
Assignee | ||
Comment 26•12 years ago
|
||
Working on it now. I will push the commit asap.
Flags: needinfo?(fbsc)
Comment 27•12 years ago
|
||
I'm actually wondering if this is safe to do that now. I believe we're quite happy with the current performance for v1.0.1...
My advice would be to keep Sms just as it is now in v1.0.1, and requalify all perf tef+ not yet landed to leo+. What do you think ?
Flags: needinfo?(mvines)
Assignee | ||
Comment 28•12 years ago
|
||
Assignee | ||
Updated•12 years ago
|
Assignee | ||
Comment 29•12 years ago
|
||
After checking I've realized that was uplifted to v1-train as well. Fixed.
Comment 30•12 years ago
|
||
Has this really been fixed on v1.0.1? What's the commit?
Flags: needinfo?(mvines)
Assignee | ||
Comment 31•12 years ago
|
||
Comment 32•12 years ago
|
||
Can you please provide steps to verify this fix - as we will blackbox test from the UI? Thanks.
Assignee | ||
Comment 33•12 years ago
|
||
Hi. This fix has no impact in UI. For testing the whole patch, you should apply as well bugs 844770 & 845278 and you will see that the loading time is better than before ;)
Comment 34•12 years ago
|
||
The only thing to verify here is that the Sms app still works correctly.
Comment 35•12 years ago
|
||
(In reply to Julien Wajsberg [:julienw] from comment #34)
> The only thing to verify here is that the Sms app still works correctly.
Verified fixed the following:
sms "works correctly" as far as the ability to send and receive text messages.
Verified on the following Unagi v1 and v101 builds:
Unagi Build ID: 20130327070202
Kernel Date: Dec 5
Gecko: http://hg.mozilla.org/releases/mozilla-b2g18/rev/879324d41588
Gaia: e7e7c1a473b4069544f2dad779b1c9b1bab91663
Unagi Build ID: 20130327153857
Kernel Date: Dec 5
Gecko: http://hg.mozilla.org/releases/mozilla-b2g18_v1_0_1/rev/4931ec89ebbe
Gaia: d40dcdd112f12e2a5a0d1de46451670918fd4369
You need to log in
before you can comment on or make changes to this bug.
Description
•