Page MenuHomePhabricator

[lib] DMOperationSpec for create entry operation
ClosedPublic

Authored by will on Thu, Sep 12, 10:33 PM.
Tags
None
Referenced Files
F2755419: D13316.id44117.diff
Wed, Sep 18, 9:40 PM
Unknown Object (File)
Tue, Sep 17, 2:41 PM
Unknown Object (File)
Tue, Sep 17, 12:57 PM
Unknown Object (File)
Tue, Sep 17, 11:54 AM
Unknown Object (File)
Tue, Sep 17, 11:44 AM
Unknown Object (File)
Sun, Sep 15, 12:40 PM
Unknown Object (File)
Sat, Sep 14, 12:05 AM
Unknown Object (File)
Fri, Sep 13, 8:53 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.Thu, Sep 12, 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.Fri, Sep 13, 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.Mon, Sep 16, 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.Mon, Sep 16, 3:56 PM