Comments

Xiaohua Guan created an issue. See original summary.

xiaohua guan’s picture

StatusFileSize
new8.22 KB
xiaohua guan’s picture

StatusFileSize
new10.96 KB
xiaohua guan’s picture

Status: Active » Needs review

Status: Needs review » Needs work

The last submitted patch, 3: 3056551-3.patch, failed testing. View results

xiaohua guan’s picture

StatusFileSize
new10.96 KB
xiaohua guan’s picture

Status: Needs work » Needs review
xiaohua guan’s picture

@yas

Please review the patch file. Thanks.

yas’s picture

StatusFileSize
new92.11 KB
new98.53 KB
new477.75 KB

@xiaohua-guan

Thank you for providing the patch. I tested the patch, and I have the following concerns:

  • Case 1:
    1. Clicked Edit User Data menu from the dropdown list on my instance in the instance listing view.
    2. Modified my User Data.
    3. Clicked Reboot button.
    4. It gives the error as the following screenshot: screenshot-20190523b.png
      → We need to stop the instance before we modify the User Data.
  • Case 2:
    1. Launched my instance w/ my User Data.
    2. Tried to edit the instance.
    3. The User Data textarea was disabled and empty as the following screenshot: screenshot-20190523c.png
  • Case 3:
    1. Tried to edit my User Data a couple times
    2. After that, the User Data shows in Instance detailed view as the following screenshot (looks Base64 encoded?): screenshot-20190523d.png

My suggestions and requests:

  1. If the instance is stopped, User Data textarea is editable w/ the current User Data content in the Instance Edit View.
  2. If the instance is running, User Data textarea is disable w/ the current User Data content in the Instance Edit View.
  3. If the instance is stopped, Edit User Data menu from the dropdown list is shown.
  4. If the instance is running, here are two suggestions:
    1. Edit User Data menu from the dropdown list is not shown.
    2. _OR_Edit User Data menu from the dropdown list is shown on purpose. When a user click the Edit User Data menu, an alert message should be shown like: To edit your instance's user data you first need to <strong></em><a href="[LINK_TO_STOP_INSTANCE]">stop</a></em></strong> your instance. on the Instance listing view or the Instance Edit View

What do you think?

yas’s picture

Status: Needs review » Needs work
Related issues: +#3053872: Launch a instance using a ServerTemplate with user data
xiaohua guan’s picture

StatusFileSize
new12.86 KB
xiaohua guan’s picture

Status: Needs work » Needs review
xiaohua guan’s picture

StatusFileSize
new12.86 KB
xiaohua guan’s picture

StatusFileSize
new12.88 KB
xiaohua guan’s picture

@yas

I removed the "Edit User Data" link, and updated the user data when updating the instance in Instance Edit View.

Please review the patch file. Thanks.

yas’s picture

@xiaohua-guan

Thank you for the updated patch! It looks good to me, but could you please change hook_update_N to aws_cloud_update_8146 since 3056198-6.patch will be merged soon. Also, I would like to add a link to start operation in a notification message:

screenshot-20190524a.png

xiaohua guan’s picture

StatusFileSize
new13.22 KB
xiaohua guan’s picture

@yas

I fixed the code as you said. Please review the patch file.

yas’s picture

Issue summary: View changes
baldwinlouie’s picture

Status: Needs review » Needs work

@xiaohua-guan, Thank you for the patch. I have the following comment.

+++ b/modules/cloud_service_providers/aws_cloud/aws_cloud.install
@@ -740,6 +740,13 @@ function aws_cloud_update_8144() {
+  aws_cloud_update_entity_definitions();

Can you check if this function still works with 8.7.X?

View these links for more information:
https://www.drupal.org/project/drupal/releases/8.7.0 - Under the "Important Update Information" section.
https://www.drupal.org/node/3034742

xiaohua guan’s picture

StatusFileSize
new18.7 KB
xiaohua guan’s picture

Status: Needs work » Needs review
xiaohua guan’s picture

@baldwinlouie

Thanks for your comment. I've changed the way to update the field's type. Please review the new patch file. Thanks.

yas’s picture

Issue summary: View changes
StatusFileSize
new5.43 KB

@xiaohua-guan

Thank you for the updated patch. I created the interdiff.

@baldwinlouie
@masami

What do you think?

yas’s picture

StatusFileSize
new5.6 KB

@all

Sorry, I replaced the interdiff since my previous one was wrong.

baldwinlouie’s picture

@all, this looks good.

yas’s picture

Status: Needs review » Reviewed & tested by the community

@baldwinlouie

Thank you for your review. I'll merge the patch to 8.x-1.x and 8.x-2.x and close this issue as Fixed.

yas’s picture

  • yas committed 3894fe8 on 8.x-1.x authored by Xiaohua Guan
    Issue #3056551 by Xiaohua Guan, yas, baldwinlouie: Edit user data of a...

  • yas committed f4fc26d on 8.x-2.x authored by Xiaohua Guan
    Issue #3056551 by Xiaohua Guan, yas, baldwinlouie: Edit user data of a...
yas’s picture

Status: Reviewed & tested by the community » Fixed
xiaohua guan’s picture

StatusFileSize
new772 bytes
xiaohua guan’s picture

Status: Fixed » Needs review
yas’s picture

Status: Needs review » Reviewed & tested by the community

@xiaohua-guan

Thank you for the bugfix. I'll merge the patch to 8.x-1.x and 8.x-2.x and close this issue as Fixed.

  • yas committed 3709e10 on 8.x-1.x authored by Xiaohua Guan
    Issue #3056551 by Xiaohua Guan, yas, baldwinlouie: Edit user data of a...

  • yas committed 3c19ef1 on 8.x-2.x authored by Xiaohua Guan
    Issue #3056551 by Xiaohua Guan, yas, baldwinlouie: Edit user data of a...
yas’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.