Page MenuHomePhabricator

[lib] DMOperationSpec for create entry operation
ClosedPublic

Authored by will on Sep 12 2024, 10:33 PM.
Tags
None
Referenced Files
F3534675: D13316.id44193.diff
Wed, Dec 25, 12:53 PM
F3534605: D13316.id44246.diff
Wed, Dec 25, 12:38 PM
F3534573: D13316.id44116.diff
Wed, Dec 25, 12:21 PM
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)
Sun, Dec 22, 9:39 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
Branch
thick-threaded-entries
Lint
No Lint Coverage
Unit
No Test Coverage

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

We need to check that the thread exists.

lib/types/dm-ops.js
354–356

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

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

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

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

Addressed in rebase

lib/types/dm-ops.js
354–356

Addressed in rebase

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