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)
Wed, Dec 18, 4:13 PM
Unknown Object (File)
Wed, Dec 18, 4:13 PM
Unknown Object (File)
Wed, Dec 18, 4:13 PM
Unknown Object (File)
Wed, Dec 18, 4:13 PM
Unknown Object (File)
Wed, Dec 18, 3:57 PM
Unknown Object (File)
Nov 25 2024, 9:10 PM
Unknown Object (File)
Nov 25 2024, 11:03 AM
Unknown Object (File)
Nov 25 2024, 2:04 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