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

MM-18708 Fix state of embed visibility for users logging in on same browser/client #4177

Merged
merged 1 commit into from
Nov 12, 2019
Merged

Conversation

saturninoabril
Copy link
Member

Summary

Found this bug by @larkox while submitting E2E for link preview which includes tests for:
...
4. Have the user who posted it click the collapse arrows to collapse the preview
5. Verify preview did not collapse for other user
...

This can probably affect those users who shares logging in to a common workstation.

Before, the storage key is ...:isVisible_[postId]:
Screen Shot 2019-11-11 at 10 25 27 PM

After, ...:isVisible_[userId]_[postId]:
Screen Shot 2019-11-11 at 10 03 09 PM

Note: I didn't bother to add backwards compatibility since this don't have noticeable change (where user mostly cared on embed visibility of recent post/s).

Ticket Link

Jira ticket: MM-18708

@saturninoabril saturninoabril added 2: Dev Review Requires review by a core commiter 3: QA Review Requires review by a QA tester labels Nov 11, 2019
@saturninoabril saturninoabril added this to the v5.18.0 milestone Nov 11, 2019
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.

LGTM

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

@srkgupta srkgupta added 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 11, 2019
@mattermod
Copy link
Contributor

Test server destroyed

@saturninoabril saturninoabril added 4: Reviews Complete All reviewers have approved the pull request and removed 2: Dev Review Requires review by a core commiter labels Nov 12, 2019
@saturninoabril saturninoabril merged commit a2dbe12 into mattermost:master Nov 12, 2019
@saturninoabril saturninoabril deleted the MM-18708 branch November 12, 2019 15:32
@amyblais amyblais added Changelog/Not Needed Does not require a changelog entry Docs/Not Needed Does not require documentation labels Nov 12, 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
Projects
None yet
6 participants