Page MenuHomePhabricator

[lib] DMOperationSpec for create entry operation
ClosedPublic

Authored by will on Sep 12 2024, 10:33 PM.
Tags
None
Referenced Files
F3197423: D13316.diff
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)
Sun, Oct 20, 2:57 PM
Unknown Object (File)
Sun, Oct 20, 2:57 PM
Unknown Object (File)
Sun, Oct 20, 2:57 PM
Unknown Object (File)
Sun, Oct 20, 2:57 PM
Unknown Object (File)
Tue, Oct 15, 2:09 AM
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
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 ↗(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