Return-Path: X-Original-To: apmail-incubator-bloodhound-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-bloodhound-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E774FD201 for ; Thu, 20 Sep 2012 13:46:20 +0000 (UTC) Received: (qmail 41416 invoked by uid 500); 20 Sep 2012 13:46:20 -0000 Delivered-To: apmail-incubator-bloodhound-dev-archive@incubator.apache.org Received: (qmail 41393 invoked by uid 500); 20 Sep 2012 13:46:20 -0000 Mailing-List: contact bloodhound-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: bloodhound-dev@incubator.apache.org Delivered-To: mailing list bloodhound-dev@incubator.apache.org Received: (qmail 41385 invoked by uid 99); 20 Sep 2012 13:46:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Sep 2012 13:46:20 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of olemis@gmail.com designates 209.85.220.175 as permitted sender) Received: from [209.85.220.175] (HELO mail-vc0-f175.google.com) (209.85.220.175) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Sep 2012 13:46:14 +0000 Received: by vcqp1 with SMTP id p1so2531566vcq.6 for ; Thu, 20 Sep 2012 06:45:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=j24+g/IB4BAnACs9q6QoiAOhnM/IWQ70nrhoTmg0ulo=; b=WJrDYNmncc2vrssi+YO/cvVHISQ8ZbyvNDoFAgtPsHABLr3wED4Pio03qzIg7hKNx/ GKssis7kfpTNcfvjpZtWv4rTnK+mReFoflMkJ5U9iiwSW+G5CpHHq7advD5ryAiH2Aad YbvoZDkM9S5k6aqhp1VCzYUsuDEZzVl/e/k1hwQKyJ63SD/6x4AtztNztmm0bmQdnGY3 GmgqJerys5iPyF95C6oejJiCuX7yCvT4jFwO6sS4j7Q0qpfew+RDvfcg38K3Hwv/dV9Y cH7jUPVKkGZN364FAzEC1VccvKaDLaUCDnWUDdnRGgDRR3JkBZY/V2qRkIuf3+A7U4+J eH7g== MIME-Version: 1.0 Received: by 10.52.22.40 with SMTP id a8mr897843vdf.4.1348148753882; Thu, 20 Sep 2012 06:45:53 -0700 (PDT) Received: by 10.58.79.177 with HTTP; Thu, 20 Sep 2012 06:45:53 -0700 (PDT) In-Reply-To: <505A5347.80503@wandisco.com> References: <058.556d561ac8118c74aff2b0380f421667@incubator.apache.org> <073.4e66acd1d3eab58cf63112d9a398a95c@incubator.apache.org> <50599857.30602@wandisco.com> <5059AB01.60704@wandisco.com> <5423CED3-7E10-48CB-B445-937F444457D4@wandisco.com> <5059FD38.3020105@wandisco.com> <505A5347.80503@wandisco.com> Date: Thu, 20 Sep 2012 08:45:53 -0500 Message-ID: Subject: Re: [Apache Bloodhound] #187: Remove row count and results pagination from Dashboard From: Olemis Lang To: bloodhound-dev@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 On 9/19/12, Gary Martin wrote: > On 19/09/12 19:38, Olemis Lang wrote: >> On 9/19/12, Gary Martin wrote: >>> Interesting. In that case, I will suggest that we always attach patches >>> to tickets and refer to them as you have done here. For the smallest of >>> patches, you can also choose to paste the text directly into an email - >>> or indeed into a ticket comment as I did recently for #204. I will put >>> this into a wiki page shortly. >>> >>> As for the patch, it looks like good work to me. Unless anyone else >>> notices any problems I expect to commit it a bit later tonight. >>> >> hmmm ... I'm hoping any of my previous comments be considered . IMO we >> shall not remove pagination . AFAICR there's an option for that ... >> >> AFAICR in #80 I submitted a patch (... pending or already committed I >> don't recall now ...) adding options to render Bootstrap pagination in >> reports web page and built-in smaller pagination in widgets >> (considering Joachim's suggestion ;) . Maybe we can follow a bit >> further and parameterize page index visibility in query and report >> widgets on top of the work made in there ... > > Well, it is entirely possible that I have missed the scope over which > these changes apply. Do we have widgets where a change of page updates > the content of the widget itself? so far we don't . But I was considering this to be the case in the future . That's why I parameterized pagination template to use in widget_grid.html . I have to review that patch for further details . But in general I recall I added a variable containing pagination template name and render it somehow like the following cases (and many more) would be possible 1. legacy small pagination (page_index.html) 2. Bootstrap pagination (bh_page_index.html) 3. In the near future use paginator for AJAX updates ... IMO we should be updating that patch and update include tag somehow like this omitting that value when rendering widget_grid.html will remove it . But IMO patches for #80 should be at least reviewed and perhaps committed . There's another feature added in there as well and it is that pagination is moved to the bottom , among other things I don't quite recall now without reviewing it once again ;) > If this is the case, I would expect to > keep the pagination. If it is not the case, I would not expect us to > enhance the widgets to do that quite yet and so I would consider > removing the pagination, reverting once there is the need again (code is > never really lost after all). On the other hand, perhaps there is some > use for pagination that I have not considered. > yes , we may remove pagination for now , and that's ok for dashboard . I personally prefer to add an option to the widget and propagate that value until it gets to the right Genshi template , because widget may be used in other contexts as well , and template is reused to render other data , not just reports , queries ... but any tabular data . So > Whichever way these things turn out, I will delay applying the patch for > the moment to investigate further. > Thanks . But I'll say that work is on the right track . It's obvious that the whole idea of widgets and interactions with templates has been understood . -- Regards, Olemis. Blog ES: http://simelo-es.blogspot.com/ Blog EN: http://simelo-en.blogspot.com/ Featured article: