Merge lp:~dandrader/qtmir/appRestart-lp1527737 into lp:qtmir
| Status: | Work in progress |
|---|---|
| Proposed branch: | lp:~dandrader/qtmir/appRestart-lp1527737 |
| Merge into: | lp:qtmir |
| Diff against target: |
472 lines (+271/-63) 7 files modified
src/modules/Unity/Application/application_manager.cpp (+81/-61) src/modules/Unity/Application/application_manager.h (+1/-1) src/modules/Unity/Application/taskcontroller.h (+5/-1) src/modules/Unity/Application/upstart/taskcontroller.cpp (+8/-0) src/modules/Unity/Application/upstart/taskcontroller.h (+2/-0) tests/framework/mock_task_controller.h (+1/-0) tests/modules/ApplicationManager/application_manager_test.cpp (+173/-0) |
| To merge this branch: | bzr merge lp:~dandrader/qtmir/appRestart-lp1527737 |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Michael Zanetti (community) | Abstain on 2016-07-04 | ||
| Unity8 CI Bot | continuous-integration | 2016-06-22 | Approve on 2016-06-28 |
| Michał Sawicz | 2016-06-22 | Needs Fixing on 2016-06-28 | |
| Nick Dedekind (community) | 2016-06-22 | Approve on 2016-06-22 | |
| Gerry Boland | 2016-06-22 | Pending | |
| PS Jenkins bot | continuous-integration | 2016-06-22 | Pending |
|
Review via email:
|
|||
This proposal supersedes a proposal from 2016-06-16.
Commit Message
Handle case where TaskController requests an application that is already closing
Happens when you quickly close an application and then tap on its icon in the dash
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?
Not applicable.
| Daniel d'Andrada (dandrader) wrote : | # |
| Unity8 CI Bot (unity8-ci-bot) wrote : | # |
FAILED: Continuous integration, rev:506
https:/
Executed test runs:
FAILURE: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
Click here to trigger a rebuild:
https:/
| Unity8 CI Bot (unity8-ci-bot) wrote : | # |
PASSED: Continuous integration, rev:506
https:/
Executed test runs:
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
Click here to trigger a rebuild:
https:/
| Nick Dedekind (nick-dedekind) wrote : | # |
small comments.
Otherwise logic looks fine and passes tests.
| Daniel d'Andrada (dandrader) wrote : | # |
On 22/06/2016 11:29, Nick Dedekind wrote:
>> +// std
>> >+#include <csignal>
> remove from application_
>
I tried, but it won't compile otherwise. It's needed for the
"raise(SIGSTOP);" line.
| Daniel d'Andrada (dandrader) wrote : | # |
On 22/06/2016 11:29, Nick Dedekind wrote:
>> + Application *application = findApplication
> bit of a optimization. move this to after the check for queued/closing apps.
>
Done.
| Nick Dedekind (nick-dedekind) 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.
| Michael Zanetti (mzanetti) wrote : | # |
Found a regression in Silo testing:
* Launch the telegram app
* Launch the gallery
* share a picture from the gallery to telegram
Expected: Telegram app focused
Actual: Focus stays in gallery
| Michał Sawicz (saviq) wrote : | # |
This breaks sharing to an already running app:
- start Telegram
- go to Gallery
- share to Telegram
- BREAKAGE (should focus Telegram, is back to gallery instead)
| Unity8 CI Bot (unity8-ci-bot) wrote : | # |
PASSED: Continuous integration, rev:522
https:/
Executed test runs:
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
Click here to trigger a rebuild:
https:/
- 523. By Daniel d'Andrada on 2016-06-28
-
Fix bad rebase on top of latest trunk
Code was still using the old, deprecated signal.
| Daniel d'Andrada (dandrader) wrote : | # |
> Found a regression in Silo testing:
>
> * Launch the telegram app
> * Launch the gallery
> * share a picture from the gallery to telegram
>
> Expected: Telegram app focused
> Actual: Focus stays in gallery
Fixed. It was caused by a bad rebase with latest trunk. The original branch was so old it was still using a deprecated signal.
| Unity8 CI Bot (unity8-ci-bot) wrote : | # |
PASSED: Continuous integration, rev:523
https:/
Executed test runs:
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
Click here to trigger a rebuild:
https:/
| Michael Zanetti (mzanetti) wrote : | # |
Ok. It fixes the regression it had. But tbh in my opinion it doesn't behave totally great for the actual bug it tries to fix. When I close an app and quickly try to relaunch it, I get a haptics feedback from the apps scope, but no splash screen appearing. Only after some seconds later starting the app starts working. But I see there's a TODO in the code for exactly this, so... At least it's not worse than having the splash screen "crashing" as we had it before.
| Albert Astals Cid (aacid) wrote : | # |
Text conflict in src/modules/
Text conflict in src/modules/
Text conflict in src/modules/
3 conflicts encountered.
Unmerged revisions
- 523. By Daniel d'Andrada on 2016-06-28
-
Fix bad rebase on top of latest trunk
Code was still using the old, deprecated signal.
- 522. By Daniel d'Andrada on 2016-06-22
-
Optimize code
- 521. By Daniel d'Andrada on 2016-06-22
-
Handle case where TaskController requests an application that is already closing
Happens when you quickly close an application and then tap on its icon in the dash

Fresh start. Rebased on top of latest trunk.