Page MenuHomePhabricator

[lib] add ops for message store threads
ClosedPublic

Authored by kamil on Apr 12 2023, 9:43 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 28, 12:57 PM
Unknown Object (File)
Sun, Apr 28, 12:57 PM
Unknown Object (File)
Sun, Apr 28, 12:57 PM
Unknown Object (File)
Sun, Apr 28, 12:57 PM
Unknown Object (File)
Sun, Apr 28, 12:57 PM
Unknown Object (File)
Sun, Apr 28, 12:54 PM
Unknown Object (File)
Sat, Apr 27, 11:26 PM
Unknown Object (File)
Mar 28 2024, 7:55 PM
Subscribers

Details

Summary

Operations to remove, replace, and remove all threads.

Test Plan

Process each operation and check if it works.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kamil held this revision as a draft.
lib/utils/message-ops-utils.js
254 ↗(On Diff #25045)

to avoid native crashes for now, filtering or any other more readable approach makes flow complaining

kamil published this revision for review.Apr 13 2023, 8:18 AM
kamil added inline comments.
lib/types/message-types.js
416 ↗(On Diff #25099)

Threads are small objects, and there might be a situation when we will update a lot of them at once - that's why it's better to make one operation with multiple threads to reduce overhead.

@atul is rather busy right now and probably won't be able to review anytime soon, but if I recall correctly I think he was the original architect of the message ops, so would be good for him to take a pass here

@atul is rather busy right now and probably won't be able to review anytime soon, but if I recall correctly I think he was the original architect of the message ops, so would be good for him to take a pass here

I can take a look this weekend after avatars work... hopefully that's not too much of a delay.

This revision is now accepted and ready to land.Apr 14 2023, 4:54 AM
This revision was automatically updated to reflect the committed changes.