Page MenuHomePhabricator

[Task] Remove calls to getIsRawMode() in Wikibase, and calls to setRawMode() in tests
Closed, ResolvedPublic1 Estimated Story Points

Description

this blocks work on the core api code and might not be trivial.

Event Timeline

aude raised the priority of this task from to Needs Triage.
aude updated the task description. (Show Details)
aude subscribed.
aude triaged this task as High priority.Apr 23 2015, 12:33 PM
aude updated the task description. (Show Details)
Addshore renamed this task from Remove calls to getIsRawMode() in ResultBuilder and GetEntities, and calls to setRawMode() in tests to Remove calls to getIsRawMode() in Wikibase, and calls to setRawMode() in tests.Jul 9 2015, 3:52 PM

I am looking at this now, bit of re factoring to do first though

All of the re factoring to make this easier is now done.
Now just to make a few API breaks and pokes in order to be able to totally remove our usage of getIsRawMode etc.

Change 227667 had a related patch set uploaded (by Addshore):
APIPOKE - Return for-language key for non raw fallbacks

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

Change 227667 merged by jenkins-bot:
APIPOKE - Return for-language key for non raw fallbacks

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

Seems like ResultBuilder.php is still using getIsRawMode quite a bit. ApiHelperFactoryTest.php mocks that method (needlessly?). ApiXmlFormatTest.php uses setRawMode().

aude renamed this task from Remove calls to getIsRawMode() in Wikibase, and calls to setRawMode() in tests to [Task] Remove calls to getIsRawMode() in Wikibase, and calls to setRawMode() in tests.Aug 13 2015, 1:39 PM

Basically this will all come down to a breaking change to remove the uses.
But we will probably also have to poke core slightly (i'll explain why when I get back to this)

Change 227686 had a related patch set uploaded (by Addshore):
WIP API BREAK

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

Change 234258 had a related patch set uploaded (by Addshore):
Remove final use of setRawMode in Wikibasei

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

Change 227686 merged by jenkins-bot:
API BREAKING CHANGE - Remove rawMode use

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

daniel moved this task from Review to Done on the Wikidata-Sprint-2015-08-18 board.

merged

Change 234258 abandoned by Addshore:
Remove final use of setRawMode in Wikibase

Reason:
This is a null change now as its already done

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