Closed (fixed)
Project:
Cloud
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
4 Dec 2018 at 05:48 UTC
Updated:
28 Dec 2018 at 22:59 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #2
baldwinlouie commentedAttaching Version 1 of the patch. @yas, please try to test this on your personal environment to see if it works. I wrote a set of instructions in the README.txt portion of the patch. If you can follow along, that means it is descriptive enough for the general community. Please provide feedback if I need to make adjustments.
I think this will be tweaked a little bit before it gets checked in.
Comment #4
yas@baldwinlouie
I couldn't apply the patch. Could you please take a look at it?
Comment #5
baldwinlouie commented@yas, can you please update your local instance from Git before applying? It is failing at
This code came from this issue: https://www.drupal.org/project/cloud/issues/3015916
Comment #6
yas@Baldwinlouie,
I still have the following error... I checked it starting from
git clone...:Comment #7
yasComment #8
baldwinlouie commented@yas, Sorry about that. I had to update my local environment and merge my Unit tests into InstanceTest.php. That has changed since my patch.
Comment #9
baldwinlouie commentedchanging to needs review
Comment #10
yas@baldwinlouie
It would be better that the dropdown list can be:
Comment #11
baldwinlouie commented@yas, responding to your questions.
1. The "|" is actually a delimiter. The value on the left of the "|" is actually the "name" of the schedule in DynamoDB. The value on the right is whatever you want to display to users. If a user wants to configure it like you described, they can enter the following into the configuration
The "key" _HAS_ to correspond to schedule name defined in DynamoDB. If not, the AWS Instance Scheduler will not be able to pick up the schedule correctly. See screenshot:
2. See answer for #1.
3. AWS doesn't let you attach multiple schedule tags to an instance. Therefore it is not possible to let users select multiple values from the dropdown. Instead of specifying multiple schedule tags, to configure multiple schedules, you will have to configure multiple periods and associate them to the schedule in DynamoDB. See this url for explanation https://aws.amazon.com/answers/infrastructure-management/instance-schedu... . Question #3 at the bottom.
4. To verify if this is system is working there are a few things you can look at
Comment #12
yas@baldwinlouie,
Thank you for your explanation. I understand the "|" is actually a delimiter, but I thought it would be easy to see if the dropdown list shows the list by the more human readable way. We can have another point of view that the dropdown list shows as it is as the tag value since the IT admin knows AWS scheduler system and spec. But still it would be better to think about the same level of viewpoint for a user, not an IT admin.
As for #2, I just suggest simply cosmetically put a new line to make a paragraph or put
<strong>...</strong>HTML tag.#3, I understand that it looks an IT admin needs to configure a specific single tag value for multiple schedule.
#4, I understand it.
Thanks
Yas
Comment #13
baldwinlouie commented@yas, Thank you for your suggestions. I understand your point of view. I'm attaching a patch that address #1 and #2.
Comment #14
yas@baldwinlouie
Thank you for your understanding and the modification. Now it looks good to me.
I found I couldn't setup the schedule in ServerTemplate form. Can you add the dropdown list at ServerTemplate, too? I think it would be nice to have the one.
Comment #15
baldwinlouie commented@yas, Updated patch with the schedule field on the Server Template itself. The patch as an update hook to update existing instances.
Comment #16
yas@baldwinlouie
The patch couldn't successfully be applied. Probably I merged the patch at https://www.drupal.org/project/cloud/issues/3017858 at first? Sorry, could you make the patch again?
Comment #17
baldwinlouie commented@yas, here's a reroll with the latest code from Git.
Comment #18
yas@baldwinlouie
Thank you for the updated patch, however unfortunately it couldn't be applied (-_-; since the other fix makes it change. Could you please re-roll again? Sorry for the inconvenience.
Comment #19
baldwinlouie commented@yas, here is the re-roll.
Comment #20
baldwinlouie commentedComment #21
yas@baldwinlouie
Thank you for the updated patch. It looks good to work! I'll merge it and mark this issue as
Fixed.Comment #23
yas