this blocks work on the core api code and might not be trivial.
Description
Details
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | daniel | T91073 Update Wikidata for ApiResult rewrite | |||
Resolved | Anomie | T96596 Add wfDeprecated() to deprecated ApiResult methods | |||
Invalid | None | T109969 Wikidata breaking API changes (tracking) | |||
Resolved | jayvdb | T110559 Make sure that Pywikibot still works with new api data output format | |||
Resolved | Addshore | T95168 [Task] Remove calls to getIsRawMode() in Wikibase, and calls to setRawMode() in tests |
Event Timeline
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().
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
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