Merge lp://qastaging/~mhr3/libunity/remote-scope-fixes into lp://qastaging/libunity

Proposed by Michal Hruby
Status: Merged
Approved by: Didier Roche-Tolomelli
Approved revision: 138
Merged at revision: 135
Proposed branch: lp://qastaging/~mhr3/libunity/remote-scope-fixes
Merge into: lp://qastaging/libunity
Diff against target: 201 lines (+73/-19)
5 files modified
src/unity-lens-private.vala (+8/-2)
src/unity-lens-tools.vala (+17/-2)
src/unity-scope-interface.vala (+6/-4)
src/unity-scope-private.vala (+5/-5)
src/unity-scope-proxy-remote.vala (+37/-6)
To merge this branch: bzr merge lp://qastaging/~mhr3/libunity/remote-scope-fixes
Reviewer Review Type Date Requested Status
Mikkel Kamstrup Erlandsen (community) Approve
Review via email: mp+102490@code.qastaging.launchpad.net

Commit message

Restart crashed remote scopes and fix a couple of warnings when they do crash

Description of the change

There were a couple of issues with remote scopes:

1) We didn't restart them if they crashed
2) After the scope disappeared we tried to manipulate a filter model that was unreferenced
3) ScopeError was not registered as dbus error on first call to search/global_search

These issues caused warnings when a remote scope was killed and they are gone after applying these fixes.

To post a comment you must log in.
Revision history for this message
Mikkel Kamstrup Erlandsen (kamstrup) wrote :

Looks sensible. I am not sure if this is something we should test. Or I mean, we should, but if it's worth the (considerable) effort...

Revision history for this message
Michal Hruby (mhr3) wrote :

Yes, although we have tests where there's a lens and a remote scope talking to it, it's not registered as proper dbus service, so it can't be autostarted if it was killed. FWIW I tested all of this manually and the scopes restart now and warnings are gone, plus the changes don't touch any critical code paths for it to cause regressions.

Revision history for this message
Mikkel Kamstrup Erlandsen (kamstrup) wrote :

Agreed. I took another detailed review of the code and I agree that it looks both correct and safe.

review: Approve
Revision history for this message
Unity Merger (unity-merger) wrote :

The Jenkins job https://jenkins.qa.ubuntu.com/job/automerge-libunity/117/console reported an error when processing this lp:~mhr3/libunity/remote-scope-fixes branch.
Not merging it.

Revision history for this message
Unity Merger (unity-merger) wrote :

The Jenkins job https://jenkins.qa.ubuntu.com/job/automerge-libunity/118/console reported an error when processing this lp:~mhr3/libunity/remote-scope-fixes branch.
Not merging it.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches