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
F3390258: D12156.diff
Fri, Nov 29, 11:01 PM
Unknown Object (File)
Tue, Nov 26, 7:34 PM
Unknown Object (File)
Tue, Nov 26, 5:41 PM
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
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
Branch
entries
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 ↗(On Diff #40510)

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

265 ↗(On Diff #40510)

Same here.

lib/reducers/entry-reducer.js
224–232 ↗(On Diff #40510)

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 ↗(On Diff #40510)

Tested. Works

marcin added inline comments.
lib/reducers/entry-reducer.js
239 ↗(On Diff #40510)

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