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)
Wed, Oct 30, 12:27 AM
Unknown Object (File)
Sun, Oct 27, 3:48 PM
Unknown Object (File)
Sun, Oct 27, 3:48 PM
Unknown Object (File)
Sun, Oct 27, 3:48 PM
Unknown Object (File)
Sun, Oct 27, 3:42 PM
Unknown Object (File)
Oct 3 2024, 8:25 AM
Unknown Object (File)
Oct 3 2024, 7:03 AM
Unknown Object (File)
Oct 3 2024, 6:45 AM
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.