[ 
https://issues.apache.org/jira/browse/VCL-776?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14244763#comment-14244763
 ] 

ASF subversion and git services commented on VCL-776:
-----------------------------------------------------

Commit 1645069 from [~jfthomps] in branch 'vcl/trunk'
[ https://svn.apache.org/r1645069 ]

VCL-776 - rework resource code to have a base class for all resources and 
inheriting classes for each resource type

added a function to all resources (except computer) to check for resource usage 
before prompting to confirm deleting it

computer.php: modified AJdeleteComputers: added query to check usage in 
blockComputers

image.php: added checkResourceInUse: checks for image usage in reservation, 
blockComputers, blockRequest, serverprofile, subimages, and vmprofile

managementnode.php: added checkResourceInUse: check for managment node usage in 
reservations and blockRequest

resource.php:
-modified AJpromptToggleDeleteResource: added call to checkResourceInUse before 
prompting to confirm deleting resource
-added checkResourceInUse stub function

schedule.php: added checkResourceInUse: check for schedule usage in computer 
table

resources.js: modified toggleDeleteResourceCB: if status is 'inuse' create 
dialog to display message to user about resource being in use

> rework resource code to have a base class for all resources and inheriting 
> classes for each resource type
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: VCL-776
>                 URL: https://issues.apache.org/jira/browse/VCL-776
>             Project: VCL
>          Issue Type: Improvement
>          Components: web gui (frontend)
>            Reporter: Josh Thompson
>             Fix For: 2.4
>
>
> Rework the code for resources so that there is a base class that provides 
> common functionality for all resources and then write classes that inherit 
> from that to provide resource specific functionality.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to