Page MenuHomePhabricator

[lib] assert function and setting client db with sqlite data
ClosedPublic

Authored by will on Jun 10 2024, 11:29 AM.
Tags
None
Referenced Files
F3495236: D12384.id41249.diff
Thu, Dec 19, 7:55 AM
F3495226: D12384.id41252.diff
Thu, Dec 19, 7:48 AM
F3494442: D12384.diff
Thu, Dec 19, 5:46 AM
Unknown Object (File)
Wed, Dec 18, 7:01 AM
Unknown Object (File)
Wed, Dec 18, 7:01 AM
Unknown Object (File)
Wed, Dec 18, 7:01 AM
Unknown Object (File)
Wed, Dec 18, 7:01 AM
Unknown Object (File)
Wed, Dec 18, 7:01 AM
Subscribers

Details

Summary

Populates the client db with message store local sqlite data and includes an assert function to verify the result of message store local operations

Depends on D12370

Test Plan

Tested on both native and web by

  1. launching app on prior migration version
  2. Failing to send several messages by disconnecting the keyserver
  3. Restarting app to confirm assertion between redux persist and sqlite data failure
  4. Running migration
  5. Verifying assertion now passes

Diff Detail

Repository
rCOMM Comm
Branch
sqlite/local_message_store
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

will requested review of this revision.Jun 10 2024, 11:49 AM
tomek added inline comments.
lib/reducers/message-reducer.test.js
301 ↗(On Diff #41173)

What is the reason behind this change?

This revision is now accepted and ready to land.Jun 11 2024, 2:36 AM
will planned changes to this revision.Jun 11 2024, 2:27 PM

Realized this diff requires a critical change of using the action payload sqlite data

lib/reducers/message-reducer.test.js
301 ↗(On Diff #41173)

I did this to reflect how we handle messageStoreThreads where messageStoreThreads is actually converted into a map in the message reducer instead of in native/data/sqlite-data-handler.js

This diff actually uses sqlite data

This revision is now accepted and ready to land.Jun 11 2024, 3:53 PM
will requested review of this revision.Jun 11 2024, 4:08 PM
tomek added inline comments.
lib/reducers/message-reducer.js
1630 ↗(On Diff #41227)

This transformation should probably be performed before dispatching setClientDBStoreActionType as we do for other data.

This revision is now accepted and ready to land.Jun 12 2024, 4:17 AM

set web app start to use sqlite