https://bugzilla.wikimedia.org/show_bug.cgi?id=56825

--- Comment #8 from Kunal Mehta (Legoktm) <legoktm.wikipe...@gmail.com> ---
(In reply to comment #6)
> Personally I think Echo itself should abstract its implementation away. Since
> Echo is not currently used with any other backends I'm reluctant to spend
> much
> more time on this personally when the main more pressing issue here has been
> fixed by checking for Thanks being enabled.

Echo already has this abstraction layer.

The backend is exposed using the global $wgEchoBackend, which is an instance of
MWEchoBackend. Accessing a user's notification can be done with
ApiEchoNotifications::getNotifications (this can probably be improved).

> 
> When Echo does support other backends it should do a better job of surfacing
> 'APIs' that other extensions can feed into (as far as I'm concerned accessing
> Echo in the current way is a hack and a stopgap).

If it's a hack, then this bug isn't fixed.

> 
> I suggest raising a bug on Echo asking that other extensions have a safe way
> to
> extract this sort of information without caring about the backend and
> creating
> an enhancement request for mobile to support multiple backends.

I don't know what kind of information you want to extract, it would be better
if you filed the bug yourself.

This is the first case where another extensions is accessing the information
Echo stores which is why there is no real internal API yet.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to