Closed (fixed)
Project:
Cloud
Version:
3.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
28 Sep 2020 at 17:10 UTC
Updated:
12 Oct 2020 at 18:19 UTC
Jump to comment: Most recent, Most recent file
Currently, if K8s Node Allocated Resources and K8s Node Heatmap blocks are on one page, such as the dashboard, the blocks make two separate AJAS calls to the /cloud/k8s/node/all_allocated_resources.
Refactor to reduce it to one call.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | 3173655-8.x-2.x.patch | 16.14 KB | baldwinlouie |
| #2 | Content___Cloud_Orchestrator.png | 110.32 KB | baldwinlouie |
| #2 | one-ajax-call.jpg | 387.57 KB | baldwinlouie |
| #2 | 3173655-2.patch | 16.13 KB | baldwinlouie |
Comments
Comment #2
baldwinlouie commentedAttaching patch that introduces an Event/Listener model for updating
K8s Node Allocated ResourcesandK8s Node Heatmapblock. The option is configurable so that the old updating method is still available to users.Also refactored
K8sNodeAllocatedResourcesBlockto return an initial dataset when the block is rendered. This reduces an extra AJAX call.Comment #3
baldwinlouie commentedComment #4
yas@baldwinlouie
Thank you for the refactoring. I'll merge the patch to
8.x-2.xand3.xand close this issue asFixed.Comment #6
yasComment #7
baldwinlouie commentedAdding 8.x-2.x patch