Page MenuHomePhabricator

[Regression wmf20] Table gets broken while changing the cell type after a merge cell operation
Closed, ResolvedPublic1 Estimated Story Points

Description

Steps to reproduce:

1.Open a page with VE
2.Insert a table
3.Select all four cells from a row which are content cells and merge them
4.Now change the type of cell to header

Observed Result:
The table gets broken , the last three cells of that row disappear.

See the video capture attached

Event Timeline

Ryasmeen raised the priority of this task from to Needs Triage.
Ryasmeen updated the task description. (Show Details)
Ryasmeen added a project: VisualEditor.
Ryasmeen subscribed.
Ryasmeen renamed this task from [Regression wmf 20] Table gets broken after changing the cell type for a merge cell operation to [Regression wmf 20] Table gets broken while changing the cell type after a merge cell operation.Mar 6 2015, 10:44 PM
Ryasmeen triaged this task as High priority.
Ryasmeen set Security to None.
Ryasmeen moved this task from To Triage to External and Administrivia on the VisualEditor board.

In TableCellNode we call updateTagName which uses setup/teardown to ensure attributes are set on the new element.

@Catrope: I think your setup/teardown commit didn't address the problem properly as evidenced by the fact that one of your comments includes the word 'duplicate'. There should be an initialise element method that should be called on construction or when $element is modified (e.g. in GCN or updateTagName).

Change 195222 had a related patch set uploaded (by Catrope):
Followup 11f507a98f62: also restore rowspan and colspan on TableCellNodes

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

Change 195228 had a related patch set uploaded (by Esanders):
Create CE view initialization event for when $element is created

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

Jdforrester-WMF renamed this task from [Regression wmf 20] Table gets broken while changing the cell type after a merge cell operation to [Regression wmf20] Table gets broken while changing the cell type after a merge cell operation.Mar 9 2015, 3:06 PM
Jdforrester-WMF reassigned this task from Esanders to Catrope.

Change 195286 had a related patch set uploaded (by Jforrester):
Followup 11f507a98f62: also restore rowspan and colspan on TableCellNodes

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

Change 195222 merged by jenkins-bot:
Followup 11f507a98f62: also restore rowspan and colspan on TableCellNodes

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

Change 195286 merged by jenkins-bot:
Followup 11f507a98f62: also restore rowspan and colspan on TableCellNodes

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

checked the fix in Betalabs and test2

Change 195228 abandoned by Jforrester:
Create CE view initialization event for when $element is created

Reason:
We're going with Roan's approach, apparently.

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