Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix plugin config parsing #7729

Merged
merged 1 commit into from Oct 27, 2017

Conversation

ccbrown
Copy link
Contributor

@ccbrown ccbrown commented Oct 27, 2017

Summary

Ran into some trouble trying to put together a plugin. Maps with user-controlled keys in Viper configurations don't really work. In particular, periods in map keys make weird things happen. So reverse-dns plugin ids like "com.mattermost.plugins.jira" weren't working.

See spf13/viper#324 and spf13/viper#348.

I think it's probably best if we just avoid maps in configurations.

@jasonblais Are we okay with a breaking change for the JIRA plugin? Users would have to reconfigure it.

I'll need to put in a webapp PR as well, so no one merge this until I do that.

Edit: Figured out a less impactful workaround. Let's just go with that for now.

Ticket Link

N/A

Checklist

N/A

@ccbrown ccbrown added 1: PM Review Requires review by a product manager 2: Dev Review Requires review by a developer labels Oct 27, 2017
@ccbrown ccbrown self-assigned this Oct 27, 2017
@ccbrown ccbrown removed the 1: PM Review Requires review by a product manager label Oct 27, 2017
@ccbrown ccbrown removed their assignment Oct 27, 2017
@enahum enahum merged commit 4e9eb39 into mattermost:master Oct 27, 2017
@jasonblais jasonblais added Changelog/Not Needed Does not require a changelog entry Docs/Not Needed Does not require documentation labels Nov 2, 2017
@lindalumitchell lindalumitchell added the Tests/Not Needed New release tests not required label Nov 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2: Dev Review Requires review by a developer Changelog/Not Needed Does not require a changelog entry Docs/Not Needed Does not require documentation Tests/Not Needed New release tests not required
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants