Page MenuHomePhabricator

[lib] DMOperationSpec for delete entry operation
ClosedPublic

Authored by will on Sep 16 2024, 1:16 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Dec 22, 9:40 PM
Unknown Object (File)
Sun, Dec 22, 9:40 PM
Unknown Object (File)
Sun, Dec 22, 9:39 PM
Unknown Object (File)
Sun, Dec 22, 9:39 PM
Unknown Object (File)
Nov 24 2024, 11:10 PM
Unknown Object (File)
Nov 22 2024, 4:38 AM
Unknown Object (File)
Nov 22 2024, 4:19 AM
Unknown Object (File)
Nov 21 2024, 9:02 PM
Subscribers
None

Details

Summary

Implements the delete entry DM operation spec

Depends on D13316

Test Plan

Tested later in stack. Will test notifs before landing

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

will requested review of this revision.Sep 16 2024, 1:34 AM
tomek requested changes to this revision.Sep 16 2024, 3:41 AM

It is a bit confusing to see all this info being sent while deleting an entry. It might be invalid when one user edits an entry while someone else deletes it.

The proper solution would require:

  1. Modifying the payload to contain just the ID of the deleted entry without too many details
  2. Introducing a util that provides all the entry infos
  3. Introducing a separate timestamp for deleted property

This will take some time, and we're short on it, so we should search for a simpler solution.
What we can do for now, is to keep the current approach and introduce a lastUpdatedTime timestamp check.

This revision now requires changes to proceed.Sep 16 2024, 3:41 AM

It is a bit confusing to see all this info being sent while deleting an entry. It might be invalid when one user edits an entry while someone else deletes it.

The proper solution would require:

  1. Modifying the payload to contain just the ID of the deleted entry without too many details
  2. Introducing a util that provides all the entry infos
  3. Introducing a separate timestamp for deleted property

This will take some time, and we're short on it, so we should search for a simpler solution.
What we can do for now, is to keep the current approach and introduce a lastUpdatedTime timestamp check.

Same comment for edit. Did a timestamp check up the stack:
https://phab.comm.dev/D13348

will requested review of this revision.Sep 16 2024, 5:46 AM

Rerequesting review

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