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
F3294153: D7910.diff
Sat, Nov 16, 6:32 PM
Unknown Object (File)
Thu, Oct 31, 5:30 PM
Unknown Object (File)
Sun, Oct 27, 8:45 PM
Unknown Object (File)
Oct 11 2024, 3:14 AM
Unknown Object (File)
Oct 9 2024, 9:55 PM
Unknown Object (File)
Sep 28 2024, 10:51 PM
Unknown Object (File)
Sep 28 2024, 10:51 PM
Unknown Object (File)
Sep 28 2024, 10:51 PM
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