Merge lp:~josharenson/unity8/close-extra-panel-when-selected into lp:unity8

Proposed by Josh Arenson
Status: Merged
Approved by: Albert Astals Cid
Approved revision: 2354
Merged at revision: 2421
Proposed branch: lp:~josharenson/unity8/close-extra-panel-when-selected
Merge into: lp:unity8
Prerequisite: lp:~josharenson/unity8/fix-primary-filter-scrolling
Diff against target: 150 lines (+51/-0)
6 files modified
qml/Dash/Filters/FilterOptionSelector.qml (+4/-0)
qml/Dash/Filters/FilterWidgetFactory.qml (+8/-0)
qml/Dash/GenericScopeView.qml (+5/-0)
qml/Dash/PageHeaderExtraPanel.qml (+3/-0)
tests/mocks/Unity/fake_scope.cpp (+4/-0)
tests/qmltests/Dash/tst_Dash.qml (+27/-0)
To merge this branch: bzr merge lp:~josharenson/unity8/close-extra-panel-when-selected
Reviewer Review Type Date Requested Status
Albert Astals Cid (community) Approve
Unity8 CI Bot continuous-integration Needs Fixing
Review via email: mp+292562@code.launchpad.net

Commit message

Close the PageHeaderExtraPanel when a filter option is selected

Description of the change

 * Are there any related MPs required for this MP to build/function as expected? Please list.
Yes, ~josharenson/unity8/fix-primary-filter-scrolling which has already been merged into this branch.

 * 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, clean

 * 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?
Not sure if Albert already got approval for this or not...

To post a comment you must log in.
Revision history for this message
Albert Astals Cid (aacid) wrote :

Please use a different name + comment instead of " signal filterOptionSelected()" in the future we may use it for other "single selection" filters like a radio button,

Also a test would be nice.

review: Needs Fixing
Revision history for this message
Josh Arenson (josharenson) wrote :

Updated signal name and added a test

Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :

FAILED: Continuous integration, rev:2340
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/1089/
Executed test runs:
    UNSTABLE: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=vivid+overlay,testname=qmluitests.sh/640
    UNSTABLE: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=xenial+overlay,testname=qmluitests.sh/640
    FAILURE: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=phone-armhf,release=vivid+overlay,testname=autopilot.sh/640/console
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/1463
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=vivid+overlay/1429
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=xenial+overlay/1429
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1429
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1429/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/1429
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/1429/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1429
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1429/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/1429
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/1429/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/1429
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/1429/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/1429
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/1429/artifact/output/*zip*/output.zip

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

review: Needs Fixing (continuous-integration)
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :

FAILED: Continuous integration, rev:2342
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/1093/
Executed test runs:
    UNSTABLE: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=vivid+overlay,testname=qmluitests.sh/647
    UNSTABLE: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=xenial+overlay,testname=qmluitests.sh/647
    UNSTABLE: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=phone-armhf,release=vivid+overlay,testname=autopilot.sh/647
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/1470
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=vivid+overlay/1436
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=xenial+overlay/1436
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1436
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1436/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/1436
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/1436/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1436
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1436/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/1436
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/1436/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/1436
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/1436/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/1436
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/1436/artifact/output/*zip*/output.zip

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

review: Needs Fixing (continuous-integration)
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :

FAILED: Continuous integration, rev:2343
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/1095/
Executed test runs:
    UNSTABLE: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=vivid+overlay,testname=qmluitests.sh/649
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=xenial+overlay,testname=qmluitests.sh/649
    FAILURE: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=phone-armhf,release=vivid+overlay,testname=autopilot.sh/649/console
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/1472
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=vivid+overlay/1438
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=xenial+overlay/1438
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1438
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1438/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/1438
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/1438/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1438
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1438/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/1438
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/1438/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/1438
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/1438/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/1438
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/1438/artifact/output/*zip*/output.zip

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

review: Needs Fixing (continuous-integration)
Revision history for this message
Albert Astals Cid (aacid) wrote :

I don't think that "expandingItem.expanded = false" there is a good idea, for example, multi selector options or option selector filters that are in the filter "popup" should not behave like that.

review: Needs Fixing
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :

FAILED: Continuous integration, rev:2344
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/1104/
Executed test runs:
    UNSTABLE: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=vivid+overlay,testname=qmluitests.sh/657
    UNSTABLE: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=xenial+overlay,testname=qmluitests.sh/657
    FAILURE: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=phone-armhf,release=vivid+overlay,testname=autopilot.sh/657/console
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/1482
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=vivid+overlay/1447
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=xenial+overlay/1447
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1447
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1447/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/1447
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/1447/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1447
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1447/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/1447
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/1447/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/1447
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/1447/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/1447
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/1447/artifact/output/*zip*/output.zip

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

review: Needs Fixing (continuous-integration)
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :

FAILED: Continuous integration, rev:2345
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/1118/
Executed test runs:
    UNSTABLE: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=vivid+overlay,testname=qmluitests.sh/674
    UNSTABLE: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=xenial+overlay,testname=qmluitests.sh/674
    FAILURE: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=phone-armhf,release=vivid+overlay,testname=autopilot.sh/674/console
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/1502
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=vivid+overlay/1466
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=xenial+overlay/1466
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1466
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1466/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/1466
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/1466/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1466
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1466/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/1466
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/1466/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/1466
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/1466/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/1466
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/1466/artifact/output/*zip*/output.zip

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

review: Needs Fixing (continuous-integration)
2348. By Josh Arenson

merge trunk

Revision history for this message
Albert Astals Cid (aacid) wrote :

Instead of

dashContent.currentScope.setHasNavigation(false)

in the test can you do

switch_to_scope_that_has_no_navigation

?

This way when/if it fails it'll be easier to reproduce "manually" with make tryDashContent

review: Needs Information
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
2349. By Josh Arenson

merge prereq

Revision history for this message
Josh Arenson (josharenson) wrote :

Moved test, fixed conflicts, stripped tags

Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Albert Astals Cid (aacid) wrote :

Something went wrong with the merging?

Now it doesn't even compile :S

review: Needs Information
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
2350. By Josh Arenson

Merge trunk

Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
2351. By Josh Arenson

Rebase

Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
2352. By Josh Arenson

merge prereq

Revision history for this message
Josh Arenson (josharenson) wrote :

Untangled the disastrous merge situation. For real.

Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Daniel d'Andrada (dandrader) wrote :

"""
+ function test_navigationFilterPopupClosesWhenOptionSelected() {
"""

Did you use tab chars here?

2353. By Josh Arenson

Fix tab

Revision history for this message
Josh Arenson (josharenson) wrote :

> """
> + function test_navigationFilterPopupClosesWhenOptionSelected()
> {
> """
>
> Did you use tab chars here?

Thats what I get for copy pasting with gedit :-p. Fixing now.

Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :

FAILED: Continuous integration, rev:2353
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/1145/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=vivid+overlay,testname=qmluitests.sh/699
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=xenial+overlay,testname=qmluitests.sh/699
    FAILURE: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=phone-armhf,release=vivid+overlay,testname=autopilot.sh/699/console
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/1537
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=vivid+overlay/1497
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=xenial+overlay/1497
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1497
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1497/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/1497
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/1497/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1497
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1497/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/1497
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/1497/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/1497
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/1497/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/1497
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/1497/artifact/output/*zip*/output.zip

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

review: Needs Fixing (continuous-integration)
Revision history for this message
Albert Astals Cid (aacid) wrote :

Looks good now.

But to make it behave more like the real world we should have

http://paste.ubuntu.com/16316839/

on the mock plugin, so that actually when selecting a option the "navitgation block" shows up.

Can you add that to this MR? Or you prefer we do it in a separate one?

review: Needs Information
Revision history for this message
Josh Arenson (josharenson) wrote :

> Looks good now.
>
> But to make it behave more like the real world we should have
>
> http://paste.ubuntu.com/16316839/
>
> on the mock plugin, so that actually when selecting a option the "navitgation
> block" shows up.
>
> Can you add that to this MR? Or you prefer we do it in a separate one?

I'll add it. It isn't necessary for this branch, but it is a small change and its more correct.

2354. By Josh Arenson

Set the filterTag in the search box when one is selected

Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :

FAILED: Continuous integration, rev:2354
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/1162/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=vivid+overlay,testname=qmluitests.sh/712
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=xenial+overlay,testname=qmluitests.sh/712
    FAILURE: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=phone-armhf,release=vivid+overlay,testname=autopilot.sh/712/console
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/1555
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=vivid+overlay/1515
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=xenial+overlay/1515
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1515
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1515/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/1515
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/1515/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1515
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1515/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/1515
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/1515/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/1515
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/1515/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/1515
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/1515/artifact/output/*zip*/output.zip

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

