From d4ec2786c0f9977ccb95b5c56720433e77fd9c12 Mon Sep 17 00:00:00 2001 From: Tobias Urdin <tobias.urdin@binero.com> Date: Fri, 26 Apr 2024 21:03:38 +0200 Subject: [PATCH] Show Created At column for backups table The backups tables does not show the created_at field today and to find the one you need by date you need to open all backup to figure out what date you want, this is not optimal since the whole point of backups is to jump back to a date as quick as possible. Change-Id: Ie68e54d41b0ad919ecc468e162b4939eac3ae4b3 (cherry picked from commit 0ffd5c7ae100079a333be4c905b584e88eb3f9d0) --- openstack_dashboard/dashboards/admin/backups/tables.py | 4 +++- openstack_dashboard/dashboards/project/backups/tables.py | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/openstack_dashboard/dashboards/admin/backups/tables.py b/openstack_dashboard/dashboards/admin/backups/tables.py index 51991aa985..ded186853f 100644 --- a/openstack_dashboard/dashboards/admin/backups/tables.py +++ b/openstack_dashboard/dashboards/admin/backups/tables.py @@ -117,6 +117,7 @@ class AdminBackupsTable(project_tables.BackupsTable): snapshot = AdminSnapshotColumn("snapshot", verbose_name=_("Snapshot"), link="horizon:admin:snapshots:detail") + created_at = tables.Column("created_at", verbose_name=_("Created At")) class Meta(object): name = "volume_backups" @@ -128,4 +129,5 @@ class AdminBackupsTable(project_tables.BackupsTable): row_actions = (AdminRestoreBackup, ForceDeleteBackup, AdminDeleteBackup, UpdateVolumeBackupStatusAction,) columns = ('project', 'name', 'description', 'size', 'status', - 'availability_zone', 'volume_name', 'snapshot',) + 'availability_zone', 'volume_name', 'snapshot', + 'created_at') diff --git a/openstack_dashboard/dashboards/project/backups/tables.py b/openstack_dashboard/dashboards/project/backups/tables.py index be036d8b8a..3b340091b9 100644 --- a/openstack_dashboard/dashboards/project/backups/tables.py +++ b/openstack_dashboard/dashboards/project/backups/tables.py @@ -189,6 +189,7 @@ class BackupsTable(tables.DataTable): snapshot = SnapshotColumn("snapshot", verbose_name=_("Snapshot"), link="horizon:project:snapshots:detail") + created_at = tables.Column("created_at", verbose_name=_("Created At")) def current_page(self): return self._meta.current_page()