Mattermost-server: API v4 Documentation for Status/Get User Status does not match payload received.

Created on 10 Mar 2018  路  5Comments  路  Source: mattermost/mattermost-server

Summary

The API documentation for status/get user status does not match actual payload received from server as the active_channel property is missing.

Steps to reproduce

Perform an authenticated API request for /users/{userId}/status and view the response payload.

Expected behavior

Per API v4 documentation, the payload
{ "user_id": "string", "status": "string", "manual": true, "last_activity_at": 0, "active_channel": "string" }

Observed behavior (that appears unintentional)

{ user_id: 'wxaf11dne7bu8mn73e3r13q4ah', status: 'away', manual: false, last_activity_at: 1520640100796 }

Most helpful comment

All 5 comments

Hi @scottliddick,

Thank you for this report!

I have created a ticket for this here for our engineers to fix: https://mattermost.atlassian.net/browse/MM-9798

I can fix that @amyblais. I will assign that ticket to me

Thank you @cpanato!

As the PR above has been merged, I'll close this issue off here now...

Was this page helpful?
0 / 5 - 0 ratings