websocket machine.list parent group label should return hostname

Bug #1992332 reported by Peter Makowski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
High
Björn Tillenius

Bug Description

machine.list group by parent label should return a parent's hostname instead of system id

Request:
{"method":"machine.list","type":0,"params":{"filter":{},"group_collapsed":[],"group_key":"parent","page_number":1,"page_size":50,"sort_direction":"descending","sort_key":"hostname"},"request_id":25}

Current:

{"type": 1, "request_id": 23, "rtype": 0, "result": {"count": 9, "cur_page": 1, "num_pages": 1, "groups": [{"name": "knpge8", "value": "knpge8", "count": 9, "collapsed": false, "items": []}}

Expected:

{"type": 1, "request_id": 23, "rtype": 0, "result": {"count": 9, "cur_page": 1, "num_pages": 1, "groups": [{"name": "bolla", "value": "knpge8", "count": 9, "collapsed": false, "items": []}}

Related branches

Alberto Donato (ack)
Changed in maas:
milestone: none → 3.3.0
status: New → Triaged
importance: Undecided → High
Changed in maas:
assignee: nobody → Björn Tillenius (bjornt)
Changed in maas:
status: Triaged → In Progress
Revision history for this message
Peter Makowski (petermakowski) wrote :

We do not necessarily need the returned value to be system_id, it can be the hostname for both label and value if that makes it easier.

Changed in maas:
status: In Progress → Fix Committed
Changed in maas:
milestone: 3.3.0 → 3.3.0-beta1
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.