You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brooklyn.apache.org by GitBox <gi...@apache.org> on 2019/12/04 15:08:30 UTC

[GitHub] [brooklyn-ui] frogfather opened a new pull request #150: add time information to application data to allow ordering launch time

frogfather opened a new pull request #150: add time information to application data to allow ordering launch time
URL: https://github.com/apache/brooklyn-ui/pull/150
 
 
   https://www.pivotaltracker.com/story/show/168213431
   Data retrieved from the application api does not contain any time information. 
   To allow ordering by time we have to make a further call to entityApi.entityActivities. This returns an array of all activities. We take the startTimeUtc value of the first entry as the application start.
   
   However...
   
   The application data is updated frequently and this erases the time information. To avoid having to make multiple api calls (which causes an annoying flicker on the screen) we store the time information locally in an array of objects. For existing applications we can simply merge this time information with the refreshed data. For new applications, we temporarily set the startTimeUtc to the current time to ensure it's at the top of the list and then call a method to update our local time data.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services