Page MenuHomePhabricator

[lib] extract local id field before sending report
ClosedPublic

Authored by kamil on May 22 2023, 6:37 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 16, 11:14 AM
Unknown Object (File)
Mon, Apr 15, 8:41 PM
Unknown Object (File)
Mon, Apr 15, 3:53 PM
Unknown Object (File)
Mon, Apr 15, 3:42 PM
Unknown Object (File)
Sat, Apr 13, 8:01 AM
Unknown Object (File)
Fri, Apr 12, 6:26 PM
Unknown Object (File)
Fri, Apr 12, 4:28 PM
Unknown Object (File)
Fri, Apr 12, 4:34 AM
Subscribers

Details

Summary

This field is needed only on client, also by this we're making sure that request validation on server will not fail.

Depends on D7909

Test Plan

Attach id field to report and try sending this and see if it's properly validated on keyserver.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kamil held this revision as a draft.
kamil published this revision for review.May 23 2023, 1:36 AM
tomek added inline comments.
lib/actions/report-actions.js
42–46 ↗(On Diff #26777)

Using term raw might be confusing, as it has a special meaning in our codebase. How about clientReport vs serverReport?

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

rename variable

lib/actions/report-actions.js
42–46 ↗(On Diff #26777)

fair point

move code directly to migration