Skip to content

Make structured content extraction for glossary-plain recursive to more easily ensure correct ordering#2240

Merged
Kuuuube merged 1 commit intoyomidevs:masterfrom
Kuuuube:recursive-plain-extract
Nov 11, 2025
Merged

Make structured content extraction for glossary-plain recursive to more easily ensure correct ordering#2240
Kuuuube merged 1 commit intoyomidevs:masterfrom
Kuuuube:recursive-plain-extract

Conversation

@Kuuuube
Copy link
Copy Markdown
Member

@Kuuuube Kuuuube commented Nov 10, 2025

Fixes the issue mentioned here #2212 (comment)

The existing non-recursive method would throw spread arrays into the queue instead of handling them right away. Some dicts have data in arrays and not in arrays around the same level of nesting. This can lead to entries being ordered wrong.

With recursion it's quite easy to handle all data types right as they're seen to ensure correct ordering.

@Kuuuube Kuuuube requested a review from a team as a code owner November 10, 2025 15:17
@Kuuuube Kuuuube added kind/bug The issue or PR is regarding a bug area/anki The issue or PR is related to Anki integration labels Nov 10, 2025
@Kuuuube Kuuuube added this pull request to the merge queue Nov 11, 2025
Merged via the queue into yomidevs:master with commit f271fc0 Nov 11, 2025
25 checks passed
@Kuuuube Kuuuube deleted the recursive-plain-extract branch November 11, 2025 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/anki The issue or PR is related to Anki integration kind/bug The issue or PR is regarding a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants