Page MenuHomePhabricator

Collapsed templates in a Flow topic are not collapsed immediately after the initial save
Open, MediumPublic

Description

At https://en.wikipedia.org/wiki/Topic:Soqp728q4rucjbxb I've added

{{collapse top|test collapse}}
foo bar
{{collapse bottom}}

Problem: After I save a new post, the template, and the earlier post which contained an identical test template, are both displayed uncollapsed. If I refresh the page, the templates are properly collapsed.
Expected: They should be immediately collapsed upon the first rendering.

Immediately after saving:

mo0MKz1.png (526×1 px, 37 KB)

After refreshing the page:
Fb4dub6.png (433×1 px, 35 KB)

Event Timeline

Quiddity raised the priority of this task from to Needs Triage.
Quiddity updated the task description. (Show Details)
Quiddity subscribed.
Restricted Application added a subscriber: Aklapper. · View Herald Transcript

I was the one who identified the bug. The description of the bug could have been better.
Upon save, the content displays uncollapsed, and it apparently cannot be collapsed. It appears to be locked in show mode.
A page reload seems to fix it.

Catrope renamed this task from Collapse templates in a Flow topic are not collapsed immediately after the initial save to Collapsed templates in a Flow topic are not collapsed immediately after the initial save.Sep 23 2015, 11:38 PM
Catrope set Security to None.
Catrope subscribed.

I think this is because the wikipage.content hook or whatever it's named is not called. There are/were similar issues with viewing pages right after editing them in VisualEditor, we should see if and how they addressed them.