firefox-devtools / firefox-devtools/profiler

Ensure during profile processing that every category has at least one subcategory

Open
#2,119 0 comments 0 reactions 0 assignees View on GitHub
categories code maintenance
Dominant language
TypeScript
Stars
1.5k
Forks
491
Avg merge
3d 46m
Merged PRs (30d)
27

Description

In `profile.meta.categories`, our format expects there to be at least one subcategory for every category, that first subcategory being "Other".

However, at the moment we do not really have a guarantee that this is the case. It would be good to get such a guarantee during profile processing; either by throwing an error if the subcategory is missing or by adding it.

┆Issue is synchronized with this [Jira Task](https://mozilla-hub.atlassian.net/browse/FP-173)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.