Page MenuHomePhabricator

[Defect] Sections parser shows Squirels paragraphs twice
Closed, ResolvedPublic3 Estimated Story Points

Description

Defect steps: see Taaon section has 3 paragraphs and then a child section. https://en.wikipedia.org/w/rest.php/v1/page/Squirrel/html

See JSON output:

image.png (2×2 px, 572 KB)

Acceptance criteria

When we have sections within sections, the JSON output should net be duplicated

ToDo

  • fix children filter in the child sections parsing.
  • test and QA push to DEV and then Prod. No changes to docs or APIs

Event Timeline

ROdonnell-WMF changed the task status from Open to In Progress.Nov 18 2023, 9:25 PM
ROdonnell-WMF triaged this task as Medium priority.
ROdonnell-WMF created this task.

Dev looks good now w/ same article && section

Screenshot 2023-11-21 at 14.03.46.png (1×1 px, 433 KB)

Looks like the fix has broken sub-sections, now there's no name and type properties available when you are querying the page.

For example on the Josephine Baker page you can see that in Personal Life section, subsection name and type is not present. Only has_parts property is there:

image.png (698×839 px, 28 KB)