Page MenuHomePhabricator

Remove CommentFormatter from EventFactory constructor, or otherwise make its usage optional
Closed, ResolvedPublic

Description

Parsed comment support was added in T170145: Add parsedcomment to recentchange stream. As noted in a patch discussion in EventBus, it would be nice to have the CommentFormatter as an optional service, because using it triggers code that is not safe to call in no-session contexts.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change 880457 had a related patch set uploaded (by Kosta Harlan; author: Kosta Harlan):

[mediawiki/extensions/EventBus@master] EventFactory: Make CommentFormatter an optional dependency

https://gerrit.wikimedia.org/r/880457

kostajh changed the task status from Open to In Progress.Jan 16 2023, 1:00 PM

Change 880457 merged by jenkins-bot:

[mediawiki/extensions/EventBus@master] EventFactory: Make CommentFormatter an optional dependency

https://gerrit.wikimedia.org/r/880457

Change 884088 had a related patch set uploaded (by Ottomata; author: Ottomata):

[schemas/event/primary@master] development/mediawiki/page/chage - 2.0.0 - remove comment_html

https://gerrit.wikimedia.org/r/884088

Tgr subscribed.

I don't think we are expected to review the other patch, nor are we affected by it, so moving this to QA.

Change 884088 merged by Ottomata:

[schemas/event/primary@master] development/mediawiki/page/chage - 2.0.0 - remove comment_html

https://gerrit.wikimedia.org/r/884088

Change 888000 had a related patch set uploaded (by Kosta Harlan; author: Kosta Harlan):

[mediawiki/extensions/EventBus@master] EventFactory: Remove CommentFormatter from service injection

https://gerrit.wikimedia.org/r/888000

Change 888000 merged by jenkins-bot:

[mediawiki/extensions/EventBus@master] EventFactory: Remove CommentFormatter from service injection

https://gerrit.wikimedia.org/r/888000