Page MenuHomePhabricator

[lib] add local id field to existing reports
ClosedPublic

Authored by kamil on May 22 2023, 6:41 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 14, 9:01 PM
Unknown Object (File)
Mon, Oct 28, 12:30 PM
Unknown Object (File)
Sun, Oct 27, 8:45 PM
Unknown Object (File)
Sep 29 2024, 1:17 AM
Unknown Object (File)
Sep 29 2024, 1:17 AM
Unknown Object (File)
Sep 29 2024, 1:17 AM
Unknown Object (File)
Sep 29 2024, 1:16 AM
Unknown Object (File)
Sep 29 2024, 1:10 AM
Subscribers

Details

Summary

This is probably not necessary as I don't think that anyone has some persisted, not sent reports, but adding this for clarity.

Depends on D7910

Test Plan

Make sure that there are some reports in store (e.g. throw in keyserver endpoint and create some inconsistencies). Then verify that id was added.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

kamil held this revision as a draft.
lib/utils/report-utils.js
30–37 ↗(On Diff #26779)

this function will be re-used in next diff

kamil published this revision for review.May 23 2023, 1:37 AM
tomek added inline comments.
lib/utils/report-utils.js
35 ↗(On Diff #26779)

Should we do this only for reports which don't have the id? I guess in the migration it doesn't matter, but maybe for other usages of this function will?

This revision is now accepted and ready to land.May 23 2023, 3:14 AM

move code directly to migration

lib/utils/report-utils.js
35 ↗(On Diff #26779)

it turned out that this was a bad assumption - this function will not be used in more places.

Also, because id will be mandatory function argument type is not proper - I'll put this code directly into migration.