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

[MM-27738] Reset after patch #6209

Merged

Conversation

hahmadia
Copy link
Contributor

Summary

Reset hasAllowReferenceChanged and hasGroupMentionNameChanged to false after a successful patch. Otherwise, keep it at the value it is.

Ticket Link

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

@hahmadia hahmadia requested a review from mkraft August 19, 2020 19:28
@hahmadia hahmadia added 2: Dev Review Requires review by a core commiter 3: QA Review Requires review by a QA tester labels Aug 19, 2020
@hahmadia hahmadia added this to the v5.27 milestone Aug 19, 2020
@amyblais amyblais added the CherryPick/Approved Meant for the quality or patch release tracked in the milestone label Aug 19, 2020
@mkraft mkraft requested a review from srkgupta August 20, 2020 11:36
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.

Hi @hahmadia

The issue is partially fixed now. Can you please check and fix this.

Here's what does not works:

  1. Link the Group for first time and then click on Edit.
  2. Now enable the Group Mentions and save.
  3. Now try to add a team/channel and then save again.
    Notice the same invalid error is displayed.

Here's when this fix works:

  1. Click on Edit for a Group for which Group mention is already enabled.
  2. Add a Team/Channel and save.
    Notice: There are no errors displayed this time after this PR.

@hahmadia hahmadia removed the 2: Dev Review Requires review by a core commiter label Aug 20, 2020
@srkgupta srkgupta added the Setup Cloud Test Server Setup a test server using Mattermost Cloud label Aug 20, 2020
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.

Sorry @hahmadia. For some reason it did not work fine on my local instance previously. I tested this again on the cloud test instance and the issue is working fine there. The issue is fixed and is working fine. Approving the PR.

@srkgupta srkgupta 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 Aug 20, 2020
@mm-cloud-bot
Copy link

Test server destroyed

@mm-cloud-bot
Copy link

Test server creation failed. See the logs for more information.

@hahmadia hahmadia merged commit 18531fc into mattermost:master Aug 20, 2020
mattermost-build pushed a commit to mattermost-build/mattermost-webapp that referenced this pull request Aug 20, 2020
* Reset after patch

* return false if server error occured

* fix linting

(cherry picked from commit 18531fc)
@mattermod mattermod added CherryPick/Done Successfully cherry-picked to the quality or patch release tracked in the milestone and removed CherryPick/Approved Meant for the quality or patch release tracked in the milestone labels Aug 20, 2020
@hahmadia hahmadia deleted the MM-27738-Group-Mentions-Already-Taken branch August 20, 2020 14:40
@hahmadia hahmadia changed the title Reset after patch [MM-27738] Reset after patch Aug 20, 2020
mattermod pushed a commit that referenced this pull request Aug 20, 2020
@amyblais amyblais added Changelog/Done Required changelog entry has been written Docs/Not Needed Does not require documentation labels Aug 21, 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 Changelog/Done Required changelog entry has been written CherryPick/Done Successfully cherry-picked to the quality or patch release tracked in the milestone Docs/Not Needed Does not require documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants