Page MenuHomePhabricator

[native_rust_library] fix serialization of BackupKeysResult
ClosedPublic

Authored by varun on May 24 2024, 9:00 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jul 23, 5:34 AM
Unknown Object (File)
Fri, Jul 19, 7:05 AM
Unknown Object (File)
Mon, Jul 15, 1:00 PM
Unknown Object (File)
Mon, Jul 15, 1:00 PM
Unknown Object (File)
Mon, Jul 15, 12:57 PM
Unknown Object (File)
Mon, Jul 15, 12:57 PM
Unknown Object (File)
Mon, Jul 15, 11:27 AM
Unknown Object (File)
Sat, Jul 6, 7:55 PM

Details

Summary

the validator in secondary-device-qr-code-scanner-react.js expects the field names to be camelCase

Depends on D12211

Test Plan
const backupKeys = assertWithValidator<BackupKeys>(
  JSON.parse(backupKeysResponse),
  backupKeysValidator,
);

this assertion in secondary-device-qr-code-scanner-react.js was failing, but now succeeds

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

varun requested review of this revision.May 24 2024, 9:15 AM

The only changes here after the rebase are code comments – did you accidentally commit the actual code changes separately?

bartek added a subscriber: marcin.

The only changes here after the rebase are code comments – did you accidentally commit the actual code changes separately?

This was fixed by @marcin in D12035. @varun might have been on an outdated master.

Regardless, these comments are good to have.

This revision is now accepted and ready to land.May 26 2024, 1:39 AM