[Toaster] Questions about date range function

Reyna, David david.reyna at windriver.com
Sun Mar 15 23:47:18 PDT 2015


Hi Belén,

I have the date range selectors working now for Toaster-1.8, with just  a few remaining requested enhancements in progress. To that end I had a few questions.

1) How persistent do you want the date range values?

Do you want them just persistent to the page, in other words revert to dateMin and dateMax and you leave and return to the page?

Or do you want them persistent to the session, in other words preserved in the cookie stash?

2) To get the Datepicker to work I will need to restore "toastergui/static/js/jquery-ui.js" file. This file was apparently removed since Toaster-1.6.

I will mention that this file is 436 Kb in size, and will overwhelm any patch file submission. Should I commit this file in a separate patch? Or is there another way to get it back into Toaster without the overhead?

BTW, I do not think that there is an easy way just to push the Datepicker code from "jquery-ui.js", without hacking and risk.

3) For the dateMin and dateMax, it would appear that I need to instantiate the build table in the view in order to sort it by the "started" and "completed" fields.

Should I perhaps avoid a second sort for "completed" by using the minimum "started" date as dateMin and perhaps the maximum "started" date plus one as dateMax? The build tables are small now, but they could conceivably be quite large, and these values should nicely bracket the actual dates.

Thanks,
David



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/toaster/attachments/20150316/9854c2c0/attachment.html>


More information about the toaster mailing list