Websocket API needs support for users.[create,update,delete] and userProfile.update

Bug #1838942 reported by Kit Randel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Medium
Adam Collard

Bug Description

The websocket API currently only support user.get and user.list (see: https://git.launchpad.net/maas/tree/src/maasserver/websockets/handlers/user.py#n34). The following additional methods are required:

user.create, user.update, user.delete
userProfile.get, userProfile.update

This is currently blocking settings in react.

Related branches

Changed in maas:
status: New → Triaged
importance: Undecided → Critical
importance: Critical → Medium
Changed in maas:
status: Triaged → In Progress
assignee: nobody → Adam Collard (adam-collard)
Revision history for this message
Adam Collard (adam-collard) wrote :

Kit, can you clarify what you want to read/change on UserProfile? AFAICT, authorisation tokens are already handled in the websocket handler.

Changed in maas:
milestone: none → 2.6.1
status: In Progress → Fix Committed
Revision history for this message
Kit Randel (blr) wrote :

Thanks very much for landing that so promptly Adam!

We need a few more things please:

From User:

last_login ("last seen" column)
user_item.node_set.count ("machines" column, used to be "number of nodes in use")

From UserProfile:

is_local ("type" column)

I don't think there should be any issues on the angular client with adding additional fields to the existing user object as there's no particular schema on the client. It would be ideal if the user object could grow these new properties, rather than having a separate object/rpc method. We should probably have a chat about sensible client/api versioning at some point though.

Changed in maas:
milestone: 2.6.1 → 1.9.6
milestone: 1.9.6 → 2.7.0alpha1
Changed in maas:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.