Problem/Motivation
Refactor CloudStore as following:
- Store costs of all cost types in one field for K8s Resource Store entities
- Add the duration for CloudConfig to keep the CloudStore
- Remove field_cloud_context from CloudStore and use cloud_context
- Refactor costs field and resources field of K8s Resource Store entities
Issue fork cloud-3221053
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3221053-refactor-cloudstore
changes, plain diff MR !287
Comments
Comment #3
masami commentedComment #4
yas@masami
Thank you for supplying the patch. I reviewed it and posted my comments. I think most of
foreach()can be changed toarray_map(). Also, please use the dependency injection if available.Thanks
Comment #5
masami commentedComment #6
yas@masami
Thank you for the update. It looks good, and I posted my comments above for some cosmetic change. Thanks
Comment #7
masami commentedComment #8
yas@masami
Thank you for the update. I posted my additional comments above. Could you please check it? Thanks
Comment #9
yasComment #10
yas@masami
Thank you for the update. There is one leftover (remove
$avg_cost = [];) and my one minor refactoring comment.Comment #11
masami commentedComment #12
yas@masmai
Thank you for the update. It looks good to me now. I'll merge the patch to
4.xand close this issue as Fixed.Comment #15
yas