Page MenuHomePhabricator

The effect of the VisualEditor "Editing mode" preference on the section edit links is being included in the "post-processing cache" (aka "post-OutputTransform cache") without splitting the cache on the preference
Open, Needs TriagePublic

Event Timeline

Yup, this is indeed an issue on the postproc cache. Adding section edit links eventually calls onSkinEditSectionLinks, which has a hook in VE to do fancy things depending on user prefs & the last editor used by the user. And the cache has no option for that (... because so far it was very much post cache; and it's not even in the parsing options either), so that's indeed not splitting the cache, good call.

Change #1290772 had a related patch set uploaded (by Isabelle Hurbain-Palatin; author: Isabelle Hurbain-Palatin):

[mediawiki/core@master] Add a postproc parseroption for edit link behaviour

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

Change #1290773 had a related patch set uploaded (by Isabelle Hurbain-Palatin; author: Isabelle Hurbain-Palatin):

[mediawiki/extensions/VisualEditor@master] Sets edit link behaviour in ParserOptions in an earlier hook

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

Change #1290929 had a related patch set uploaded (by C. Scott Ananian; author: C. Scott Ananian):

[mediawiki/core@master] ParserOptions: allow option values to be enumeration values

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

Change #1292042 had a related patch set uploaded (by Isabelle Hurbain-Palatin; author: Isabelle Hurbain-Palatin):

[mediawiki/extensions/FlaggedRevs@master] Adjust tests to take into account visibleLinks ParserOption set by VE

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

Change #1290929 merged by jenkins-bot:

[mediawiki/core@master] ParserOptions: allow option values to be enumeration values

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

Change #1294991 had a related patch set uploaded (by Isabelle Hurbain-Palatin; author: Isabelle Hurbain-Palatin):

[mediawiki/core@master] Replace onParserOptionsRegister by onParserOptionsDefaults

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

Change #1294991 merged by jenkins-bot:

[mediawiki/core@master] Replace onParserOptionsRegister by onParserOptionsDefaults

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

Change #1290772 merged by jenkins-bot:

[mediawiki/core@master] Make ParserOptions available to Skin

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

Change #1290773 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Sets edit link behaviour in ParserOptions in an earlier hook

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

Change #1292042 merged by jenkins-bot:

[mediawiki/extensions/FlaggedRevs@master] Adjust tests to take into account visibleLinks ParserOption set by VE

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