schoaf / qa-mattermost-notifications Goto Github PK
View Code? Open in Web Editor NEWEnable Mattermost notifications for Q2A
License: GNU General Public License v3.0
Enable Mattermost notifications for Q2A
License: GNU General Public License v3.0
Hi @Schoaf,
Thank you for sharing your project with us, great work with the Question2Answer integration!
We'd also like to welcome you to join the integrations community channel on our nightly builds server, if you're not a member yet.
Wonderful work! Can't wait to share it with the rest of the Mattermost community!
There should be a possibility to update a posted question once it has been answered so that people know they don't have to look into it any more.
Now with Mattermost Buttons, the user can easily update the post by himself. So as soon as somebody is interested in the updated status of the question, the can hit a button, that will update the message. Thereby the update gets visible to all other users so they do not have to bother any more.
When a question has been answered the first time, a notification should be posted into Mattermost so that all people know it has already been answered. This could potentially been done by referencing the post of the question - like a comment.
The filter for category does not seem to work. All questions of all categories get posted to the webhook if no tag filter is specified.
Hey @Schoaf !
First, hugely appreciate you sharing this project back with the world. Fantastic work!
I wanted to let you know about our plans moving to API v4:
To make the Mattermost API web service easier to use and to offer more powerful options for these integrations, Mattermost will be moving to a new API version soon. Highlights include:
We plan to release API version 4 on March 16th, with Mattermost server 3.7. While the current API version 3 will be supported until September 16th, we recommend you begin using API version 4 soon after its release.
API version 4 is an active and on-going project. If you're interested in helping contribute, please join our Mattermost community instance and the APIv4 channel.
We've prepared a contribution process for APIv4 and a progress tracker for new APIv4 enpoints to help you get started.
We're also open for suggestions on adding new API endpoints to help with your integration.
At the moment URLs are put together in the "/123/why-do-birds-sing" way.
Also the other options should be considered.
If you specify a categories filter like:
cat1, cat2, cat3
it is not working because of the white spaces.
cat1, cat2, cat3
works.
Update documentation to reflect changes introduced by #10
Let's start by the beginning: Thank you for this plugin, really nice !
I've unfortunately run into a mysql issue : PHP Question2Answer MySQL query error 1146: Table 'q2a.qa_userprofile' doesn't exist
.
As I'm using external user accounts (with the help of qa-external-cas), I didn't initialized this table at startup.
For record, I simply fix this by modifying this line by $user_full_name = $username;
and the next line by $user_icon_url = "";
.
If you have a better idea, I'll be glad to discuss about it :)
Hi,
I had to adapt the createMattermostMessageAttachment
function to make it work with modern Mattermost.
Here is what I return:
return array(
'username' => utf8_encode($bot_name),
'icon_url' => utf8_encode($icon_url),
'text' => utf8_encode(
"**".$pretext."** \n"
.'['.$title.']('.$title_link.') by '.'['.$author_name.']('.$author_link.')'." \n"
.$message
),
);
Special characters like äüö are not encoded correctly.
Category link is using the category name and should use the category identifier (slug) in the URL.
At the moment if the tags match is only checked if the category matches or there is a wildcard (* - matches all).
But if a question is posted in no category, it makes sense to check if at least the tag is matching.
Maybe it makes sense to always check both...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.