Page MenuHomePhabricator

Refactor CommCoreModule.initializeCryptoAccount not to take userID as an argument.
ClosedPublic

Authored by marcin on Feb 20 2023, 5:27 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 11, 6:40 PM
Unknown Object (File)
Mon, Nov 11, 3:13 PM
Unknown Object (File)
Mon, Nov 4, 8:39 AM
Unknown Object (File)
Mon, Nov 4, 8:37 AM
Unknown Object (File)
Mon, Nov 4, 8:37 AM
Unknown Object (File)
Mon, Nov 4, 8:34 AM
Unknown Object (File)
Mon, Nov 4, 8:20 AM
Unknown Object (File)
Thu, Oct 31, 5:37 PM
Subscribers

Details

Summary

This differential removes userID argument from initializeCryptoAccount method in CommCoreModule since it it not used and is not necessary.
I understand that this differential covers a lot of files, but two of them are just effect of running yarn codegen-jsi and I think ot would be hard to split the rest without creating a differential that breaks CI or introduces changes that make app temporarily not working correctly.

Test Plan

Build the app. Ensure public keys are correctly created/retrieved in places where this method of CommCoreModule is called in JS.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

marcin published this revision for review.Feb 20 2023, 5:57 AM

FYI I think this might break the XCTest workflow on GitHub Actions. We might be able to rip out the failing tests if they're no longer relevant?

This revision is now accepted and ready to land.Feb 22 2023, 12:28 AM

FYI I think this might break the XCTest workflow on GitHub Actions. We might be able to rip out the failing tests if they're no longer relevant?

In this case, I suggest running these tests in Xcode and fix/remove them before landing this (Command + U)

However, after a brief look, they should still pass as CryptoModule constructor hasn't changed itself, but only its callsite

FYI I think this might break the XCTest workflow on GitHub Actions. We might be able to rip out the failing tests if they're no longer relevant?

In this case, I suggest running these tests in Xcode and fix/remove them before landing this (Command + U)

However, after a brief look, they should still pass as CryptoModule constructor hasn't changed itself, but only its callsite

I will run the test, but I am pretty positive nothing has been broken. Changes in this diff are exclusively related to CommCoreModule , not the CryptoModule which is the subject of the tests. id argument required for CryptoModule constructor is hardcoded in CommCoreModule.h and used instead of userID previously passed as an argumen.

I can confirm that XCode tests succeeded on physical iOS device.