Open Bug 1954805 Opened 9 months ago Updated 7 months ago

Static label enums don't support the full range of possible label values (71 chars of printable ascii)

Categories

(Toolkit :: Telemetry, defect, P4)

defect

Tracking

()

People

(Reporter: chutten|PTO, Unassigned)

References

Details

    labels:
      - "0 - 10 tabs"
      - "11 - 500 tabs"
      - "more tabs"

Is supported by glean_parser, as it should be. However, codegen will generate e.g.

enum class DistributionAmongContentLabel: uint16_t {
    e0  10 tabs = 0,
    e11  500 tabs = 1,
    eMore tabs = 2,
    e__Other__,
  };

We need to both test and support the full range of printable ASCII. Until then, we'll be requiring folks to use dynamic labels when otherwise they could be using static.

See Also: → 1968533
You need to log in before you can comment on or make changes to this bug.