Page MenuHomePhabricator

[keyserver] add new compareUsers function to rust-node-addon
ClosedPublic

Authored by varun on Mar 7 2023, 10:07 AM.
Tags
None
Referenced Files
F3511995: D6997.id23515.diff
Sat, Dec 21, 5:46 PM
F3509744: D6997.diff
Sat, Dec 21, 7:55 AM
Unknown Object (File)
Wed, Dec 4, 7:06 AM
Unknown Object (File)
Wed, Dec 4, 7:06 AM
Unknown Object (File)
Wed, Dec 4, 7:06 AM
Unknown Object (File)
Wed, Dec 4, 6:47 AM
Unknown Object (File)
Nov 12 2024, 12:10 PM
Unknown Object (File)
Oct 28 2024, 10:17 PM
Subscribers

Details

Summary

adding a new function that just calls the compareUsers RPC and returns a userComparisonResult, containing two arrays: usersMissingFromKeyserver and usersMissingFromIdentity

Depends on D6984

Test Plan

this gets tested in the next diff

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ashoat added 1 blocking reviewer(s): jon.

JS looks good with some minor nits. Somebody should look at Rust

lib/types/rust-binding-types.js
18 ↗(On Diff #23515)

Types are always capitalized

19–20 ↗(On Diff #23515)

We should generally use $ReadOnlyArray unless we have a good reason not to, especially when it's in combination with + (read-only access modifier)

keyserver/addons/rust-node-addon/src/identity_client/compare_users.rs
18 ↗(On Diff #23515)

Personal nit: but I would love for some white space to break up logical sections. Here we have "setup" and "action"

This revision is now accepted and ready to land.Mar 7 2023, 11:02 AM
This revision was automatically updated to reflect the committed changes.
varun marked 3 inline comments as done.