Page MenuHomePhabricator

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

Authored by tomek on Mon, Sep 2, 7:15 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Sep 15, 4:42 PM
Unknown Object (File)
Sun, Sep 15, 11:52 AM
Unknown Object (File)
Sat, Sep 14, 3:10 PM
Unknown Object (File)
Fri, Sep 13, 6:27 AM
Unknown Object (File)
Fri, Sep 13, 5:24 AM
Unknown Object (File)
Thu, Sep 12, 10:41 AM
Unknown Object (File)
Tue, Sep 10, 6:36 PM
Unknown Object (File)
Mon, Sep 9, 11:13 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

tomek requested review of this revision.Mon, Sep 2, 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.Thu, Sep 5, 6:41 AM