Mattermost-server: Expand Plugin API to trigger user typing event

Created on 3 Oct 2019  ·  10Comments  ·  Source: mattermost/mattermost-server

Other systems such as MS Teams, it provides context to the user on longer running operations that the bot is “thinking”. See example below of the MS Teams Github Bot “typing”

msteams

  1. Expose a REST API for /users/ https://github.com/mattermost/mattermost-server/blob/master/api4/user.go#L22 to let System Admins trigger the typing event for any arbitrary user. Follow https://github.com/mattermost/mattermost-server/blob/master/api4/plugin.go#L36 /plugins/{plugin_id}/enable example on how to check for system admin permissions and/or parse post params. For regular users, the api will trigger the typing event for the currently logged in user.
  2. Expose same typing API to PluginsAPI https://github.com/mattermost/mattermost-server/blob/master/plugin/api.go#L16

If you're interested please comment here and come join our "Contributors" community channel on our daily build server, where you can discuss questions with community members and the Mattermost core team. For technical advice or questions, please join our "Developers" community channel.

New contributors please see our Developer's Guide.

JIRA: https://mattermost.atlassian.net/browse/MM-18756

AreToolkit Medium Help Wanted PR Exists TecGo

Most helpful comment

Hey @ruzaikr I am still working on this

All 10 comments

I would like to take a look at this one

@mdabydeen are you still working on this? If not, I'd love to take it up :)

Hey @ruzaikr I am still working on this

@mdabydeen, how's your efforts on this ticket? Anything we can provide guidance on?

Making this available for the public again

Hey, I would like to take a look at this

Thanks, @attilamolnar!

I'll cook something up in an hour or so

Diffs:
Fix a small oversight in api4/user_test, needed for an upcoming test
https://github.com/mattermost/mattermost-server/compare/master...attilamolnar:fix-assert-ws

First take at the feature itself
https://github.com/attilamolnar/mattermost-server/compare/fix-assert-ws...attilamolnar:MM-18756_typing-api

Let me know how you want to proceed. I would appreciate some feedback before updating the API docs and such.

@attilamolnar, can you submit a draft PR linking this issue for review? That will be an easier mechanism to give early feedback on the approach.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

demedos picture demedos  ·  37Comments

mthld picture mthld  ·  29Comments

hjek picture hjek  ·  31Comments

phillip-white-sociomantic picture phillip-white-sociomantic  ·  37Comments

freswa picture freswa  ·  34Comments