Summary: | call Observers, even if channels have no Handler | ||
---|---|---|---|
Product: | Telepathy | Reporter: | Simon McVittie <smcv> |
Component: | mission-control | Assignee: | Simon McVittie <smcv> |
Status: | RESOLVED FIXED | QA Contact: | Telepathy bugs list <telepathy-bugs> |
Severity: | normal | ||
Priority: | medium | CC: | marco.barisione, vivek |
Version: | 5.7 | Keywords: | patch |
Hardware: | Other | ||
OS: | All | ||
URL: | http://cgit.freedesktop.org/~smcv/telepathy-mission-control/log/?h=58-recovery-position | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Bug Depends on: | |||
Bug Blocks: | 37373 | ||
Attachments: |
fd.o #34025 (ish): if we handle a channel internally, record that fact
McdHandlerMap: add brief documentation fd.o #29022: if a channel can't be handled, dispatch it anyway, to run observers undispatchable test: assert that observers are invoked, but approvers are not |
Description
Simon McVittie
2010-07-12 10:17:56 UTC
(In reply to comment #0) > I think Observers should be invoked for undispatchable operations (rationale: > implementing ObserveChannels should be like listening for NewChannels). This is so straightforward that I think we should JFDI. > I'm not > so sure about Approvers. This is tricky, so I cloned it to the spec. Bug #37373. Here's a branch. Simon, the URL is not accessible anymore. Created attachment 48954 [details] [review] fd.o #34025 (ish): if we handle a channel internally, record that fact This means we'll include it in the set of handled channels when we invoke Observers with Recover=TRUE. We don't do this when calling _mcd_request_handle_internally (., ., FALSE) since we're not really behaving like a Handler in that case - more like an Observer or something. Created attachment 48955 [details] [review] McdHandlerMap: add brief documentation Created attachment 48956 [details] [review] fd.o #29022: if a channel can't be handled, dispatch it anyway, to run observers Arguably, we should have some way that approvers can opt-in to being told about undispatchable channels that they might want to Claim, but that requires spec, whereas we can fix this straight away. Created attachment 48957 [details] [review] undispatchable test: assert that observers are invoked, but approvers are not Also assert that MC doesn't close the channel as undispatchable until the Observer has had a look at it. (That's all the patches.) (In reply to comment #3) > Simon, the URL is not accessible anymore. Migrated to freedesktop.org, but not in cgit til the cron job runs; see attached patches or add ssh://people.freedesktop.org/~smcv/telepathy-mission-control.git as a remote. Fixed in 5.8.1 and in the soon-to-be-released 5.9.2. |
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.