From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 8D02EE007E2 for ; Fri, 28 Feb 2014 02:46:25 -0800 (PST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP; 28 Feb 2014 02:46:25 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.97,561,1389772800"; d="scan'208";a="491434902" Received: from irsmsx102.ger.corp.intel.com ([163.33.3.155]) by orsmga002.jf.intel.com with ESMTP; 28 Feb 2014 02:46:23 -0800 Received: from irsmsx152.ger.corp.intel.com (163.33.192.66) by IRSMSX102.ger.corp.intel.com (163.33.3.155) with Microsoft SMTP Server (TLS) id 14.3.123.3; Fri, 28 Feb 2014 10:46:21 +0000 Received: from irsmsx106.ger.corp.intel.com ([169.254.8.177]) by IRSMSX152.ger.corp.intel.com ([163.33.192.66]) with mapi id 14.03.0123.003; Fri, 28 Feb 2014 10:46:21 +0000 From: "Barros Pena, Belen" To: "Reyna, David L (Wind River)" , "Damian, Alexandru" Thread-Topic: V4: review request for configure details page Thread-Index: Ac80GuUwRLT7CeSXSmaQpVCSIWnr4AAM7XKgAAjtQYA= Date: Fri, 28 Feb 2014 10:46:20 +0000 Message-ID: References: <5E53D14CE4667A45B9A06760DE5D13D055DD6F6D@ALA-MBB.corp.ad.wrs.com> <5E53D14CE4667A45B9A06760DE5D13D055DD7591@ALA-MBB.corp.ad.wrs.com> In-Reply-To: <5E53D14CE4667A45B9A06760DE5D13D055DD7591@ALA-MBB.corp.ad.wrs.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.3.9.131030 x-originating-ip: [10.237.224.31] MIME-Version: 1.0 Cc: Paul Eggleton , "toaster@yoctoproject.org" Subject: Re: V4: review request for configure details page X-BeenThere: toaster@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Web based interface for BitBake List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Feb 2014 10:46:28 -0000 Content-Language: en-US Content-Type: text/plain; charset="windows-1254" Content-ID: <593EB262930E2E4FBEFB8A36EC5FED51@intel.com> Content-Transfer-Encoding: quoted-printable On 28/02/2014 06:40, "Reyna, David" wrote: >Hi again, > >> * When you cancel the search string, the column filters are also reset. > >Fixed and added to "dreyna/configure-detail-view"! I cannot see this working. I am not sure the fix is in your dev branch. Cheers Bel=E9n > >It turns out that the two search buttons were not passing the "filter" >and "count" values, and that has the unfortunate side effect of forcing >every view to execute "_redirect_parameters", which in turn would always >immediately reset any user-selected filters (and "count"). > >Here is the simple (and global) fix: > >vvvvvvvvvvvvvvv > >diff --git a/bitbake/lib/toaster/toastergui/templates/basetable_top.html >b/bitbake/lib/toaster/toastergui/templates/basetable_top.html >index 9a8bacb..b19c936 100644 >--- a/bitbake/lib/toaster/toastergui/templates/basetable_top.html >+++ b/bitbake/lib/toaster/toastergui/templates/basetable_top.html >@@ -35,6 +35,8 @@ > > > >+ >+ > > >
>^^^^^^^^^^^^^^^^^ > >The other remaining issue (sorting the file column) will need to wait for >a database fix when Alex gets back. > >- David > >> -----Original Message----- >> From: toaster-bounces@yoctoproject.org [mailto:toaster- >> bounces@yoctoproject.org] On Behalf Of Reyna, David >> Sent: Thursday, February 27, 2014 5:08 PM >> To: Barros Pena, Belen; Damian, Alexandru >> Cc: Paul Eggleton; toaster@yoctoproject.org >> Subject: [Toaster] V4: review request for configure details page >>=20 >> Hi Belen, >>=20 >> On to V4 for "dreyna/configure-detail-view"! >>=20 >> FIXES: >>=20 >> * The description filter tooltip says: "Showing only Show only >>variables..." >> * I see: FILTER:conf/ >> * variable values over 150 characters are not truncated on the table. >> * Extended variable name patterns should link to the root variable entry >>=20 >> All done! >>=20 >> * When using the search, each row will appear multiple times. >>=20 >> Done! I realized that the "searches" were in fact working inside the >>vhistory >> list (it is column sorts that are broken). The unexpected consequence >>is that >> each hit added the record to the queryset, with the observed anomaly >>that >> multiple file name hits added duplicate rows in the table. Here is my >> resolution. >>=20 >> # remove duplicate records from multiple search hits in the >> VariableHistory table >> queryset =3D queryset.distinct() >>=20 >> * Variables with no value and no file should be excluded >>=20 >> Done! My tests show this working as expected, where I do see rows with >>a file >> but no value, but I do not see rows without both. Plus, since this is >>done in >> the view and not in the template, the pagination works as expected. >>Here is >> my resolution. >>=20 >> # remove records where the value is empty AND there are no history >>files >> queryset =3D >> queryset.exclude(variable_value=3D'',vhistory__file_name__isnull=3DTrue) >>=20 >> I had to play around with this to get the second clause to work, and I >>would >> like Alex to review it, but as I said it seems to work. >>=20 >>=20 >> PENDING ISSUES: >>=20 >> > Where should I map the help for variable name with patterns of the >>form >> "do_*" >>=20 >> I sent email on this question separately. >>=20 >> > "My only doubts are about case 2, where >> > I am not sure it makes sense to show the last file when the search >>string >> > is found in any other file for a certain variable." >>=20 >> I propose that most user searches are for variable names, so the file >>column >> will appear to reflect the default behavior. If I do not by default >>include >> the last file, then searching for variable names will _always_ result >>in the >> file column becoming empty (expect by coincidence), which does not look >>like >> the normal behavior for the page. >>=20 >> It may only look odd if you do a search for example for "conf/bitbake", >>where >> you would get all of the matches _plus_ the last file. Given the >>downside in >> the previous and more common use case, I think that this little bit of >>extra >> information is worth it. >>=20 >> I think a match between both a variable and a file name is unlikely. >>=20 >> > * The column sort for files will only test the first file in any >>vhistory >> list. >> > * When you cancel the search string, the column filters are also >>reset. >>=20 >> Still pending. >>=20 >> > Any scripting inside a template should go at the very end of the >> > markup, but before the closing tag. >>=20 >> All I am saying is that unless we define an additional block for >>template- >> specific scripts (and I think that at some point this would be a good >>idea), >> both the "..." and the "..." are locked inside >> "main.html" and are inaccessible to template files, and thus >>inaccessible for >> template-specific scripts. >>=20 >> Thanks! >> David >>=20 >> > -----Original Message----- >> > From: Barros Pena, Belen [mailto:belen.barros.pena@intel.com] >> > Sent: Thursday, February 27, 2014 4:05 AM >> > To: Reyna, David; Damian, Alexandru >> > Cc: toaster@yoctoproject.org; Paul Eggleton >> > Subject: Re: V3: review request for configure details page >> > >> > Hi David, >> > >> > Thanks for all the good work. I have commented inline on your email >>when >> > required. >> > >> > There are also a couple of small issues I am still seeing: >> > >> > * The description filter tooltip says: "Showing only Show only >>variables >> > with description". It should say "Showing only variables with >> > description". If needed, we can change the radio button label to say >>just >> > "Variables with description=B2 >> > >> > * Variables with no value and no file are only there because there is >>a >> > description set for them in documentation.conf. They should be >>excluded >> > from the view (table, search, sorting and filtering). >> > >> > >> > Cheers >> > >> > Bel=E9n >> > >> > On 27/02/2014 03:53, "Reyna, David" wrote: >> > >> > >Hi Belen, >> > > >> > >I have implemented the proposed design changes to the "Configure" >>page. >> > > >> > > dreyna/configure-detail-view >> > > >> > >I did need to make some small changes to the proposed design, as >> > >documented below. There are also some outstanding issues, which I >>also >> > >list below. >> > > >> > >IMPLEMENTATION: >> > > >> > >> 1) "Showing history for all variables" >> > > >> > >Done. >> > > >> > >> 2) "Searching and filtering" (Hidden file problem) >> > > >> > >Done. >> > > >> > >I did however realize that "search" applies to all fields, not just >>the >> > >file list. This is an issue when you for example search the rpwsa for >> > >"BBINCLUDED", because suddenly all of the files would disappear >>because >> > >none would match. I do not think that this is what the user would >>expect >> > >when they are searching for variables and not file names. >> > > >> > >Here is therefore how I implemented the file filtering: >> > > >> > > 'search' 'file filter' Action >> > > -------- ------------- ---------------------- >> > > - - show last file >> > > value - show last file, plus any file names that >>match >> > >search >> > > - value show only file names that match filter >> > > value value show any file names that match either string >> > > >> > >I think that this meets out needs, and is a "least surprise" for >>users. >> > >> > In general, this makes sense to me. My only doubts are about case 2, >>where >> > I am not sure it makes sense to show the last file when the search >>string >> > is found in any other file for a certain variable. >> > >> > Also, when I apply a 'set in file' filter, I see the following string >>on >> > each cell: FILTER:conf/ >> > >> > > >> > >> 3) "Dealing with long values" >> > > >> > >Done. To see it work, turn off the "Description" filter and look at >>the >> > >variable "BBINCLUDED", which is guaranteed to be bigger than 570 >> > >characters. >> > >> > This is working in the history modal dialogs, but variable values >>over 150 >> > characters are not truncated on the table. It's important we do this >>in >> > order to keep the table readable. >> > >> > > >> > >> 4) "What if a variable value is an empty string?" >> > > >> > >Done. >> > > >> > >> 5) "What do we do with the 613 B_* variables?" >> > > >> > >They are now gone from the view. >> > > >> > >> 6) "Linking variables to the Yocto Project reference manual" >> > > >> > >Done. >> > > >> > >However, the statement "we do know that all variables with a >>description >> > >in documentation.conf have an entry in >> > >the Yocto Project reference manual" is not universally true. Here are >> > >some counter examples: >> > > >> > > ALLOW_EMPTY_${PN}-dbg >> > > ASSUME_PROVIDED >> > > ASSUME_SHLIBS >> > > BBFILE_PATTERN_core >> > > BBFILE_PRIORITY_core >> > > ... >> > > >> > >Some of these are obviously extended patterns, but the code does not >>know >> > >that, and there is no obvious way to filter for that. >> > >> > Extended patterns should link to the root variable entry (so >> > ALLOW_EMPTY_${PN}-dbg links to the ALLOW_EMPTY entry). But you are >>right: >> > ASSUME_PROVIDED does not have an entry in the manual. I'll review the >> > content of documentation.conf to eliminate any mismatches. >> > >> > > >> > > >> > >LIMITATIONS: >> > > >> > >7) There are still the observed defects. I will investigate, but >>they are >> > >outside of the code under review. >> > > >> > > * When you cancel the search string, the column filters are also >>reset. >> > > * The search will only test the first file in any vhistory list. >> > > * When using the search, each row will appear multiple times. >> > > >> > >8) I have added the new Javascript code to support the value extender >> > >dialog to the file "templates/base.html", and it works! >> > >> > It does work wonderfully :) >> > >> > > >> > > >> > >I do not know if this the best place. Nor do I know if it will affect >> > >other pages that would not otherwise use it. >> > > >> > >I do observe that there is currently no way for a page to add local >> > >script code to the "" section, which is currently locked inside >> > >"base.html". Maybe you can add script code to other sections, but I >>know >> > >that in testing that this new script section would not work when >>placed >> > >anywhere within "templates/configvars.html". >> > >> > Any scripting that will be reused by several templates should go on >> > main.js. Any scripting inside a template should go at the very end of >>the >> > markup, but before the closing tag. That way the page loads >>first >> > all markup and we show something to users, while the scripts take >>their >> > time to load. But I think in general we should aim to have all js >>neatly >> > put away in main.js >> > >> > > >> > >Thanks, >> > >David >> > > >> > >>=20 >> _______________________________________________ >> toaster mailing list >> toaster@yoctoproject.org >> https://lists.yoctoproject.org/listinfo/toaster