Open Bug 1919285 Opened 7 months ago Updated 7 months ago

Check that all GleanPings.* calls made in Firefox desktop's JavaScript code are free of typos

Categories

(Toolkit :: Telemetry, task, P4)

task

Tracking

()

People

(Reporter: chutten, Unassigned)

References

Details

In bug 1919146, Florian added a test that ensures all JS calls to Glean.category.metric and Glean.category.metric.label are correct (by ensuring any subsequent method invocation is actually a function call, and not undefined). This bug is about expanding this test (or adding a new one) to assert the same for GleanPings.pingName

This new assertion might be simplified by noting how all pings have the same submit function on them. Alas, there's no runtime way to validate that the reason passed to submit() is a valid reason, but the worst that happens there is we receive pings with NULL reason, so this is acceptable.

You need to log in before you can comment on or make changes to this bug.