Page MenuHomePhabricator

VE Gallery editor adds a description called Undefined when editing some galleries
Closed, ResolvedPublic1 Estimated Story Points

Description

VE Gallery editor adds a description called Undefined when editing very large galleries e.g

https://commons.wikimedia.org/w/index.php?title=User:John_Cummings/Biosphere_Reserve_best_images&oldid=207254358

Event Timeline

Jdforrester-WMF set the point value for this task to 1.
Jdforrester-WMF moved this task from To Triage to Blocked on the VisualEditor board.
Jdforrester-WMF added a subscriber: Tchanders.

I think this is due the regex returning Undefined when there is no pipe after the filename. We should normalise that to an empty string, and we should also not render a pipe if there is no caption on save.

Esanders renamed this task from VE Gallery editor adds a description called Undefined when editing very large galleries to VE Gallery editor adds a description called Undefined when editing some galleries.Nov 28 2016, 5:16 PM

Change 323858 had a related patch set uploaded (by Esanders):
Handle missing pipes in Gallery syntax, and remove them when caption is empty

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

Change 323858 merged by jenkins-bot:
Handle missing pipes in Gallery syntax, and remove them when caption is empty

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