[UI] Need to flush the discovered devices list
Bug #1685445 reported by
Mark Shuttleworth
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
Over time the discovered device list will have things in it which are no longer relevant. It would be useful to be able to flush from the list all devices last seen more than <n> hours / days ago.
Related branches
~steverydz/maas:clear-all-discovered-devices
Merged
into
maas:master
- Alberto Donato (community): Approve
- MAAS Lander: Approve
- Anthony Dillon: Approve
-
Diff: 275 lines (+166/-6)7 files modifiedsrc/maasserver/static/js/angular/controllers/dashboard.js (+47/-1)
src/maasserver/static/js/angular/controllers/tests/test_dashboard.js (+33/-0)
src/maasserver/static/js/angular/directives/maas_obj_form.js (+4/-2)
src/maasserver/static/js/angular/factories/discoveries.js (+10/-0)
src/maasserver/static/partials/dashboard.html (+57/-3)
src/maasserver/static/scss/_base_forms.scss (+4/-0)
src/maasserver/static/scss/_patterns_page-header.scss (+11/-0)
Changed in maas: | |
importance: | Undecided → Wishlist |
milestone: | none → 2.3.0 |
status: | New → Triaged |
summary: |
- Need to flush the discovered devices list + [UI] Need to flush the discovered devices list |
Changed in maas: | |
milestone: | 2.3.0 → 2.3.x |
Changed in maas: | |
status: | Triaged → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
See also: bug #1680632, which is very similar.
Note that MAAS uses the observed neighbour data to determine which IP address in the available pool was the least-recently used. So I would think about the tradeoffs between deleting the data and simply hiding discoveries from the user that are no longer relevant.
MAAS does have a way to clear out *all* the discoveries via the API/CLI (maas $PROFILE discoveries clear all=true), but (as suggested) we should allow deletion based on a time threshold, and expose it in the UI.