Allow search by parent_id filter to retrieve all child devices

Bug #1662614 reported by Sulochan Acharya
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
craton
Fix Released
Critical
git-harry

Bug Description

Currently we dont have any way of getting all the devices that belong to one parent. Allowing this filter will allow for users to get all children to form a "cab/switch" view.

for example:

/v1/devices?region_id=1&parent_id=5

Should get all child devices that have parent_id=5

We should also consider options to control the number of descendant levels to retrieve. Perhaps the default should be all; then paginate as necessary.

See also https://bugs.launchpad.net/craton/+bug/1664696

Changed in craton:
importance: Undecided → High
Changed in craton:
importance: High → Critical
Changed in craton:
assignee: nobody → git-harry (git-harry)
Jim Baker (jimbaker)
description: updated
description: updated
Ian Cordasco (icordasc)
Changed in craton:
milestone: none → v0.1.0
Revision history for this message
Thomas Maddox (thomas-maddox) wrote :
Changed in craton:
status: New → 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.