Page MenuHomePhabricator

[report-service] Add report types structs
ClosedPublic

Authored by bartek on Aug 25 2023, 1:07 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, May 2, 9:32 AM
Unknown Object (File)
Tue, Apr 30, 12:22 AM
Unknown Object (File)
Sun, Apr 28, 12:17 AM
Unknown Object (File)
Thu, Apr 25, 8:58 PM
Unknown Object (File)
Sat, Apr 13, 2:59 PM
Unknown Object (File)
Thu, Apr 4, 1:04 PM
Unknown Object (File)
Thu, Apr 4, 1:04 PM
Unknown Object (File)
Thu, Apr 4, 1:04 PM
Subscribers

Details

Summary

Introduce structs for report types, to be used in the report service.
They're somehow counterparts of lib/types/report_types.js but modified to be properly serialized/deserialized by Serde.

Depends on D8865

Test Plan

Tested together with further diffs.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bartek held this revision as a draft.
bartek published this revision for review.Aug 25 2023, 1:47 AM

rust LGTM, not familiar with reports though, so I would like a second opinion

Not a fan of ReportInput::time handling with serde, but I don't think we can do much better...

services/reports/src/report_types.rs
12 ↗(On Diff #30298)

NIT: repr(transparent) suggests we depend on it's layout somewhere

59–60 ↗(On Diff #30298)

We might want to move to string to handle semver in the future ENG-3908

This revision is now accepted and ready to land.Aug 28 2023, 12:38 AM
This revision was automatically updated to reflect the committed changes.