Page MenuHomePhabricator

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

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:


After refreshing the page:

Event Timeline

Quiddity created this task.Sep 11 2015, 9:14 PM
Quiddity raised the priority of this task from to Needs Triage.
Quiddity updated the task description. (Show Details)
Quiddity added a subscriber: Quiddity.
Restricted Application added a project: Collaboration-Team-Triage. · View Herald TranscriptSep 11 2015, 9:14 PM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Alsee added a subscriber: Alsee.Sep 12 2015, 3:31 AM

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 added a subscriber: Catrope.

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.

Catrope triaged this task as Normal priority.Sep 23 2015, 11:39 PM