Page MenuHomePhabricator

[lib] DMOperationSpec for remove members operation
ClosedPublic

Authored by tomek on Jul 24 2024, 10:43 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 23, 12:39 PM
Unknown Object (File)
Wed, Dec 18, 1:20 PM
Unknown Object (File)
Wed, Dec 18, 1:20 PM
Unknown Object (File)
Wed, Dec 18, 1:20 PM
Unknown Object (File)
Wed, Dec 18, 1:20 PM
Unknown Object (File)
Wed, Dec 18, 1:19 PM
Unknown Object (File)
Wed, Dec 18, 1:19 PM
Unknown Object (File)
Sat, Dec 14, 8:02 PM
Subscribers

Details

Summary
Test Plan

Just the Flow. Further testing will be performed after it is connected with the rest of the app.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.Jul 24 2024, 11:00 AM
Harbormaster failed remote builds in B30648: Diff 42744!
Harbormaster returned this revision to the author for changes because remote builds failed.Jul 25 2024, 9:06 AM
Harbormaster failed remote builds in B30671: Diff 42775!
tomek requested review of this revision.Jul 26 2024, 3:26 AM
lib/shared/dm-ops/remove-members-spec.js
48–53

Is this correct for sidebars?

67

Should we update the unread status?
Should we maybe think of doing that in the reducer instead of creating an action in all specs?

tomek marked an inline comment as done.

Correctly handle sidebars

lib/shared/dm-ops/remove-members-spec.js
67

Hmmm... I guess we could update the unread status every time a new message appears in the store.

inka added inline comments.
lib/shared/dm-ops/remove-members-spec.js
67

This would also make it easier to only update the status when a message with a bigger timestamp than all previous messages appears, if we decided we wanted to do that.

This revision is now accepted and ready to land.Jul 31 2024, 2:11 AM
lib/shared/dm-ops/remove-members-spec.js
67

It seems like updating the read status and replies count is really similar. But I'm not sure how to do it well. Going to search for a good solution.