Re: Example code for GUI

2013-05-17 Thread Mike Tutkowski
May 18, 2013 6:53 AM > To: Pranav Saxena > Cc: dev@cloudstack.apache.org > Subject: Re: Example code for GUI > > So, Pranav, I'm curious when (and how) these JavaScript files get > interpreted (or compiled). I noticed the code where I was missing a comma > was related to a

RE: Example code for GUI

2013-05-17 Thread Pranav Saxena
--Original Message- From: Mike Tutkowski [mailto:mike.tutkow...@solidfire.com] Sent: Saturday, May 18, 2013 6:53 AM To: Pranav Saxena Cc: dev@cloudstack.apache.org Subject: Re: Example code for GUI So, Pranav, I'm curious when (and how) these JavaScript files get interpreted (or compiled)

Re: Example code for GUI

2013-05-17 Thread Mike Tutkowski
** ** > > *From:* Mike Tutkowski [mailto:mike.tutkow...@solidfire.com] > *Sent:* Saturday, May 18, 2013 3:15 AM > *To:* Pranav Saxena > *Cc:* dev@cloudstack.apache.org > > *Subject:* Re: Example code for GUI > > ** ** > > Once I found the JavaScript Console in Chrome, it wa

RE: Example code for GUI

2013-05-17 Thread Pranav Saxena
: Saturday, May 18, 2013 3:15 AM To: Pranav Saxena Cc: dev@cloudstack.apache.org Subject: Re: Example code for GUI Once I found the JavaScript Console in Chrome, it was easy to determine I was missing a comma in one place. It works as expected now. :) On Fri, May 17, 2013 at 3:19 PM, Mike Tutkowski

Re: Example code for GUI

2013-05-17 Thread Mike Tutkowski
Hi Wei, I was wondering if you and I should coordinate on what we want to call these IOPS values? As you know, mine are Min, Max, and Burst IOPS as relates to a SAN. Do you think I should put the word "Storage" or something in front of mine to distinguish from your Max Hypervisor IOPS? Thanks!

Re: Example code for GUI

2013-05-17 Thread Mike Tutkowski
This would handle the exception handling when the API throws an error** >>>> ** >>>> >>>> OR >>>> >>>> cloudStack.dialog.notice( { message:_l(‘ Minlops valus >>>> is greater than Max lops , plea

Re: Example code for GUI

2013-05-17 Thread Mike Tutkowski
cloudStack.dialog.notice( { message:_l(‘ Minlops valus >>> is greater than Max lops , please enter a correct value ‘) }); >>> >>> } >>> }); >>> >>> Thanks, >>> >>> Pranav >>> >>> *

Re: Example code for GUI

2013-05-17 Thread Mike Tutkowski
} >> }); >> >> Thanks, >> >> Pranav >> >> ** ** >> >> *From:* Mike Tutkowski [mailto:mike.tutkow...@solidfire.com] >> *Sent:* Friday, May 17, 2013 10:44 AM >> *To:* Pranav Saxena >> >> *Subject:*

Re: Example code for GUI

2013-05-17 Thread Mike Tutkowski
nks, > > Pranav > > ** ** > > *From:* Mike Tutkowski [mailto:mike.tutkow...@solidfire.com] > *Sent:* Friday, May 17, 2013 10:44 AM > *To:* Pranav Saxena > > *Subject:* Re: Example code for GUI > > ** ** > > Great, thanks! > > ** **

RE: Example code for GUI

2013-05-16 Thread Pranav Saxena
a correct value ') }); } }); Thanks, Pranav From: Mike Tutkowski [mailto:mike.tutkow...@solidfire.com] Sent: Friday, May 17, 2013 10:44 AM To: Pranav Saxena Subject: Re: Example code for GUI Great, thanks! One quick question comes to mind: If the criteria I'm checking

RE: Example code for GUI

2013-05-16 Thread Pranav Saxena
utkow...@solidfire.com) Subject: RE: Example code for GUI Yeah , so these dependencies/relationships would be handled when you are passing these parameters to the API call within the actions block. Below is the code snippet which will help you accomplish your tasks (might require little twe

RE: Example code for GUI

2013-05-16 Thread Pranav Saxena
n case you need any more information on this . The CPU > overcommit and memory overcommit feature was committed by me . Here > is the commit - > > https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=blobdiff;f= > ui/scripts/system.js;h=d76aa3e6a2e8d0d009728174f07d600c28febd8

Re: Example code for GUI

2013-05-16 Thread Mike Tutkowski
ble ), the >> structure for that is prepared by another widget (multiEdit.js) . That has >> a slightly complex way to invoke the relevant widget functions. Let me know >> in case you need any more information on this . The CPU overcommit and >> memory overcommit feature was committed

Re: Example code for GUI

2013-05-16 Thread Mike Tutkowski
CPU overcommit and > memory overcommit feature was committed by me . Here is the commit - > > https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=blobdiff;f=ui/scripts/system.js;h=d76aa3e6a2e8d0d009728174f07d600c28febd89;hp=e51bf90ba81445f176607823857e38f930d17c11;hb=215621daa88883dde4f09d55fde49e0bf0cd75f5;h

RE: Example code for GUI

2013-05-16 Thread Pranav Saxena
apache.org Subject: Re: Example code for GUI Thanks Isaac Regards Ilya Original message From: Isaac Chiang Date: To: dev@cloudstack.apache.org,"Musayev, Ilya" Subject: Re: Example code for GUI Hi Musayev, You'll find out that there are "creat

Re: Example code for GUI

2013-05-16 Thread Mike Tutkowski
Hi Wei, Thank you for the information. Your commit info should be quite valuable for me as a template for my own work. Talk to you later! On Thu, May 16, 2013 at 4:50 PM, Wei ZHOU wrote: > Mike, > > The features are totally different. For the VM Disk I/O Throttling, I want > to limit the vm

Re: Example code for GUI

2013-05-16 Thread Musayev, Ilya
Thanks Isaac Regards Ilya Original message From: Isaac Chiang Date: To: dev@cloudstack.apache.org,"Musayev, Ilya" Subject: Re: Example code for GUI Hi Musayev, You'll find out that there are "createForm" object under listView(or detailV

Re: Example code for GUI

2013-05-16 Thread Isaac Chiang
nge the field type from in UI from text field to > multi-select or checkbox group? Is this CSS only change or is there more to > it? > > > > Original message > From: Wei ZHOU > Date: > To: dev@cloudstack.apache.org > Subject: Re: Example code for GU

Re: Example code for GUI

2013-05-16 Thread Musayev, Ilya
Thank you Wei . Any idea on how can I change the field type from in UI from text field to multi-select or checkbox group? Is this CSS only change or is there more to it? Original message From: Wei ZHOU Date: To: dev@cloudstack.apache.org Subject: Re: Example code for GUI

Re: Example code for GUI

2013-05-16 Thread Wei ZHOU
ke Tutkowski [mailto:mike.tutkow...@solidfire.com] > > Sent: Thursday, May 16, 2013 6:26 PM > > To: dev@cloudstack.apache.org > > Subject: Re: Example code for GUI > > > > It looks like your feature revolves around rate limiting, if I understand > > correctly. > &

RE: Example code for GUI

2013-05-16 Thread Musayev, Ilya
ursday, May 16, 2013 6:26 PM > To: dev@cloudstack.apache.org > Subject: Re: Example code for GUI > > It looks like your feature revolves around rate limiting, if I understand > correctly. > > It seems like I could leverage a bit of what you're doing here, but I'd need

Re: Example code for GUI

2013-05-16 Thread Wei ZHOU
Mike, The features are totally different. For the VM Disk I/O Throttling, I want to limit the vm disk I/O in the hypervisors (support KVM only now). However, you do it in the storage device (such as SAN). I added two fields: bps and iops (maximum, not average/minimum/burst) in disk_offering and

Re: Example code for GUI

2013-05-16 Thread Mike Tutkowski
It looks like your feature revolves around rate limiting, if I understand correctly. It seems like I could leverage a bit of what you're doing here, but I'd need additional fields in the Add Disk Offering dialog (and DB) since we support min, max, and burst values for IOPS (as opposed to just a ma

Re: Example code for GUI

2013-05-16 Thread Mike Tutkowski
Thanks for the info, Wei. I am in the process of writing a storage plug-in for Edison's new storage framework. The idea is to be able to have a single SAN volume associated with a single data disk. In our SAN, you can set Min, Max, and Burst IOPS values on a volume-by-volume basis and I'd like to

Re: Example code for GUI

2013-05-16 Thread Wei ZHOU
Mike, I am working on Disk I/O Throttling now. The source code has been verified on 4.0.2. It need more test on master branch. I hope to finish it before the deadline of 4.2 feature freeze (31-5-2013). For more information: https://issues.apache.org/jira/browse/CLOUDSTACK-1301 https://cwiki.apach