Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

MM-9973: ignore dispatched events against unregistered suggestion boxes #1052

Conversation

lieut-data
Copy link
Member

Summary

In a slow network environment, typing a channel name, then erasing it,
then quickly typing again and hitting enter to unmount the suggestion
box could result in a previous network call eventually dispatching an
event for the now unregistered suggestion box. If the dispatched event
was for an empty string, it would incorrectly try to handle that,
ultimately attempting to dereference undefined.push.

Ticket Link

https://mattermost.atlassian.net/browse/MM-9973

Checklist

  • Ran make check-style to check for style errors (required for all pull requests)
  • Ran make test to ensure unit and component tests passed
  • Added or updated unit tests (required for all new features)

In a slow network environment, typing a channel name, then erasing it,
then quickly typing again and hitting enter to unmount the suggestion
box could result in a previous network call eventually dispatching an
event for the now unregistered suggestion box. If the dispatched event
was for an empty string, it would incorrectly try to handle that,
ultimately attempting to dereference `undefined.push`.
@jasonblais jasonblais added this to the v4.9.0 milestone Apr 4, 2018
@jasonblais jasonblais added the 2: Dev Review Requires review by a core commiter label Apr 4, 2018
@amyblais amyblais added 4: Reviews Complete All reviewers have approved the pull request and removed 2: Dev Review Requires review by a core commiter labels Apr 5, 2018
@lieut-data lieut-data changed the base branch from master to release-4.9 April 5, 2018 19:58
@GoldUniform GoldUniform merged commit b1c8b07 into release-4.9 Apr 6, 2018
@GoldUniform GoldUniform deleted the MM-9973-handle-late-events-to-unregistered-suggestion-box branch April 6, 2018 13:43
@amyblais amyblais added Changelog/Done Required changelog entry has been written Docs/Not Needed Does not require documentation labels Apr 6, 2018
@lindalumitchell lindalumitchell added the Tests/Not Needed Does not require new release tests label Apr 25, 2018
hmhealey added a commit that referenced this pull request Mar 17, 2021
* MM-21584 Add initial reducers and actions for channel categories

* MM-21584 Add initial selectors for channel categories

* Add channelCategories to the base reducer

* Remove collapsedById

* Fix typo in test name
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
4: Reviews Complete All reviewers have approved the pull request Changelog/Done Required changelog entry has been written Docs/Not Needed Does not require documentation Tests/Not Needed Does not require new release tests
Projects
None yet
8 participants