Page MenuHomePhabricator

Invalid TOC data from
Closed, InvalidPublicBUG REPORT


We're getting odd looking TOC values back from MCS:

Some ids are -1
And I believe it's invalid for the toclevel to be less than 1 (sometimes is 0).

I'm not sure how it's supposed to function, but based on other examples, the above behaviour looks wrong.

Original Issue:

Thanks Guys

Event Timeline

bearND closed this task as Invalid.EditedJul 17 2019, 4:22 PM
bearND subscribed.

0 is the lead section, -1 are uneditable sections, -2 are Pseudo sections, as determined by Parsoid[1]. The negative ones are usually transcluded headings.
One approach could be to not include these in the actually displayed ToC.