daniel added a comment.

Ok, confirmed locally: this is caused by the new WikiPageEntityRevisionLookup code.

Analysis: RevisionStore loads the correct revision content from the correct database (wikidatawiki), but since rev_content_model is NULL in the database, it falls back to using the default content model configured for that namespace locally. For NS_MAIN, that's wikitext.

Permanent solution: with the new MCR schema, this problem vanishes, since the content model is always recorded explicitly.

Intermediate solution (draft): defined per-namespace content model overrides in RevisionStore. These can be set by RevisionStoreFactory. But how do they get into RevisionStoreFactory? The only option I see is to introduce a new config setting. Which seems annoying, given the fact that t his will go away anyway.


TASK DETAIL
https://phabricator.wikimedia.org/T201194

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: daniel
Cc: Cosine02, cscott, daniel, Addshore, greg, Jakob_WMDE, Pablo-WMDE, Niharika, TerraCodes, Liuxinyu970226, Aklapper, thcipriani, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, Luke081515, Wikidata-bugs, aude, Mbch331
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to