Page MenuHomePhabricator

[lib] DMOperationSpec for remove members operation
ClosedPublic

Authored by tomek on Jul 24 2024, 10:43 AM.
Tags
None
Referenced Files
F2629660: D12872.id42899.diff
Sat, Sep 7, 1:42 PM
F2629642: D12872.id43046.diff
Sat, Sep 7, 1:41 PM
Unknown Object (File)
Fri, Aug 30, 8:11 PM
Unknown Object (File)
Fri, Aug 30, 11:20 AM
Unknown Object (File)
Thu, Aug 29, 2:29 PM
Unknown Object (File)
Thu, Aug 29, 2:29 PM
Unknown Object (File)
Thu, Aug 29, 2:29 PM
Unknown Object (File)
Thu, Aug 29, 2:28 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
Lint Not Applicable
Unit
Tests Not Applicable

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 ↗(On Diff #42822)

Is this correct for sidebars?

67 ↗(On Diff #42822)

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 ↗(On Diff #42822)

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 ↗(On Diff #42822)

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 ↗(On Diff #42822)

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.