We should check whether an entity with the same ID exists and discard an operation in a case of conflict
https://linear.app/comm/issue/ENG-9190/alternative-solution-update-canbeprocessed-functions
Paths
| Differential D13464 Authored by tomek on Sep 25 2024, 10:13 AM.
Details Summary We should check whether an entity with the same ID exists and discard an operation in a case of conflict https://linear.app/comm/issue/ENG-9190/alternative-solution-update-canbeprocessed-functions Test Plan Tested some scenarios:
Diff Detail
Event TimelineHerald added a subscriber: ashoat. · View Herald TranscriptSep 25 2024, 10:13 AM2024-09-25 10:13:44 (UTC-7) Harbormaster completed remote builds in B31847: Diff 44557.Sep 25 2024, 10:31 AM2024-09-25 10:31:05 (UTC-7) Harbormaster completed remote builds in B31867: Diff 44585.Sep 26 2024, 12:57 AM2024-09-26 00:57:31 (UTC-7) Harbormaster completed remote builds in B31870: Diff 44588.Sep 26 2024, 1:07 AM2024-09-26 01:07:22 (UTC-7) Harbormaster completed remote builds in B31871: Diff 44589.Sep 26 2024, 1:15 AM2024-09-26 01:15:36 (UTC-7) tomek edited the test plan for this revision. (Show Details)Sep 26 2024, 2:26 AM2024-09-26 02:26:48 (UTC-7) tomek added a child revision: D13483: [lib] Validate DM operations.Sep 26 2024, 3:14 AM2024-09-26 03:14:56 (UTC-7) This revision is now accepted and ready to land.Sep 26 2024, 7:25 AM2024-09-26 07:25:24 (UTC-7) Harbormaster completed remote builds in B31896: Diff 44621.Sep 27 2024, 3:38 AM2024-09-27 03:38:43 (UTC-7) Closed by commit rCOMM082447a2d740: [lib] Check ID conflicts when processing operations (authored by tomek). · Explain WhySep 27 2024, 3:54 AM2024-09-27 03:54:15 (UTC-7) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 44557 lib/shared/dm-ops/create-entry-spec.js
lib/shared/dm-ops/create-sidebar-spec.js
lib/shared/dm-ops/create-thread-spec.js
lib/shared/dm-ops/dm-op-spec.js
|
Can we extract this to its own line? Similar to how we want await to be visible, I think it's good for hooks to be as well