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

Fixes #12467 : Migrate 'components/get_post_link_modal' module and associated tests to TypeScript #4110

Merged
merged 9 commits into from
Nov 13, 2019
Merged

Conversation

M-ZubairAhmed
Copy link
Member

Summary

Migrated following javascript files to Typescript
components/widgets/settings/-

  • get post link model & test

Ticket Link

Fixes mattermost/mattermost#12467

Copy link
Member

@jespino jespino left a comment

Choose a reason for hiding this comment

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

Some changes required, but is looking good. Thanks @M-ZubairAhmed

@jespino jespino self-requested a review November 2, 2019 10:55
@M-ZubairAhmed
Copy link
Member Author

@jespino changes made, please take a look

super(props);

this.state = {
show: false,
post: {},
postId: 'undefined',
Copy link
Member

Choose a reason for hiding this comment

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

This is an arbitrary value here the undefined string, probably makes more sense to have an optional postId? attribute in the state, and don't set it here, and check it before is used. Actually, I think it makes no sense to be able to show the link if you don't have the postId, so probably we can check it in the render and return null instead of the modal if the postId is not set.

Copy link
Member

@jespino jespino left a comment

Choose a reason for hiding this comment

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

More changes needed around the postId state attribute. Otherwise, looks good to me. Thanks @M-ZubairAhmed

Copy link
Member

@jespino jespino left a comment

Choose a reason for hiding this comment

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

Now looks good to me. Thanks @M-ZubairAhmed! 🎉

@M-ZubairAhmed
Copy link
Member Author

Your welcome

@srkgupta srkgupta added the Setup Cloud Test Server Setup a test server using Mattermost Cloud label Nov 11, 2019
Copy link
Member

@devinbinnie devinbinnie left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks @M-ZubairAhmed!

@devinbinnie devinbinnie removed the 2: Dev Review Requires review by a core commiter label Nov 11, 2019
Copy link
Contributor

@srkgupta srkgupta left a comment

Choose a reason for hiding this comment

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

LGTM. Tested on the PR instance and there were no issues found.

@srkgupta srkgupta added 4: Reviews Complete All reviewers have approved the pull request QA Review Done and removed 3: QA Review Requires review by a QA tester Setup Cloud Test Server Setup a test server using Mattermost Cloud labels Nov 12, 2019
@mattermod
Copy link
Contributor

Test server destroyed

@srkgupta
Copy link
Contributor

Hi @M-ZubairAhmed
Can you sync the repo in order to merge.

@srkgupta srkgupta added the Tests/Done Release tests have been written label Nov 12, 2019
@M-ZubairAhmed
Copy link
Member Author

@srkgupta yes done

@devinbinnie devinbinnie merged commit ab7df0b into mattermost:master Nov 13, 2019
@amyblais amyblais added Changelog/Not Needed Does not require a changelog entry Docs/Not Needed Does not require documentation labels Nov 13, 2019
@hanzei hanzei added this to the v5.18.0 milestone Nov 13, 2019
@M-ZubairAhmed M-ZubairAhmed deleted the fixes-issue-12467 branch November 14, 2019 10:26
@M-ZubairAhmed M-ZubairAhmed changed the title MM-18960 Fixes #12467 : Migrate 'components/get_post_link_modal' module and associated tests to TypeScript Dec 22, 2019
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 QA Review Done Tests/Done Release tests have been written
Projects
None yet
7 participants