Closed
Bug 1611111
Opened 5 years ago
Closed 5 years ago
glean_parser breaks Swift codegen due to field order of metrics
Categories
(Data Platform and Tools :: Glean: SDK, defect, P1)
Data Platform and Tools
Glean: SDK
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: janerik, Assigned: janerik)
Details
(Whiteboard: [telemetry:glean-rs:m11])
Attachments
(1 file)
Latest updates to the glean_parser causes the Swift code generation to produce invalid code.
In Swift the field order for the initializer is strict, so it needs to be the same in the definition and in code calling it.
Correct:
category: "glean.baseline",
name: "duration",
sendInPings: ["baseline"],
lifetime: .ping,
disabled: false,
timeUnit: .second
Currently generated by glean_parser 1.16.0:
category: "glean.baseline",
disabled: false,
lifetime: .ping,
name: "duration",
sendInPings: ["baseline"],
timeUnit: .second
Assignee | ||
Comment 1•5 years ago
|
||
Assignee | ||
Updated•5 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•