Bug #41615
mgr/dashboard: Empty datatable rendered before data has been fetched
0%
Description
This might be regression due to the move to a newer version of Bootstrap.
On some screens, like the RBD page, the datatable seems to be initially rendered without any content. Only after the data has been fully retrieved from the REST API the table is populated and then rendered again, which looks strange. Instead, some kind of progress indicator should be displayed while the data is loaded, which gets replaced with the rendered datatable afterwards.
Related issues
History
#1 Updated by Volker Theile over 4 years ago
I remember that we had this behaviour a long time ago (may be it was in oA). I found an issue on the Swimlane ngx-datatable issue tracker: https://github.com/swimlane/ngx-datatable/issues/193.
#2 Updated by Patrick Seidensal over 4 years ago
This happens for me, too, when I visit the OSD page, look at the details of one OSD and then switch back and forth between the "Attributes" and "Metadata" tabs.
#3 Updated by Volker Theile over 4 years ago
- Status changed from New to In Progress
- Assignee set to Volker Theile
- Backport set to nautilus
- Affected Versions v14.2.3, v15.0.0 added
#4 Updated by Volker Theile over 4 years ago
There is already a workaround implemented in the datatable, but it's not fully working:
https://github.com/ceph/ceph/blob/master/src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table/table.component.ts#L325
The final fix is:
https://github.com/swimlane/ngx-datatable/issues/193#issuecomment-332481322
#5 Updated by Volker Theile over 4 years ago
- Status changed from In Progress to Fix Under Review
- Pull request ID set to 30103
#6 Updated by Ricardo Marques over 4 years ago
- Target version set to v15.0.0
#7 Updated by Lenz Grimmer over 4 years ago
- Status changed from Fix Under Review to Pending Backport
#8 Updated by Volker Theile over 4 years ago
- Related to Bug #41683: mgr/dashboard: Rendering datatable causes Angular runtime error added
#9 Updated by Nathan Cutler over 4 years ago
- Copied to Backport #41698: nautilus: mgr/dashboard: Empty datatable rendered before data has been fetched added
#10 Updated by Nathan Cutler over 4 years ago
- Status changed from Pending Backport to Resolved
#11 Updated by Nathan Cutler over 4 years ago
- Related to Feature #41787: mgr/dashboard: Improve workaround to redraw datatables added
#12 Updated by Ernesto Puerta almost 3 years ago
- Project changed from mgr to Dashboard
- Category changed from 132 to General