Page MenuHomePhabricator

[lib] Merge consecutive membership robotext messages
ClosedPublic

Authored by ashoat on Wed, Oct 9, 8:35 PM.
Tags
None
Referenced Files
F3102036: D13689.diff
Wed, Oct 30, 10:21 AM
F3097658: D13689.id45130.diff
Tue, Oct 29, 3:45 PM
F3097417: D13689.diff
Tue, Oct 29, 3:11 PM
Unknown Object (File)
Wed, Oct 23, 8:34 PM
Unknown Object (File)
Wed, Oct 23, 9:16 AM
Unknown Object (File)
Wed, Oct 23, 8:48 AM
Unknown Object (File)
Wed, Oct 23, 2:39 AM
Unknown Object (File)
Wed, Oct 23, 12:47 AM
Subscribers
None

Details

Summary

This reduces a bunch of noise in community roots when people get auto-added to the communities.

Depends on D13688

Test Plan

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

Note that the extra vertical spacing in the test video is caused by ENG-2928, and is unrelated to the work here

tomek added inline comments.
lib/shared/messages/join-thread-message-spec.js
158–170 ↗(On Diff #45048)

All but one generated robotext messages will be discarded while merging the messages, which means that we're performing O(n^2) operations where n is a number of consecutive join thread messages. This isn't a big issue unless we expect a huge number of thread joins.

lib/shared/messages/remove-members-message-spec.js
39 ↗(On Diff #45048)
This revision is now accepted and ready to land.Fri, Oct 11, 7:58 AM

Use ^ as separator instead of |

Undo last update and address feedback

lib/shared/messages/join-thread-message-spec.js
158–170 ↗(On Diff #45048)

Makes sense. I don't think it should be a big concern, and I didn't notice any performance issues while testing

This revision was landed with ongoing or failed builds.Sun, Oct 13, 6:44 PM
This revision was automatically updated to reflect the committed changes.