Page MenuHomePhabricator

Make sure code that accesses legacy pre-MCR fields triggers warnings before switching off WRITE_OLD (compat) mode.
Closed, ResolvedPublic

Description

To get warnings, we should:

There seems to be no goo way to make the DB abstract layer issue such warnings though. We will probably have to hack something in. Regular expressions against the generated SQL, if all else fails...

Related Objects

Event Timeline

daniel triaged this task as Medium priority.Aug 1 2018, 4:55 PM
daniel created this task.
daniel renamed this task from Make sure code that accesses the text table or uses rev_text_id triggers warnings before switching to write-new to Make sure code that accesses legacy pre-MCR fields triggers warnings before switching off WRITE_OLD (compat) mode..Aug 27 2019, 1:19 PM

Change 539921 had a related patch set uploaded (by Daniel Kinzler; owner: Daniel Kinzler):
[mediawiki/core@master] Log a warning when the 'text' flag is used with getQueryInfo()

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

daniel raised the priority of this task from Medium to High.Sep 30 2019, 5:32 PM

bumping to high, since this blocks 1.34

Change 539921 merged by jenkins-bot:
[mediawiki/core@master] Log a warning when the 'text' flag is used with getQueryInfo()

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

daniel lowered the priority of this task from High to Medium.Oct 8 2019, 9:43 AM