Page MenuHomePhabricator

[lib] Update delete keyserver, delete thread, leave thread and set new session actions with the ops approach
ClosedPublic

Authored by tomek on May 21 2024, 8:49 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 22, 6:45 AM
Unknown Object (File)
Sun, Nov 10, 7:00 AM
Unknown Object (File)
Sun, Nov 10, 6:41 AM
Unknown Object (File)
Sun, Nov 10, 2:29 AM
Unknown Object (File)
Sun, Nov 10, 1:38 AM
Unknown Object (File)
Sat, Nov 2, 1:07 AM
Unknown Object (File)
Fri, Nov 1, 7:32 PM
Unknown Object (File)
Oct 2 2024, 6:06 PM
Subscribers

Details

Summary

These actions override the store with a modified one - replicate the logic for the ops.

Depends on D12157

https://linear.app/comm/issue/ENG-3486/move-entrystore-to-sqlite

Test Plan

Be on the latest diff if this stack to ensure there is no mechanism from the keyserver that would aid entry persistence. After testing each actions kill the app and reopen it to ensure that changes are correctly persisted.

  1. To test delete keyserver, delete thread, leave thread by: create community, then a chat in the community, then the entry for the chat and finally deleted the chat. Ensure that it disappeared from SQLite.
  2. To test set new session: TODO

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.May 21 2024, 9:34 AM
Harbormaster failed remote builds in B29121: Diff 40488!
tomek requested review of this revision.May 21 2024, 1:07 PM
lib/reducers/entry-reducer.js
224–232

Do we actually need to combine two actions? Perhaps we can establish which need deletion and use once remove_entries action?

265

Same here.

lib/reducers/entry-reducer.js
224–232

That would be more efficient but also would be more complicated. We can consider doing this though.

marcin added inline comments.
lib/reducers/entry-reducer.js
207

Tested. Works

marcin added inline comments.
lib/reducers/entry-reducer.js
239

Currently I am unable to test this one. I will accept this diff since all actions were tested and worked so it is unlikely that this particular action doesn't/ However before landing I will ask someone to test it by deleting latest cookie id.

This revision is now accepted and ready to land.May 23 2024, 5:32 AM