Page MenuHomePhabricator

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

Assigned To
None
Authored By
Quiddity
Sep 11 2015, 9:14 PM
Referenced Files
F2569183: Fb4dub6.png
Sep 11 2015, 9:14 PM
F2569184: mo0MKz1.png
Sep 11 2015, 9:14 PM

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 (1,116×526 px, 37 KB)

After refreshing the page:
Fb4dub6.png (1,121×433 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.

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