Page MenuHomePhabricator

Flow should use dependency injection instead of wfWikiID()
Open, Needs TriagePublic

Description

While testing an upgrade on my dev server, I began getting a bunch of errors from Flow like the following:

/wiki/Talk:Main_Page Flow\Exception\UnknownWorkflowIdException from line 127 of .../extensions/Flow/includes/WorkflowLoaderFactory.php: The requested workflow does not exist on this wiki.

This came from a mis-match between the results of wfWikiID() and what was stored in the database.

If we replace the calls to the global wfWikiID() with a wiki_id from Flow's dependency injection, it is easy to work-around this problem for testing scenarios like mine.

Event Timeline

Change 589444 had a related patch set uploaded (by markahershberger; owner: markahershberger):
[mediawiki/extensions/Flow@master] Introduce dependency injection to replace calls to wfWikiID()

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

Adding @daniel since I hear he knows a thing or two about DI.

Removing task assignee due to inactivity as this open task has been assigned for more than two years. See the email sent to the task assignee on August 22nd, 2022.
Please assign this task to yourself again if you still realistically [plan to] work on this task - it would be welcome!
If this task has been resolved in the meantime, or should not be worked on ("declined"), please update its task status via "Add Action… 🡒 Change Status".
Also see https://www.mediawiki.org/wiki/Bug_management/Assignee_cleanup for tips how to best manage your individual work in Phabricator. Thanks!

Change 589444 abandoned by MarkAHershberger:

[mediawiki/extensions/Flow@master] Introduce dependency injection to replace calls to wfWikiID()

Reason:

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