Merge lp:~aacid/unity8/createQmlObjectDifferentFile into lp:unity8

Proposed by Albert Astals Cid
Status: Merged
Approved by: Michał Sawicz
Approved revision: 2137
Merged at revision: 2162
Proposed branch: lp:~aacid/unity8/createQmlObjectDifferentFile
Merge into: lp:unity8
Diff against target: 34 lines (+3/-3)
2 files modified
plugins/Dash/CardCreator.js (+2/-2)
plugins/Dash/CardCreatorCache.qml (+1/-1)
To merge this branch: bzr merge lp:~aacid/unity8/createQmlObjectDifferentFile
Reviewer Review Type Date Requested Status
Michał Sawicz Approve
PS Jenkins bot (community) continuous-integration Needs Fixing
Unity8 CI Bot continuous-integration Needs Fixing
Review via email: mp+283528@code.launchpad.net

Commit message

Do not use the same filepath parameter for all the card creator createQmlObject calls

Seems that something deep down in Qt is deciding that if the filepath is the same the qmlcomponent has to be the same and we get weird errors like the fallback of one category showing up at the fallback of other

Description of the change

 * Are there any related MPs required for this MP to build/function as expected?
No

 * Did you perform an exploratory manual test run of your code change and any related functionality?
Yes

 * Did you make sure that your branch does not contain spurious tags?
Yes

 * If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
N/A

 * If you changed the UI, has there been a design review?
N/A

To post a comment you must log in.
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :

FAILED: Continuous integration, rev:2137
https://unity8-jenkins.ubuntu.com/job/lp-unity8-1-ci/164/
Executed test runs:

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-unity8-1-ci/164/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:2137
http://jenkins.qa.ubuntu.com/job/unity8-ci/7125/
Executed test runs:
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-vivid-touch/6124
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-xenial-touch/540/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity-phablet-qmluitests-vivid/1830
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/unity8-qmluitest-xenial-amd64/533
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-amd64-ci/1725
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-i386-ci/1725
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-xenial-amd64-ci/532
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-xenial-i386-ci/531
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-vivid-touch/4726
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/6135
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/6135/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/26897
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-xenial-touch/276/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-xenial-armhf/538
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-xenial-armhf/538/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/26900

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/unity8-ci/7125/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Michał Sawicz (saviq) wrote :

 * Did you perform an exploratory manual test run of the code change and any related functionality?
Will do in silo.
 * Did CI run pass? If not, please explain why.
As much as they could
 * Did you make sure that the branch does not contain spurious tags?
Y

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'plugins/Dash/CardCreator.js'
2--- plugins/Dash/CardCreator.js 2015-12-18 15:48:32 +0000
3+++ plugins/Dash/CardCreator.js 2016-01-21 18:07:14 +0000
4@@ -801,7 +801,7 @@
5 return code;
6 }
7
8-function createCardComponent(parent, template, components) {
9+function createCardComponent(parent, template, components, identifier) {
10 var imports = 'import QtQuick 2.4; \n\
11 import Ubuntu.Components 1.3; \n\
12 import Ubuntu.Settings.Components 0.1; \n\
13@@ -811,7 +811,7 @@
14 var code = imports + 'Component {\n' + card + '}\n';
15
16 try {
17- return Qt.createQmlObject(code, parent, "createCardComponent");
18+ return Qt.createQmlObject(code, parent, identifier);
19 } catch (e) {
20 console.error("ERROR: Invalid component created.");
21 console.error("Template:");
22
23=== modified file 'plugins/Dash/CardCreatorCache.qml'
24--- plugins/Dash/CardCreatorCache.qml 2015-07-15 15:07:19 +0000
25+++ plugins/Dash/CardCreatorCache.qml 2016-01-21 18:07:14 +0000
26@@ -32,7 +32,7 @@
27 var allString = tString + cString;
28 var component = cache[allString];
29 if (component === undefined) {
30- component = CardCreator.createCardComponent(root, template, components);
31+ component = CardCreator.createCardComponent(root, template, components, allString);
32 cache[allString] = component;
33 }
34 return component;

Subscribers

People subscribed via source and target branches