Page MenuHomePhabricator

Make ToC rendering less stupid and update properly
Closed, InvalidPublic

Description

Table of Contents is always rendered off revisionFromTitle->getContent, and does not correctly register the source pages as template dependencies.

  • It should render off the current (not saved) revision when previewing
  • It needs to update immediately on pages when saving, as opposed to only after being purged

Event Timeline

Change 298048 had a related patch set uploaded (by Isarra):
Design and implement WikiProject X styles, and miscellaneous backend changes

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

Change 298048 merged by Harej:
Design and implement WikiProject X styles, and miscellaneous backend changes

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

So now there's some template dependencies in, but either I'm completely confused (likely), or this isn't enough. Technically the page using this is itself a template for the ToC on itself.

So...

Alternately I just did it wrong. More investigation needed.

No longer relevant due to T140170