Merge lp:~unity-team/unity8/no-search-on-preview into lp:unity8

Proposed by Michał Sawicz
Status: Merged
Approved by: Michael Zanetti
Approved revision: 755
Merged at revision: 765
Proposed branch: lp:~unity-team/unity8/no-search-on-preview
Merge into: lp:unity8
Diff against target: 69 lines (+19/-1)
4 files modified
qml/Dash/Dash.qml (+1/-0)
qml/Dash/DashContent.qml (+1/-0)
qml/Shell.qml (+1/-1)
tests/qmltests/tst_Shell.qml (+16/-0)
To merge this branch: bzr merge lp:~unity-team/unity8/no-search-on-preview
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Needs Fixing
Michael Zanetti (community) Approve
Review via email: mp+209638@code.launchpad.net

Commit message

Only allow searching when preview isn't open.

Description of the change

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

 * Did you perform an exploratory manual test run of your code change and any related functionality?
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
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:754
http://jenkins.qa.ubuntu.com/job/unity8-ci/2440/
Executed test runs:
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-trusty/3707
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-trusty-touch/3298/console
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/unity-phablet-qmluitests-trusty/1310
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-trusty-amd64-ci/961
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-trusty-armhf-ci/965
        deb: http://jenkins.qa.ubuntu.com/job/unity8-trusty-armhf-ci/965/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-trusty-i386-ci/961
    SUCCESS: http://jenkins.qa.ubuntu.com/job/autopilot-testrunner-otto-trusty/3257
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-amd64/3712
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-amd64/3712/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-armhf/3300
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-armhf/3300/artifact/work/output/*zip*/output.zip
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-runner-mako/5670/console
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/4521

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

review: Needs Fixing (continuous-integration)
755. By Michał Sawicz

Fix cleanup().

Revision history for this message
Michael Zanetti (mzanetti) wrote :

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

Yes, works fine.

 * Did CI run pass? If not, please explain why.

no. "NoSuchProcess: no process found" seems to be caused by a known crash with Qt 5.0 and should go away when we move to 5.2

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:755
http://jenkins.qa.ubuntu.com/job/unity8-ci/2443/
Executed test runs:
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-trusty/3714
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-trusty-touch/3305/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity-phablet-qmluitests-trusty/1313
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-trusty-amd64-ci/964
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-trusty-armhf-ci/968
        deb: http://jenkins.qa.ubuntu.com/job/unity8-trusty-armhf-ci/968/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-trusty-i386-ci/964
    SUCCESS: http://jenkins.qa.ubuntu.com/job/autopilot-testrunner-otto-trusty/3264
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-amd64/3719
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-amd64/3719/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-armhf/3307
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-armhf/3307/artifact/work/output/*zip*/output.zip
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-runner-mako/5676/console
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/4528

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

review: Needs Fixing (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'qml/Dash/Dash.qml'
2--- qml/Dash/Dash.qml 2014-02-18 11:54:25 +0000
3+++ qml/Dash/Dash.qml 2014-03-06 12:04:17 +0000
4@@ -27,6 +27,7 @@
5 visible: shown
6
7 property ListModel searchHistory: SearchHistoryModel {}
8+ property bool searchable: !dashContent.previewOpen
9
10 property string showScopeOnLoaded: "home.scope"
11 property real contentScale: 1.0
12
13=== modified file 'qml/Dash/DashContent.qml'
14--- qml/Dash/DashContent.qml 2014-02-18 11:54:25 +0000
15+++ qml/Dash/DashContent.qml 2014-03-06 12:04:17 +0000
16@@ -25,6 +25,7 @@
17 property var model: null
18 property var scopes: null
19 property alias currentIndex: dashContentList.currentIndex
20+ property alias previewOpen: previewListView.open
21
22 property ScopeDelegateMapper scopeMapper : ScopeDelegateMapper {}
23 property ListModel searchHistory
24
25=== modified file 'qml/Shell.qml'
26--- qml/Shell.qml 2014-03-04 11:42:38 +0000
27+++ qml/Shell.qml 2014-03-06 12:04:17 +0000
28@@ -594,7 +594,7 @@
29 contentEnabled: edgeDemo.panelContentEnabled
30 }
31 fullscreenMode: shell.fullscreenMode
32- searchVisible: !greeter.shown && !lockscreen.shown && dash.shown
33+ searchVisible: !greeter.shown && !lockscreen.shown && dash.shown && dash.searchable
34
35 InputFilterArea {
36 anchors {
37
38=== modified file 'tests/qmltests/tst_Shell.qml'
39--- tests/qmltests/tst_Shell.qml 2014-01-16 12:37:57 +0000
40+++ tests/qmltests/tst_Shell.qml 2014-03-06 12:04:17 +0000
41@@ -110,6 +110,9 @@
42 swipeUntilScopeViewIsReached(dashHome);
43
44 hideIndicators();
45+
46+ var dashContent = findChild(shell, "dashContent");
47+ dashContent.previewOpen = false;
48 }
49
50 function killApps(apps) {
51@@ -549,5 +552,18 @@
52 tryCompare(greeter, "shown", true)
53 tryCompare(searchIndicator, "opacity", 0)
54 }
55+
56+ function test_searchIndicatorHideOnPreviewShown() {
57+ var searchIndicator = findChild(shell, "container");
58+ var dashContent = findChild(shell, "dashContent");
59+
60+ verify(dashContent != null);
61+
62+ tryCompare(searchIndicator, "opacity", 1);
63+
64+ dashContent.previewOpen = true;
65+
66+ tryCompare(searchIndicator, "opacity", 0);
67+ }
68 }
69 }

Subscribers

People subscribed via source and target branches