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

[MM-17490] Moved defaultAriaLabelRenderer up to multiselect.jsx #3352

Merged
merged 2 commits into from
Aug 2, 2019

Conversation

devinbinnie
Copy link
Member

Summary

Multiselect was crashing the app when an ariaLabelRenderer wasn't specified. This PR moves the default renderer up to the multiselect component so there's always a renderer.

Ticket Link

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

@devinbinnie devinbinnie added 2: Dev Review Requires review by a core commiter 3: QA Review Requires review by a QA tester CherryPick/Approved Meant for the quality or patch release tracked in the milestone labels Aug 2, 2019
@devinbinnie devinbinnie added this to the v5.14.0 milestone Aug 2, 2019
@devinbinnie devinbinnie added the Setup Cloud Test Server Setup a test server using Mattermost Cloud label Aug 2, 2019
@mattermod
Copy link
Contributor

Creating a new SpinWick test server using Mattermost Cloud.

@mattermod
Copy link
Contributor

Timed out waiting for the mattermost installation. Please check the logs.

@mattermod
Copy link
Contributor

Spintmint test server creation failed. See the logs for more information.

@devinbinnie devinbinnie added Setup Cloud Test Server Setup a test server using Mattermost Cloud and removed Setup Cloud Test Server Setup a test server using Mattermost Cloud labels Aug 2, 2019
@mattermod
Copy link
Contributor

Creating a new SpinWick test server using Mattermost Cloud.

@mattermod
Copy link
Contributor

Timed out waiting for the mattermost installation. Please check the logs.

@mattermod
Copy link
Contributor

Spintmint test server creation failed. See the logs for more information.

@devinbinnie devinbinnie added Setup Old Test Server Triggers the creation of a test server and removed Setup Cloud Test Server Setup a test server using Mattermost Cloud labels Aug 2, 2019
@mattermod
Copy link
Contributor

Setup Test Server label detected. Spinmint test server created if build succeeds (checks pass and no conflicts with base branch).

@mattermod
Copy link
Contributor

Spinmint test server created at: https://i-01f906019d7806583.test.spinmint.com

Test Admin Account: Username: sysadmin | Password: sysadmin

Test User Account: Username: user-1 | Password: user-1

Internal IP: 172.26.22.227
Instance ID: i-01f906019d7806583

Copy link
Contributor

@lindalumitchell lindalumitchell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quick run-through of the issues I saw and a little surrounding smoke testing looks good to me.

@lindalumitchell lindalumitchell removed the 3: QA Review Requires review by a QA tester label Aug 2, 2019
render() {
const options = Object.assign([], this.props.options);
const {totalCount, users, values} = this.props;

let renderer;
if (this.props.ariaLabelRenderer) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It'd be easier to define this as a defaultProp on the component, so that it's automatically passed as this.props.ariaLabelRenderer when undefined (but not null) is otherwise passed. Here's an example of another component that does it: https://github.com/mattermost/mattermost-webapp/blob/master/components/widgets/badges/badge.jsx#L16

@hmhealey hmhealey merged commit 75db7e9 into mattermost:master Aug 2, 2019
@hmhealey hmhealey added 4: Reviews Complete All reviewers have approved the pull request and removed 2: Dev Review Requires review by a core commiter labels Aug 2, 2019
@mattermod mattermod added AutomatedCherryPick and removed CherryPick/Approved Meant for the quality or patch release tracked in the milestone labels Aug 2, 2019
mkraft pushed a commit that referenced this pull request Aug 2, 2019
* Moved defaultAriaLabelRenderer up to multiselect.jsx

* Addressing my own feedback
@amyblais amyblais added Changelog/Not Needed Does not require a changelog entry Docs/Not Needed Does not require documentation labels Aug 5, 2019
@lindalumitchell lindalumitchell added the Tests/Done Release tests have been written label Aug 9, 2019
skheria pushed a commit to uber-archive/mattermost-webapp that referenced this pull request Oct 3, 2019
…ermost#3352)

* [MM-17490] Moved defaultAriaLabelRenderer up to multiselect.jsx

* Addressing my own feedback
skheria pushed a commit to uber-archive/mattermost-webapp that referenced this pull request Oct 3, 2019
…ermost#3352)

* [MM-17490] Moved defaultAriaLabelRenderer up to multiselect.jsx

* Addressing my own feedback
@hanzei hanzei removed the Setup Old Test Server Triggers the creation of a test server label Feb 20, 2020
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 AutomatedCherryPick Changelog/Not Needed Does not require a changelog entry Docs/Not Needed Does not require documentation Tests/Done Release tests have been written
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants