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
F3515036: D7912.id27122.diff
Sun, Dec 22, 7:10 AM
F3513811: D7912.diff
Sun, Dec 22, 2:18 AM
Unknown Object (File)
Sun, Dec 15, 11:58 PM
Unknown Object (File)
Sun, Dec 15, 11:58 PM
Unknown Object (File)
Sun, Dec 15, 11:58 PM
Unknown Object (File)
Sun, Dec 15, 11:57 PM
Unknown Object (File)
Sun, Dec 15, 11:49 PM
Unknown Object (File)
Mon, Dec 9, 4:56 PM
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

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

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

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.