=== modified file 'doc/changes.rst'
@@ -10,6 +10,8 @@
one page.
* Make TestJob a restricted resource, and update views to reflect
restrictions.
+* Add admin action to set the health_status of all boards with pass
+ status to unknown status -- for use after a rollout.
.. _version_0_10.1:
=== modified file 'lava_scheduler_app/admin.py'
@@ -18,8 +18,14 @@
device.put_into_online_mode(request.user, "admin action")
online_action.short_description = "take online"
+def health_unknown(modeladmin, request, queryset):
+ for device in queryset.filter(health_status=Device.HEALTH_PASS):
+ device.health_status = Device.HEALTH_UNKNOWN
+ device.save()
+health_unknown.short_description = "set health_status to unknown"
+
class DeviceAdmin(admin.ModelAdmin):
- actions = [online_action, offline_action]
+ actions = [online_action, offline_action, health_unknown]
list_filter = ['device_type', 'status']
admin.site.register(Device, DeviceAdmin)