Websocket API needs support for last seen, number of nodes in use, and user type

Bug #1840132 reported by Lilyana Videnova
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Medium
Adam Collard

Bug Description

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.

Related branches

Changed in maas:
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Adam Collard (adam-collard)
Changed in maas:
milestone: none → 2.6.1
status: In Progress → Fix Committed
Changed in maas:
milestone: 2.6.1 → 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.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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