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

Export browserHistory #4778

Merged
merged 3 commits into from
Feb 3, 2020
Merged

Conversation

larkox
Copy link
Contributor

@larkox larkox commented Jan 29, 2020

Summary

In order to make links behave as internal links, we must push the url into the browserHistory object. It is not possible to create a new browserHistory object from the plugins, as it must be passed as a prop to Mattermost app.

Therefore, we are exporting this browserHistory so plugins can create internal links.

Ticket Link

None

Related Pull Requests

Screenshots

None

@levb levb added 2: Dev Review Requires review by a core commiter 3: QA Review Requires review by a QA tester labels Jan 29, 2020
Copy link
Member

@cpoile cpoile left a comment

Choose a reason for hiding this comment

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

Talked to Christopher Speller about this, and it looks like there's a good reason for this. Adding it as an object is different from how we've exported others before, but I suppose it leaves it open to add other utils if we need to in the future.
Thanks @larkox!

@marianunez marianunez removed the 2: Dev Review Requires review by a core commiter label Jan 30, 2020
@marianunez
Copy link
Member

@lev thoughts on the QA Review on this? I believe it could be tested as part of mattermost-community/mattermost-plugin-todo#17?

Copy link
Member

@saturninoabril saturninoabril left a comment

Choose a reason for hiding this comment

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

Looks good to me. Functionality can be tested in the mentioned PR.

@saturninoabril saturninoabril 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 labels Feb 3, 2020
@saturninoabril saturninoabril added this to the v5.22.0 milestone Feb 3, 2020
@saturninoabril saturninoabril merged commit 1567504 into mattermost:master Feb 3, 2020
@amyblais amyblais added Changelog/Not Needed Does not require a changelog entry Docs/Not Needed Does not require documentation labels Mar 13, 2020
@marianunez
Copy link
Member

We need to update the documentation in the Web App Reference to include this new export here. Created ticket MM-23792

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
Development

Successfully merging this pull request may close these issues.

6 participants