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

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

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

VCL-568 - refresh current reservations page 15 minutes after a reservation 
becomes available

requests.php:
-modified viewRequests: removed 'userconnected' from each entry in $requests, 
handling process a different way
-modified getViewRequestHTMLitem: changed how timeoutdata items are handled, 
base more things on entries in computerloadlog, if no entries in 
computerloadlog, refresh page after reconnecttimeout or at end of reservation, 
whichever is sooner; set id for each timeoutvalue based on request id
-modified AJconnectRequest: removed 'timeoutvalue' class from timeout, changed 
id from timeoutvalue to connecttimeout; switched to using 
getReservationNextTimeout instead of getReservationConnectTimeout; if timeout 
is not null, send it with returned data so javascript can update timeout value 
for reservation
-modified getReservationNextTimeout: changed connecttimeout to 
initialconnecttimeout, added reconnecttimeout, stopped using loadstate ids and 
added subquery to get ids from computerloadstate table based on the names
-removed getReservationConnectTimeout
-removed checkUserConnect
-modified addConnectTimeout: updated to get state id from computerloadstate 
based on state name instead of using id directly

requests.js:
-modified checkTimeouts: changed nextcheck to 15; delete timeoutvalue dom 
element when timeout expires; if no timeouts, set nextcheck to 60
-modified connectRequestCB: if timeoutid in data.items, update value to 
data.items.timeout
-modified checkConnectTimeout: if no connecttimeout object, return; updated to 
get value from connecttimeout instead of timeoutvalue; if value == 0, return; 
set value to 0 when expires before doing AJAX call

> refresh current reservations page 15 minutes after a reservation becomes 
> available
> ----------------------------------------------------------------------------------
>
>                 Key: VCL-568
>                 URL: https://issues.apache.org/jira/browse/VCL-568
>             Project: VCL
>          Issue Type: Improvement
>          Components: vcld (backend), web gui (frontend)
>            Reporter: Josh Thompson
>            Assignee: Josh Thompson
>             Fix For: 2.4
>
>
> It would be useful to refresh the current reservations page shortly after a 
> timeout could have occurred so that users will see if the reservation timed 
> out.
> We'll key off events in computerloadlog. 
> Two entries will be created in the variable table - acknowledgetimeout and 
> connecttimeout that will have values that are the timeout period in seconds.  
> One entry will be added to computerloadstate - connecttimeout.
> When vcld inserts the 'reserved' computerloadstate into computerloadlog, both 
> vcld and the frontend will key off of that timestamp and 
> variable.acknowledgetimeout to know when the reservation will timeout if the 
> user does not click the Connect button.  
> When the user clicks the Connect button, the frontend will insert an entry 
> into computerloadlog for connecttimeout.  Both vcld and the frontend will key 
> off of that timestamp and variable.connecttimeout to know when the 
> reservation will timeout if the user never connects.



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

Reply via email to