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

[GH-15620] Migrated string refs in signup_email #6602

Merged

Conversation

varunks99
Copy link
Contributor

@varunks99 varunks99 commented Oct 1, 2020

Summary

This pull request migrates all string-refs in ./components/signup/signupemail/signupemail.jsx to functional ones using the createRef API.

Ticket Link

https://mattermost.atlassian.net/browse/MM-29085
This fixes mattermost/mattermost#15620.

@jasonblais jasonblais requested review from reflog and Willyfrog October 1, 2020 15:57
@jasonblais jasonblais added the 2: Dev Review Requires review by a core commiter label Oct 1, 2020
Copy link
Contributor

@reflog reflog left a comment

Choose a reason for hiding this comment

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

@varunks99 - thanks for you contribution!
Please run npm run fix to address linting issues.

Comment on lines 61 to 63
this.email = React.createRef();
this.name = React.createRef();
this.password = React.createRef();
Copy link
Contributor

Choose a reason for hiding this comment

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

Please rename to 'emailRef', 'nameRef', etc

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@reflog, I renamed the refs and fixed the linting issues.

@varunks99 varunks99 force-pushed the GH-15620_migrate_refs_signup_email branch from 9657da8 to 11b0c5e Compare October 1, 2020 17:49
Renamed refs

Fixed linting issue
@varunks99 varunks99 force-pushed the GH-15620_migrate_refs_signup_email branch from 11b0c5e to f2d9fd8 Compare October 1, 2020 18:35
@varunks99 varunks99 requested a review from reflog October 1, 2020 19:01
Copy link
Contributor

@reflog reflog left a comment

Choose a reason for hiding this comment

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

💯 Thanks, looking good!

Copy link
Contributor

@Willyfrog Willyfrog left a comment

Choose a reason for hiding this comment

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

LGTM

@Willyfrog Willyfrog requested a review from jgilliam17 October 2, 2020 09:19
@Willyfrog Willyfrog added 3: QA Review Requires review by a QA tester and removed 2: Dev Review Requires review by a core commiter labels Oct 2, 2020
@jgilliam17 jgilliam17 added the Setup Cloud Test Server Setup a test server using Mattermost Cloud label Oct 2, 2020
Copy link
Contributor

@jgilliam17 jgilliam17 left a comment

Choose a reason for hiding this comment

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

Thank you @varunks99
Tested, looks good to merge.

  • Verified email sign-up works es expected.

@jgilliam17 jgilliam17 added 4: Reviews Complete All reviewers have approved the pull request and removed 3: QA Review Requires review by a QA tester Setup Cloud Test Server Setup a test server using Mattermost Cloud labels Oct 2, 2020
@mm-cloud-bot
Copy link

Test server destroyed

@jfrerich
Copy link
Contributor

jfrerich commented Oct 2, 2020

@reflog, If this looks good to you, would you mind merging? Thanks!

@reflog reflog merged commit 580e48d into mattermost:master Oct 2, 2020
@reflog
Copy link
Contributor

reflog commented Oct 2, 2020

@reflog, If this looks good to you, would you mind merging? Thanks!

Done

@amyblais amyblais added Changelog/Not Needed Does not require a changelog entry Docs/Not Needed Does not require documentation labels Oct 2, 2020
Tak-Iwamoto pushed a commit to Tak-Iwamoto/mattermost-webapp that referenced this pull request Oct 6, 2020
…o MM-20462

* 'master' of github.com:Tak-Iwamoto/mattermost-webapp:
  [MM-22161] - Improve accessibility of channel switcher (mattermost#6199)
  [MM-20460] Migrate 'components/permissions_gates/channel_permission_gate' module and associated tests to TypeScript (mattermost#6601)
  [GH-15724] Remove usage of findDOMNode from Create Team screens (mattermost#6621)
  [MM-29302] Billing Summary Card - No Billing History case (mattermost#6639)
  /files should target=_blank (mattermost#6616)
  MM T134 visual verification of tooltips (mattermost#6604)
  MM-24812 Add e2e tests for adding reactions to existing reactions in archived channel posts (mattermost#6579)
  [MM-20490] Migrate 'components/post_view/combined_user_activity_post' module and associated tests to TypeScript (mattermost#6632)
  MM-24810 Add e2e for reactions for archived channel posts (mattermost#6562)
  [MM-28965] - Prevent link overlap in channel header (mattermost#6546)
  MM-28780: Migrate dotMenu string refs to functional ones (mattermost#6592)
  Cypress/E2E: Fix archived channel specs (mattermost#6617)
  Fixed cypress env for PostgreSQL connection (mattermost#6627)
  Migrate post_list_row component to typescript (mattermost#6593)
  Cypress/E2E: Fix managing bot accounts spec (mattermost#6614)
  Cypress/E2E: Stabilize profile popover spec (mattermost#6612)
  Migrated string refs in signup_email (mattermost#6602)
  Renaming diagnostics-to-telemetry (mattermost#5741)
jfrerich pushed a commit that referenced this pull request Oct 23, 2020
Renamed refs

Fixed linting issue
calebroseland pushed a commit that referenced this pull request Oct 27, 2020
Renamed refs

Fixed linting issue
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/Not Needed Does not require a changelog entry Docs/Not Needed Does not require documentation Hacktoberfest hacktoberfest-accepted
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrate string-refs to functional ones: this.refs.email
9 participants