Page MenuHomePhabricator

[native_rust_library] fix serialization of BackupKeysResult
ClosedPublic

Authored by varun on May 24 2024, 9:00 AM.
Tags
None
Referenced Files
F3527032: D12212.id40735.diff
Tue, Dec 24, 2:51 AM
F3527031: D12212.id40651.diff
Tue, Dec 24, 2:51 AM
F3527030: D12212.id40642.diff
Tue, Dec 24, 2:51 AM
F3527020: D12212.id.diff
Tue, Dec 24, 2:51 AM
F3527015: D12212.diff
Tue, Dec 24, 2:51 AM
Unknown Object (File)
Sat, Dec 14, 11:48 PM
Unknown Object (File)
Wed, Dec 11, 7:31 PM
Unknown Object (File)
Sat, Dec 7, 8:38 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