Files
team/server/cmd
a444cc3c29 [MM-69598] Add mmctl user status command to get and set a user's status (#37312)
* Add mmctl user status get/set commands

Co-authored-by: mattermost-code <[email protected]>

* Register local-mode status routes and add mmctl status tests

Expose GET/PUT /users/{user_id}/status on the local socket API so
mmctl --local can read and set statuses, and add unit + e2e coverage
for the new user status commands.

Co-authored-by: mattermost-code <[email protected]>

* Improve mmctl status tests and validate dnd-end-time earlier

Validate --dnd-end-time before resolving the target user, add command
wiring/flag coverage, a GetMe failure case, and stronger e2e assertions
from the test-quality review.

Co-authored-by: mattermost-code <[email protected]>

* Regenerate mmctl docs for user status command

Co-authored-by: mattermost-code <[email protected]>

* Accept RFC3339 UTC timestamps for mmctl status --dnd-end-time

Use time.RFC3339 parsing so --dnd-end-time accepts Z-suffixed UTC
timestamps in addition to numeric offsets, per CodeRabbit review feedback.

Co-authored-by: mattermost-code <[email protected]>

* Show @username in mmctl user status output

---------

Co-authored-by: mattermost-code <[email protected]>

Co-authored-by: Hanzo Dev <[email protected]>
2026-07-02 12:38:58 +02:00
..