Skip to content

Improve subcategory indexing#4799

Draft
bbhtt wants to merge 2 commits intomainfrom
bbhtt/subcat-list
Draft

Improve subcategory indexing#4799
bbhtt wants to merge 2 commits intomainfrom
bbhtt/subcat-list

Conversation

@bbhtt
Copy link
Copy Markdown
Contributor

@bbhtt bbhtt commented Mar 23, 2025

No description provided.

@bbhtt bbhtt marked this pull request as draft March 23, 2025 05:16
Previously subcategories were calculated by removing the first
category from the category data supplied by the app and adding the rest
as subcategories. This approach leads to a lot of "junk" data in
subcategories for example, the index would have `2DGraphics` as
a subcategory of the main category `AudioVideo` or appstream's
low quality categories.

This fixes that by defining a map between parent categories and
subcategories obtained from the spec and adding only valid subcategories
for a given parent category as calculated from the map to the index
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant