Page MenuHomePhabricator

[lib] check timestamps before processing edit entry operation
ClosedPublic

Authored by will on Sep 16 2024, 1:31 AM.
Tags
None
Referenced Files
F3009484: D13347.diff
Fri, Oct 18, 10:23 PM
F3004293: D13347.id.diff
Fri, Oct 18, 1:58 PM
Unknown Object (File)
Wed, Oct 16, 12:12 AM
Unknown Object (File)
Mon, Oct 14, 3:44 AM
Unknown Object (File)
Sun, Oct 13, 5:07 AM
Unknown Object (File)
Tue, Oct 8, 3:16 PM
Unknown Object (File)
Sun, Sep 29, 8:26 AM
Unknown Object (File)
Sat, Sep 28, 1:20 PM
Subscribers
None

Details

Summary

This checks the timestamp to ensure that an edit operation produces a no-op update if produced with a timestamp before latest updated time

Follows logic from https://phab.comm.dev/D13215

Depends on D13346

Test Plan

Not sure how to test this yet. Might manually run these with different timestamps? Unsure how I might be able to introduce a delay.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

will requested review of this revision.Sep 16 2024, 2:05 AM
tomek added inline comments.
lib/shared/dm-ops/edit-entry-spec.js
46

It would be easier if we kept this property name consistent between all the operations.

66

Can we early exit when this condition isn't met? We should return only rawMessageInfos with empty updateInfos in such a case.

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

remove unnecesssary Thick thread type import