-
Notifications
You must be signed in to change notification settings - Fork 59
Adding APIv4 Support and a few other features #55
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
Conversation
- Adding APIv4 Support - Enabling local settings - Allow posts from multiple teams - Added missing default plugins
|
@gotlium let us know if you have time to review this PR. Thanks! :) |
Adding APIv4 Support and a few other features
ignore messages with ignore strings anywhere in message, not just the…
Pulling the ignore fix from @wtodom
Getting the Multiple plugins Fix
Pulling in the multiple plugin fix
Minor fixes for APIv4 usage with multiple teams
|
@gotlium @deniskabalkin Would you have thoughts on the best way to transfer ownership of https://pypi.python.org/pypi/mattermost_bot? @attzonko is open to assuming ownership of the repo and/or forking it for now. |
|
I was actually looking into making the bot work with apiv4, but it seems there's already a PR opened for it (awesome!). So for that I hope @gotlium gives a pong back soon :) |
|
Hi, If I print If I connect to the webclient like a normal person / user, everything works fine |
|
@Sebastien-Meiffren I went ahead and opened an issue for you in my fork, for now it would be easier to resolve this there and push the change/fix to this pull request. Here is the link to the issue. |
this was caused by misuse of APIv4, the '/teams' endpoint returns only open teams. we need to use '/users/{user_id}/teams' to get all teams
referred discussion: https://forum.mattermost.org/t/solved-mattermost-v3-to-v4-upgrade-team-api-v4/4156/6
|
Sorry to hijack this PR but as a python beginner what's the best way to use your fork meanwhile? I used pip to get the latest version from LPgenerator but I would like to test out these changes at the moment. |
|
I would do it this way without removing installed mattermost_bot (from PyPI) :
|
|
MM api docs claim that the v3 api is deprecated as of 2018-01-16. How far away is this code from being able to be merged? --timball |
|
@timball Not sure the original author is ever planning to merge this in. Feel free to use my fork of this project. I plan on making a new pypi package shortly. |
|
Oh cool. can you update your docs? i tried to follow the example in the
readme and it blows up.
…--timball
On Tue, Feb 27, 2018 at 1:34 PM, Alex Tzonkov ***@***.***> wrote:
@timball <https://github.com/timball> Not sure the original author is
ever planning to merge this in. Feel free to use my fork of this project. I
plan on making a new pypi package shortly.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#55 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AACY8EjTCtDmiih0oJfptZV57oWQQ1nQks5tZEpBgaJpZM4RVLQo>
.
--
GPG key available on sks-keyservers.net
pub rsa2048/D0A8B0F1638B16EF 2018-01-03 Timothy Lu Hu Ball <
timball@gmail.com>
Primary key fingerprint: 1453 FD65 1D18 A992 621E E4BE D0A8 B0F1 638B 16EF
|
|
Before you could get around without using |
|
NVM I see that you updated the readme on how to use it thank you :) |
|
actually i figured what i did wrong. typo put `http` instead of `https` and
it gave a non-sensical error. Fixed the typo and i'm off to the races.
thanks!
…--timball
On Thu, Mar 1, 2018 at 5:14 PM, Patrick-Jeffrey Pollo Guilbert < ***@***.***> wrote:
NVM I see that you updated the readme on how to use it thank you :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#55 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AACY8J1uBUCKDS9kMv9b_MF5pk1qt_GYks5taHLHgaJpZM4RVLQo>
.
--
GPG key available on sks-keyservers.net
pub rsa2048/D0A8B0F1638B16EF 2018-01-03 Timothy Lu Hu Ball <
timball@gmail.com>
Primary key fingerprint: 1453 FD65 1D18 A992 621E E4BE D0A8 B0F1 638B 16EF
|
- revise test cases - merge mattermost_v4 to mattermost, remove all APIv3 endpoints - the existing webhook-related part was revised to APIv4 endpoints, but not fully tested yet.
|
@attzonko I am interested in contributing! I have a vested interest in seeing this apiV4 support thru and love python too! :) |
|
@scottleedavis Hey we ended up creating a new repo from this instead of a fork to change the name and be able to release pypi packages. take a look at https://github.com/attzonko/mmpy_bot Would love to have you contribute! |
This is our working version of the BOT which integrates a few of the outstanding pull requests as well as adds support for APIv4. Many of the changes including the APIv4 support were previously contributed by @seLain back in Sep'17, I just grabbed them from his repository and got them to work together with a few minor tweaks. Below is a high level summary of the changes.