review: Needs Fixing (continuous-integration)
Revision history for this message
Albert Astals Cid (aacid) wrote :

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

* Did CI run pass? If not, please explain why.
Yes, except broken autopilot

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'qml/Dash/Filters/FilterOptionSelector.qml'
--- qml/Dash/Filters/FilterOptionSelector.qml 2016-01-27 10:39:24 +0000
+++ qml/Dash/Filters/FilterOptionSelector.qml 2016-05-09 20:25:44 +0000
@@ -25,6 +25,8 @@
2525
26 implicitHeight: expandingItem.height26 implicitHeight: expandingItem.height
2727
28 signal filterSelected()
29
28 ListItems.Expandable {30 ListItems.Expandable {
29 id: expandingItem31 id: expandingItem
30 objectName: "expandingItem"32 objectName: "expandingItem"
@@ -67,6 +69,7 @@
67 width: parent.width69 width: parent.width
68 Repeater {70 Repeater {
69 model: widgetData.options71 model: widgetData.options
72 objectName: "optionsRepeater"
7073
71 ListItems.Standard {74 ListItems.Standard {
72 text: label75 text: label
@@ -83,6 +86,7 @@
8386
84 onClicked: {87 onClicked: {
85 widgetData.options.setChecked(index, !checked);88 widgetData.options.setChecked(index, !checked);
89 root.filterSelected()
86 }90 }
87 }91 }
88 }92 }
8993
=== modified file 'qml/Dash/Filters/FilterWidgetFactory.qml'
--- qml/Dash/Filters/FilterWidgetFactory.qml 2016-04-19 13:02:11 +0000
+++ qml/Dash/Filters/FilterWidgetFactory.qml 2016-05-09 20:25:44 +0000
@@ -31,6 +31,9 @@
31 //! Widget data, forwarded to the widget as is.31 //! Widget data, forwarded to the widget as is.
32 property var widgetData: null32 property var widgetData: null
3333
34 // Emitted iff filter type is FilterOptionSelector
35 signal singleSelectionFilterSelected()
36
34 implicitHeight: title.height + title.anchors.topMargin + loader.height37 implicitHeight: title.height + title.anchors.topMargin + loader.height
3538
36 Label {39 Label {
@@ -77,5 +80,10 @@
77 item.widgetId = Qt.binding(function() { return root.widgetId } )80 item.widgetId = Qt.binding(function() { return root.widgetId } )
78 item.widgetData = Qt.binding(function() { return root.widgetData } )81 item.widgetData = Qt.binding(function() { return root.widgetData } )
79 }82 }
83
84 Connections {
85 target: widgetType == Filters.OptionSelectorFilter ? loader.item : null
86 onFilterSelected: root.singleSelectionFilterSelected()
87 }
80 }88 }
81}89}
8290
=== modified file 'qml/Dash/GenericScopeView.qml'
--- qml/Dash/GenericScopeView.qml 2016-05-04 18:08:35 +0000
+++ qml/Dash/GenericScopeView.qml 2016-05-09 20:25:44 +0000
@@ -689,6 +689,11 @@
689 categoryView.pageHeader.closePopup();689 categoryView.pageHeader.closePopup();
690 categoryView.pageHeader.unfocus();690 categoryView.pageHeader.unfocus();
691 }691 }
692
693 onExtraPanelOptionSelected: {
694 categoryView.pageHeader.closePopup();
695 categoryView.pageHeader.unfocus();
696 }
692 }697 }
693 }698 }
694699
695700
=== modified file 'qml/Dash/PageHeaderExtraPanel.qml'
--- qml/Dash/PageHeaderExtraPanel.qml 2016-05-09 20:25:43 +0000
+++ qml/Dash/PageHeaderExtraPanel.qml 2016-05-09 20:25:44 +0000
@@ -36,6 +36,7 @@
3636
37 signal historyItemClicked(string text)37 signal historyItemClicked(string text)
38 signal dashNavigationLeafClicked()38 signal dashNavigationLeafClicked()
39 signal extraPanelOptionSelected()
3940
40 function resetNavigation() {41 function resetNavigation() {
41 dashNavigation.resetNavigation();42 dashNavigation.resetNavigation();
@@ -181,6 +182,8 @@
181 widgetId: filter ? filter.filterId : ""182 widgetId: filter ? filter.filterId : ""
182 widgetType: filter ? filter.filterType : -1183 widgetType: filter ? filter.filterType : -1
183 widgetData: filter184 widgetData: filter
185
186 onSingleSelectionFilterSelected: extraPanelOptionSelected()
184 }187 }
185 }188 }
186189
187190
=== modified file 'tests/mocks/Unity/fake_scope.cpp'
--- tests/mocks/Unity/fake_scope.cpp 2016-05-09 20:25:43 +0000
+++ tests/mocks/Unity/fake_scope.cpp 2016-05-09 20:25:44 +0000
@@ -52,6 +52,8 @@
52 m_primaryNavigationFilter = new FakeOptionSelectorFilter("OSF3", "PFTag", "Which food you like More", false, primaryNavigationFilterOptionLabels, this);52 m_primaryNavigationFilter = new FakeOptionSelectorFilter("OSF3", "PFTag", "Which food you like More", false, primaryNavigationFilterOptionLabels, this);
53 m_filters->addFakeFilters();53 m_filters->addFakeFilters();
54 connect(m_filters, &Filters::activeFiltersCountChanged, this, &Scope::activeFiltersCountChanged);54 connect(m_filters, &Filters::activeFiltersCountChanged, this, &Scope::activeFiltersCountChanged);
55 connect(m_primaryNavigationFilter, &FakeOptionSelectorFilter::isActiveChanged,
56 this, &unity::shell::scopes::ScopeInterface::primaryNavigationTagChanged);
55}57}
5658
57QString Scope::id() const59QString Scope::id() const
@@ -325,6 +327,8 @@
325327
326QString Scope::primaryNavigationTag() const328QString Scope::primaryNavigationTag() const
327{329{
330 if (m_hasPrimaryFilter && m_primaryNavigationFilter->isActive())
331 return m_primaryNavigationFilter->filterTag();
328 if (m_currentNavigationId == "root")332 if (m_currentNavigationId == "root")
329 return QString();333 return QString();
330 else334 else
331335
=== modified file 'tests/qmltests/Dash/tst_Dash.qml'
--- tests/qmltests/Dash/tst_Dash.qml 2016-05-09 20:25:43 +0000
+++ tests/qmltests/Dash/tst_Dash.qml 2016-05-09 20:25:44 +0000
@@ -146,6 +146,33 @@
146 tryCompare(categoryListView, "atYBeginning", true)146 tryCompare(categoryListView, "atYBeginning", true)
147 }147 }
148148
149 function test_navigationFilterPopupClosesWhenOptionSelected() {
150 dash.setCurrentScope("LongPrimaryNavigation")
151
152 var dashContentList = findChild(dashContent, "dashContentList")
153 var searchButton = findChild(dashContentList.currentItem, "search_button")
154 verify(searchButton)
155 var extraPanel = findChild(dashContentList.currentItem, "peExtraPanel")
156 verify(extraPanel)
157
158 var primaryFilter = findChild(extraPanel, "primaryFilter")
159 var expandingItem = findChild(primaryFilter, "expandingItem")
160 verify(expandingItem)
161 tryCompare(expandingItem, "expanded", false)
162
163 mouseClick(searchButton)
164 expandingItem.expanded = true
165 tryCompare(expandingItem, "expanded", true)
166 tryCompareFunction(function() { return expandingItem.height == expandingItem.expandedHeight; }, true);
167
168 var optionsRepeater = findChild(expandingItem, "optionsRepeater")
169 verify(optionsRepeater)
170 verify(optionsRepeater.itemAt(0))
171 tryCompare(optionsRepeater.itemAt(0), "visible", true)
172 mouseClick(optionsRepeater.itemAt(0))
173 tryCompare(expandingItem, "visible", false)
174 }
175
149 function test_manage_dash_clickscope_unfavoritable() {176 function test_manage_dash_clickscope_unfavoritable() {
150 // Show the manage dash177 // Show the manage dash
151 touchFlick(dash, dash.width / 2, dash.height - 1, dash.width / 2, units.gu(2));178 touchFlick(dash, dash.width / 2, dash.height - 1, dash.width / 2, units.gu(2));

Subscribers

People subscribed via source and target branches