Page MenuHomePhabricator

[lib] DMOperationSpec for create entry operation
ClosedPublic

Authored by will on Sep 12 2024, 10:33 PM.
Tags
None
Referenced Files
F3307280: D13316.diff
Tue, Nov 19, 1:26 AM
Unknown Object (File)
Sat, Nov 16, 10:09 PM
Unknown Object (File)
Sun, Nov 10, 2:56 PM
Unknown Object (File)
Sat, Nov 9, 8:31 AM
Unknown Object (File)
Thu, Oct 31, 2:23 AM
Unknown Object (File)
Thu, Oct 31, 2:04 AM
Unknown Object (File)
Oct 20 2024, 2:57 PM
Unknown Object (File)
Oct 20 2024, 2:57 PM
Subscribers
None

Details

Summary

Create the spec for create entyr operation and getting initial feedback

Depends on D13315

Test Plan

Flow. Testing later in stack

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

will requested review of this revision.Sep 12 2024, 10:50 PM
tomek added inline comments.
lib/shared/dm-ops/create-entry-spec.js
75–77 ↗(On Diff #44116)

We need to check that the thread exists.

lib/types/dm-ops.js
354–356 ↗(On Diff #44116)

It is a bit confusing to see time next to a date because it feels like they represent two parts of the same timestamp. I think we should make it explicit that the date relates to an entry while time to the operation.

This revision is now accepted and ready to land.Sep 13 2024, 2:51 AM
lib/shared/dm-ops/create-entry-spec.js
28 ↗(On Diff #44116)

Could you please amend the test plan to check for notifs? In order to test notifs simply flip NEXT_CODE_VERSION to 0 and notifs shoudl work automatically.

75 ↗(On Diff #44116)

You use methodName() {} syntext here while you use methodName: () => {} syntax for other methods. Could you please, use consistent approach for all methods in this spec? Ideally you would copy the approach that is used in other specs.

lib/shared/dm-ops/create-entry-spec.js
75 ↗(On Diff #44116)

Our general approach on picking between these is usually not about consistency in a single file. We opt for methodName() {} when we don't need methodName: () => {} because it's slightly better for performance. We use methodName: () => {} when we want to pass this.methodName somewhere without losing the bound this variable

will marked an inline comment as done.Sep 16 2024, 2:32 PM
will added inline comments.
lib/shared/dm-ops/create-entry-spec.js
75–77 ↗(On Diff #44116)

Addressed in rebase

lib/types/dm-ops.js
354–356 ↗(On Diff #44116)

Addressed in rebase

will marked an inline comment as done and an inline comment as not done.Sep 16 2024, 3:56 PM