Closed Bug 1701578 Opened 4 years ago Closed 4 years ago

Importing the generated metrics breaks depending on the Glean import order

Categories

(Data Platform and Tools Graveyard :: Glean.js, defect, P1)

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Dexter, Assigned: Dexter)

Details

Attachments

(5 files)

If Glean is imported before the generated metrics everything works fine, if after everything breaks due to "Metrics" not being defined.

Attached file Part 2 - PR

All the circular dependencies were taken care of. We need to test whether or not swapping the include order is now fixed.

(In reply to Alessio Placitelli [:Dexter] from comment #6)

All the circular dependencies were taken care of. We need to test whether or not swapping the include order is now fixed.

I verified that this works by swapping these two imports. Without the changes in this bug, it fails with

https://github.com/mozilla/glean.js/blob/eb58d5d4b14cda20f297ae0182e84f217440a301/samples/web-extension/javascript/tests/unit/index.test.js#L6-L8

With the changes from this bug, the test runs fine:)

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Product: Data Platform and Tools → Data Platform and Tools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: