Bug 24569 - Reduce duplication when calling HandleChannels
Summary: Reduce duplication when calling HandleChannels
Status: RESOLVED FIXED
Alias: None
Product: Telepathy
Classification: Unclassified
Component: mission-control (show other bugs)
Version: unspecified
Hardware: Other All
: high enhancement
Assignee: Simon McVittie
QA Contact: Telepathy bugs list
URL: http://git.collabora.co.uk/?p=user/sm...
Whiteboard:
Keywords: patch
Depends on: 24120
Blocks: 23687
  Show dependency treegraph
 
Reported: 2009-10-16 06:32 UTC by Simon McVittie
Modified: 2009-11-02 06:57 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Simon McVittie 2009-10-16 06:32:58 UTC
Fixing Bug #23687 requires calling HandleChannels from a third location. Before doing this, I should fix the duplicate code between the two locations that currently call it - see the referenced branch for an implementation.
Comment 1 Simon McVittie 2009-10-20 15:08:15 UTC
As a bonus, this branch now also fixes computation of UserActionTime (the original branch tried to fix this, but I later discovered that it did it totally wrong, so I rebased the fix into the middle of it), and adds suitable assertions to the regression tests.
Comment 2 Sjoerd Simons 2009-11-02 05:53:15 UTC
Might be nice to pull assertEquals from the gabble tests to simplefy some things (obviously not a blocker though)

Branch itself looks good :)

 I do wonder if it won't be easier to review if it had been one big patch to move all the code over instead of 20 small ones 
Comment 3 Simon McVittie 2009-11-02 06:54:39 UTC
(In reply to comment #2)
>  I do wonder if it won't be easier to review if it had been one big patch to
> move all the code over instead of 20 small ones 

Possibly, but the code for some of the parameters isn't actually trivially equivalent to either of the previous implementations, so I wanted to implement (and test) it a bit at a time, to be able to look at each change in isolation.
Comment 4 Simon McVittie 2009-11-02 06:57:32 UTC
Fixed in git.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.