Closed (fixed)
Project:
Cloud
Version:
3.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
11 Sep 2020 at 17:53 UTC
Updated:
26 Sep 2020 at 08:54 UTC
Jump to comment: Most recent, Most recent file
To minimize AJAX requests, send the initial dataset with in Drupal.settings.k8s Javascript object when the page is rendered.

| Comment | File | Size | Author |
|---|---|---|---|
| #11 | 3170519-11-fix-coding-standard.patch | 729 bytes | yas |
| #2 | 3170519-2.patch | 60.41 KB | baldwinlouie |
Comments
Comment #2
baldwinlouie commentedAttaching patch with this refactoring. The patch refactors the common functions used in the
APIController.phpandK8sNamespaceCostsChartcontroller.phpinto aK8sBlockTrait.phpThe Blocks can use these common functions to build the initial dataset.
@masami and @MasatoTakada should also review this because the refactoring touches code from the https://www.drupal.org/project/cloud/issues/3168861
Comment #3
baldwinlouie commentedScreenshot of the data sent in the Javascript array.
Comment #4
yas@baldwinlouie
Thank you for the refactoring. I tested the patch and it looks good to me.
@masami
What do you think?
Comment #5
yasComment #6
masami commented@yas
@baldwinlouie
The patch looks great, so I change the status to RTBC.
Comment #7
yas@masami
Thank you for your review. I'll merge the patch to
8.x-2.xand3.xand close this issue asFixed.Comment #10
yasComment #11
yas@baldwinloue @masami
Fixing the coding standard violation.
Comment #12
yasI'll merge the patch to
8.x-2.xand3.xand close this issue asFixed.Comment #15
yas