Page MenuHomePhabricator

[lib] Check the timestamps when adding the viewer to thread members
ClosedPublic

Authored by tomek on Sep 2 2024, 7:15 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 10, 1:39 AM
Unknown Object (File)
Sat, Nov 9, 4:55 PM
Unknown Object (File)
Sat, Nov 9, 2:58 PM
Unknown Object (File)
Sat, Nov 9, 2:30 PM
Unknown Object (File)
Sun, Nov 3, 8:28 PM
Unknown Object (File)
Sun, Nov 3, 8:28 PM
Unknown Object (File)
Sun, Nov 3, 2:34 AM
Unknown Object (File)
Sun, Nov 3, 2:33 AM
Subscribers

Details

Summary

Check the timestamp and update the membership only when necessary.

https://linear.app/comm/issue/ENG-9114/update-addviewertothreadmembersspec

Depends on D13217

Test Plan

Created two add_viewer_to_thread_members operations and checked if the resulting timestamps are correct (all the timestamps should equal the first operation time except the membership.role timestamp).

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

tomek requested review of this revision.Sep 2 2024, 7:41 AM
lib/shared/dm-ops/add-viewer-to-thread-members-spec.js
76 ↗(On Diff #43830)

Same as in previous diffs, we should probably handle timestamp collisions

90–117 ↗(On Diff #43830)

Why don't we make createThickRawThreadInfo take timestamps?

lib/shared/dm-ops/add-viewer-to-thread-members-spec.js
76 ↗(On Diff #43830)
90–117 ↗(On Diff #43830)

In the next diff D13219 I add this parameter. I'm going to update this spec in that diff.

This revision is now accepted and ready to land.Sep 5 2024, 6:41 AM