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 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
Unknown Object (File)
Tue, Oct 22, 6:29 PM
Unknown Object (File)
Sat, Oct 19, 11:53 AM
Unknown Object (File)
Fri, Oct 18, 5:16 PM
Unknown Object (File)
Fri, Oct 18, 5:16 PM
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
Branch
timestamps
Lint
No Lint Coverage
Unit
No Test Coverage

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

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

90–117

Why don't we make createThickRawThreadInfo take timestamps?

lib/shared/dm-ops/add-viewer-to-thread-members-spec.js
76
90–117

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