Merge lp:~cimi/unity8/fix-open-new-scope-from-tmp into lp:unity8
| Status: | Merged |
|---|---|
| Approved by: | Albert Astals Cid on 2015-02-16 |
| Approved revision: | 1563 |
| Merged at revision: | 1616 |
| Proposed branch: | lp:~cimi/unity8/fix-open-new-scope-from-tmp |
| Merge into: | lp:unity8 |
| Prerequisite: | lp:~aacid/unity8/testFor1316660 |
| Diff against target: |
420 lines (+130/-23) 14 files modified
debian/control (+2/-2) qml/Dash/Dash.qml (+6/-8) qml/Dash/DashContent.qml (+1/-2) tests/mocks/Unity/CMakeLists.txt (+1/-1) tests/mocks/Unity/fake_previewmodel.cpp (+15/-1) tests/mocks/Unity/fake_previewmodel.h (+7/-1) tests/mocks/Unity/fake_previewstack.cpp (+2/-2) tests/mocks/Unity/fake_previewstack.h (+3/-1) tests/mocks/Unity/fake_previewwidgetmodel.cpp (+1/-0) tests/mocks/Unity/fake_scope.cpp (+5/-5) tests/mocks/Unity/fake_scopes.cpp (+12/-0) tests/mocks/Unity/fake_scopes.h (+5/-0) tests/mocks/Unity/fake_scopesoverview.cpp (+1/-0) tests/qmltests/Dash/tst_Dash.qml (+69/-0) |
| To merge this branch: | bzr merge lp:~cimi/unity8/fix-open-new-scope-from-tmp |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| PS Jenkins bot | continuous-integration | 2015-02-12 | Needs Fixing on 2015-02-16 |
| Albert Astals Cid (community) | 2015-02-12 | Approve on 2015-02-16 | |
| Michał Sawicz | 2015-02-12 | Pending | |
|
Review via email:
|
|||
This proposal supersedes a proposal from 2015-02-04.
Commit Message
Fix temp scopes opening temp scopes, correctly close previously opened temp scope with its preview
Description of the Change
* Are there any related MPs required for this MP to build/function as expected? Please list.
https:/
https:/
* 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
| Andrea Cimitan (cimi) wrote : | # |
> I don't understand the MR, you're adding to fake_scopes three methods that you
> don't use
future proof, if we wanted to test those, since they added API for this branch
and you're removing the code in closeScopes that checks that the
> scope you closed is indeed a scope that was opened.
>
that code is broken... m_openScope is never updated
> Also what's the point of having the scopeThatOpened
> can simply use scopes.closeScope?
I can switch to that too... but didn't want to move far from the previous implementation
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1552
http://
Executed test runs:
UNSTABLE: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Albert Astals Cid (aacid) wrote : | # |
> > I don't understand the MR, you're adding to fake_scopes three methods that
> you
> > don't use
>
> future proof, if we wanted to test those, since they added API for this branch
Hmmm, no, the only added api for the branch is
Q_INVOKABLE void closeScope(
the others are private methods you'll never see
>
> and you're removing the code in closeScopes that checks that the
> > scope you closed is indeed a scope that was opened.
> >
> that code is broken... m_openScope is never updated
Broken where? after your changes? may be, then what about fixing it?
> > Also what's the point of having the scopeThatOpened
> you
> > can simply use scopes.closeScope?
>
> I can switch to that too... but didn't want to move far from the previous
> implementation
Well, you made Pawel to add this new method and now you're not using it?
Also, why are you using
dashTempScope
?
Can you please make it work with a click that calls activate in the scope and thus ends up in Scope::activate that emits openScope?
That way we're properly exercising all the parts of the code
| Michał Sawicz (saviq) wrote : | # |
You need to depend on the new unity-api version, bump the API requirement in tests/mocks/
| Albert Astals Cid (aacid) wrote : | # |
Please drop scopeThatOpened
| Albert Astals Cid (aacid) wrote : | # |
Seems like you don't need to store m_scopes in PreviewStack and you can just pass it down to the PreviewModel in the constructor, no?
| Albert Astals Cid (aacid) wrote : | # |
You have declared
unity:
but not implemented it, just kill it?
| Albert Astals Cid (aacid) wrote : | # |
Please mark closeScope in Scopes with override to mark it implements the declaration of the same function in the internface
| Andrea Cimitan (cimi) wrote : | # |
Done
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1557
No commit message was specified in the merge proposal. Click on the following link and set the commit message (if you want a jenkins rebuild you need to trigger it yourself):
https:/
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1558
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
| Albert Astals Cid (aacid) wrote : | # |
Can you please turn
if (!m_tempScopes.
m_tempScopes
}
into just
m_tempScopes
It's a QSet after all, inserting won't produce a duplicate anyway
| Albert Astals Cid (aacid) wrote : | # |
* Did you perform an exploratory manual test run of the code change and any related functionality?
Yes, bug is fixed
* Did CI run pass?
No the jenkins one because it needs new unity-api, ran locally and found nothing.
* Did you make sure that the branch does not contain spurious tags?
Yes
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1559
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
| Albert Astals Cid (aacid) wrote : | # |
Somehow i missed a qml test failure, testPreview segfaults, please fix
- 1563. By Andrea Cimitan on 2015-02-16
-
Fix testPreview
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1563
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://

I don't understand the MR, you're adding to fake_scopes three methods that you don't use and you're removing the code in closeScopes that checks that the scope you closed is indeed a scope that was opened.
Also what's the point of having the scopeThatOpened Scope variable now that you can simply use scopes.closeScope?