Closed (fixed)
Project:
Cloud
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
8 Feb 2019 at 23:33 UTC
Updated:
23 Feb 2019 at 08:39 UTC
Jump to comment: Most recent, Most recent file
Expand the permissions for cloud server template entities to include
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | 3031735-2.patch | 26.84 KB | baldwinlouie |
Comments
Comment #2
baldwinlouie commentedAttaching patch that adds the permissions described above. As part of this patch, I did a little refactoring to CloudContentListBuilder.php
Also, @yas, I didn't need to do any query altering. After we talked about it, I looked through the code and realized that Cloud server templates did not use Views to build the listing page :) It still used the old style ListBuilder class.
Comment #3
yas@baldwinlouie,
Thank you for the patch! It looks good to me but could you please fix the coding standards warnings?
It looks 14 more than branch result according to https://www.drupal.org/pift-ci-job/1195068
@xiaohua-guan
What do you think?
Comment #4
baldwinlouie commented@yas, working on the coding syntax now.
Comment #5
yas@baldwinlouie,
Thanks, actually I like these permission additions in this patch since an IT admin can provide Server Template to the user w/o giving
Editpermission (Screenshot 1). Now the Server Templates can show the onlyLaunchbutton for the operation. (Screenshot 2, Screenshot 3)Screenshot 1

Screenshot 2

Screenshot 3

Comment #6
yasComment #7
yasComment #8
baldwinlouie commentedComment #9
baldwinlouie commentedrerolling the patch.
Comment #10
xiaohua guan commented@yas, @baldwinlouie
It looks OK to me. So I will change the status to RTBC.
Comment #11
yas@baldwinlouie
Thank you for the updated patch. The code got even better quality now.
@xiaohua-guan
Thank you for your review. I'll merge the patch and close this issue as
Fixed.Comment #13
yas@team,
I'll push a tag for 8.x-1.0-rc2 with this patch and create a release for RC2.
Thank you for your hard work!