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

[mattermost] Required parameter should be channel Id #658

Open
animeshk08 opened this issue Apr 30, 2020 · 2 comments
Open

[mattermost] Required parameter should be channel Id #658

animeshk08 opened this issue Apr 30, 2020 · 2 comments

Comments

@animeshk08
Copy link
Contributor

The help text of Mattermost backend mentions the required parameter as Channel name.

parser.parser.add_argument('channel',

However, going through the source code and mentioned example in the Perceval documentation I think the required parameter is channel id.

I would also like to suggest an alternative. We can use the following API to get a list of channels and match the channel name to retrieve the channel id(as done in groups.io and gitter): https://api.mattermost.com/#tag/channels/paths/~1channels/get

@sduenas
Copy link
Member

sduenas commented Apr 30, 2020

I would also like to suggest an alternative. We can use the following API to get a list of channels and match the channel name to retrieve the channel id(as done in groups.io and gitter): https://api.mattermost.com/#tag/channels/paths/~1channels/get

That's an option but when we created this backend it was based on the slack backend, so they have the same parameters to execute them. I understand that to get the id of the channel is an extra step, though.

Also, I'm not sure if the name of a channel can change. I guess they can so not sure how the other parts of the GrimoireLab stack would work if this is the case. It's something to take into account.

@animeshk08
Copy link
Contributor Author

Thank you for the reply @sduenas
The identifier for the channel is visible in the URL itself hence it is easy for anyone to setup up Perceval backend of Slack. On the other hand, to get ID of a channel in Mattermost I had to go to {channel_name} -> view info, which gave me the below details.
mattermostID

Also, I'm not sure if the name of a channel can change. I guess they can so not sure how the other parts of the GrimoireLab stack would work if this is the case. It's something to take into account.

You can rename the channel as well as the URL where the channel lies, going to {channel_name}-> rename channel. Doing this, however, does not change the channel ID.
mattermost

NOTE:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants