[Toaster] questions about 6040: build date picker
Damian, Alexandru
alexandru.damian at intel.com
Mon Apr 7 04:34:28 PDT 2014
Comments inline on selected topic :)
Alex
On Mon, Apr 7, 2014 at 6:04 AM, Reyna, David <david.reyna at windriver.com>wrote:
> Hi Belen,
>
> I have a preliminary implementation for 6040 which adds support for
> selecting a date range for build started and build completed, a feature my
> group agrees is very important.
>
> My preliminary commit is here (rebased as of Friday night) :
> dreyna/build_datepicker_6040
>
> I have some questions and issues though:
>
> 1) I enabled the “datepicker” Javascript by including “jquery-ui.js” in
> “build.html”. However this file is some 400k in size, which seems excessive
> especially for a home page. Do we want to extract the “datepicker” et. al.
> scripts into a smaller file?
>
[Alex] No, this is fine. Browser-side cache of the .js files will prevent
transferring this file from the server on each page load. Further more,
extracting parts of this file will make for unmaintainable code
when we try to upgrade the framework. Having this in the base file is the
way to go.
> 2) I copied and added the ‘jquery-ui-1.10.3.custom.min.css’ from your
> Toaster website so that the background colors for the datapicker would be
> valid. I however find that the month forward and back buttons are
> invisible. Do you know what CSS we need to adjust to get them visible again?
>
> 3) We have a multitude of date formats, and I image that they change for
> Europe.
>
> (a) The build page shows in my page “dd/mm/yy”
> (b) The filters want “yyyy-mm-dd”
> (c) The datepicker returns “mm/dd/yyyy”
>
> I have enabled the code to convert “mm/dd/yyyy” and “yyyy/mm/dd”
> internally to “yyyy-mm-dd” for the filter (and illegal date formats are
> converted to ‘today’).
>
> I am concerned however that we allow users to directly edit the date
> fields, and especially that they might think that the build tables date
> field (“dd/mm/yy”) is expected. Should I add that as a supported format? Is
> it different for Europe??
>
[Alex] I would
suggest to pick a single format for the UI purposes ("dd/mm/yy" as it's in
the build page), and convert behind the scenes for individual needs, as
the users won't see these conversions.
>
> 4) I am finding that the backend is not processing my composite date
> ranges as expected. I get it to work for “yesterday”, which is for example
> “filter=completed_on__gte;completed_on__lt:2014-04-05;2014-04-06”, but
> other ranges return the wrong set.
>
> For example,
> “filter=completed_on__gte;completed_on__lt:2014-03-01;2014-03-02” returns
> all of my April builds.
>
>
I am not sure how tested “_get_filtering_query” is for these extended
> formats, or maybe I am not using it correctly. That is perhaps a question
> for Alex? Could you ping him?
>
[Alex] I'm gonna look in, I remember seeing similar problems with other
datetime queries, but I don't remember offhand what did go on in there.
> - David
>
>
>
--
Alex Damian
Yocto Project
SSG / OTC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/toaster/attachments/20140407/999ca675/attachment-0001.html>
More information about the toaster
mailing list