Closed
Bug 929572
Opened 11 years ago
Closed 11 years ago
When building a customized grid into a build, if the grid isn't valid, report a build error
Categories
(Firefox OS Graveyard :: Gaia::Homescreen, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: jsmith, Assigned: albert)
References
Details
(Whiteboard: [systemsfe])
Attachments
(1 file, 1 obsolete file)
Motivation - https://bugzilla.mozilla.org/show_bug.cgi?id=927973#c7 We need to fire build errors in the case when the homescreen grid isn't valid in a customization given in a distribution directory.
Reporter | ||
Updated•11 years ago
|
Whiteboard: [systemsfe]
Comment 1•11 years ago
|
||
Can you take a look at this, Albert?
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → acperez
Assignee | ||
Comment 2•11 years ago
|
||
Attachment #821705 -
Flags: review?(yurenju.mozilla)
Assignee | ||
Comment 3•11 years ago
|
||
There is an important thing to keep in mind, is not possible to know at build time the max number of applications that can be accommodated per screen. Apps per screen is a dynamic value, at a runtime apps per screen is fixed to 16 in normal devices, 15 in tablets and then, depending on the scree size, it can be incremented. For this reason the patch will launch a warning is one screen has more than 16 apps but an exception.
Assignee | ||
Updated•11 years ago
|
Attachment #821705 -
Flags: feedback?(salva)
Assignee | ||
Comment 4•11 years ago
|
||
For testing: - Clone https://github.com/acperez/firefoxos-gaia-testsbuild - Launch GAIA_DISTRIBUTION_DIR=/path/to/firefox-gaia-testsbuild make reset-gaia
Comment 5•11 years ago
|
||
Albert, John is rewriting variant.py in javascript on bug 921417 and I thought the progress is good to review in this week, so we should wait that commit landed and fix this issue in javascirpt version. Is it okay to you?
Flags: needinfo?(acperez)
Assignee | ||
Comment 6•11 years ago
|
||
(In reply to Yuren Ju [:yurenju] from comment #5) > Albert, > > John is rewriting variant.py in javascript on bug 921417 and I thought the > progress is good to review in this week, so we should wait that commit > landed and fix this issue in javascirpt version. > > Is it okay to you? Yes, it's fine
Flags: needinfo?(acperez)
Assignee | ||
Updated•11 years ago
|
Attachment #821705 -
Flags: review?(yurenju.mozilla)
Attachment #821705 -
Flags: feedback?(salva)
Assignee | ||
Updated•11 years ago
|
Assignee: acperez → nobody
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → acperez
Assignee | ||
Comment 7•11 years ago
|
||
Javascript version
Attachment #821705 -
Attachment is obsolete: true
Attachment #827034 -
Flags: review?(yurenju.mozilla)
Attachment #827034 -
Flags: review?(johu)
Comment 8•11 years ago
|
||
Comment on attachment 827034 [details]
Patch
Thanks for this patch.
I give it r- because a logic error in the code which makes qa-test-case not pass, please find them in github.
There is another thing I am not sure: what should we do when app.location is too large and no more wildcard apps?? In this patch, we throw an error. But I feel in this kind of case, the homescreen will append this app at the last.
Attachment #827034 -
Flags: review?(johu) → review-
Comment 9•11 years ago
|
||
(In reply to John Hu [:johnhu] from comment #8) > There is another thing I am not sure: what should we do when app.location is > too large and no more wildcard apps?? In this patch, we throw an error. But > I feel in this kind of case, the homescreen will append this app at the last. I think that was exactly the intent for this patch: to throw an error when the configuration specifies a grid that we cannot satisfy exactly, instead of just creating an approximated but incorrect (incorrect meaning not exactly the specified one) grid. So when a grid is specified that would create gaps (ie, the location is too big) then we should fail, which is what this patch does. Flagging Jason just in case we understood the intent of the bug incorrectly.
Flags: needinfo?(jsmith)
Assignee | ||
Comment 10•11 years ago
|
||
Comment on attachment 827034 [details]
Patch
Changes from github comments
Attachment #827034 -
Flags: review- → review?(johu)
Reporter | ||
Comment 11•11 years ago
|
||
(In reply to Antonio Manuel Amaya Calvo (:amac) from comment #9) > (In reply to John Hu [:johnhu] from comment #8) > > There is another thing I am not sure: what should we do when app.location is > > too large and no more wildcard apps?? In this patch, we throw an error. But > > I feel in this kind of case, the homescreen will append this app at the last. > I think that was exactly the intent for this patch: to throw an error when > the configuration specifies a grid that we cannot satisfy exactly, instead > of just creating an approximated but incorrect (incorrect meaning not > exactly the specified one) grid. > > So when a grid is specified that would create gaps (ie, the location is too > big) then we should fail, which is what this patch does. Flagging Jason just > in case we understood the intent of the bug incorrectly. Yup, that sounds right.
Flags: needinfo?(jsmith)
Comment 12•11 years ago
|
||
Comment on attachment 827034 [details]
Patch
Nice patch. I think it's ok to land. Please find my latest small suggestion in the github.
Attachment #827034 -
Flags: review?(johu) → review+
Comment 13•11 years ago
|
||
Comment on attachment 827034 [details] Patch Albert, I left some comments on github, please set review flag to me again if you fix it. the major issue is accessing init.json which may not exists if use variant.js in customization tool on bug 897325.
Attachment #827034 -
Flags: review?(yurenju.mozilla)
Assignee | ||
Comment 14•11 years ago
|
||
Comment on attachment 827034 [details] Patch Changes from comment 13
Attachment #827034 -
Flags: review+ → review?(yurenju.mozilla)
Comment 15•11 years ago
|
||
Comment on attachment 827034 [details]
Patch
Okay looks good, thank you!
Attachment #827034 -
Flags: review?(yurenju.mozilla) → review+
Comment 16•11 years ago
|
||
don't forget remove that two more 'n' :)
Assignee | ||
Comment 17•11 years ago
|
||
(In reply to Yuren Ju [:yurenju] from comment #16) > don't forget remove that two more 'n' :) Ouch! I forgot the filename I was using for testing... fixed. Thanks!
Assignee | ||
Comment 18•11 years ago
|
||
Master: https://github.com/mozilla-b2g/gaia/commit/de5b918f61a7823fbbdfa48b8bc3cbc1765dc2a4
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•