I think jQuery Bootgrid Data API example covers the performance and requests issues:
http://www.jquery-bootgrid.com/Examples#data-api
However for the search options it is not very easy to edit the markup or behavior. The
library provides some styling options but I'm not sure if we can just hide the default
search/filter bar and create custom search options (combining "date" and
"user" for instance). According to the documentation the search function
"Searches in all visible columns for the given phrase. If no argument is passed, it
will reset the search. This method is chainable". We can transform the data based on
a custom advanced search and then destroy/reload jQuery Bootgrid table but it would reset
pagination and it would probably break the default search method.
Samuel
-----Original Message-----
From: Aline Manera [mailto:alinefm@linux.vnet.ibm.com]
Sent: quarta-feira, 10 de fevereiro de 2016 12:47
To: luciojhc(a)linux.vnet.ibm.com; Samuel Henrique De Oliveira Guimaraes
<samuel.guimaraes(a)eldorado.org.br>; Kimchi Devel <kimchi-devel(a)ovirt.org>
Subject: Re: [Kimchi-devel] [RFC] [Wok] Feature: User Activity Log
On 02/08/2016 04:36 PM, Lucio Correia wrote:
On 08-02-2016 15:01, Samuel Henrique De Oliveira Guimaraes wrote:
> Hi,
Hello,
>
> How many logs do you think the page should display? Should we use
> pagination? I think since Ginger already included jQuery Boogrid in
> Wok maybe we can use this library however...
> -The search/filter will look for any word typed by the user. I mean,
> the filter function will look up for any string in a row, we can't
> put a button to "Search by date" or "search by request", if the
user
> types a date, it will filter this date. If the user filter "Kimchi"
> and there's a user named "kimchiuser", the log will show all records
> starting with "kimchi" and will display all actions done in Kimchi
> plugin and actions in other plugins done by kimchiuser.
The amount of logs can be defined later, based on what fits better our
UI design. Pagination is essential in my opinion.
I liked the filter function and think it works well for the Web UI.
Since it will result in different possibilities of searches/results
when compared to the REST API, my concern is regarding saving the
logs. Would it be possible to generate a txt file for the user to save
the logs for what she is seeing? Perhaps we need to provide a specific
backend API for that...
We don't need to request all the logs entries at once to populate the UI.
In fact, it would cause performance issues as it is a web server receiving multiple
requests by different users at the same time which will generate a huge amount of logs.
IMO we should display only the entries for the current day and allow user do a advanced
search, ie, by specific date, plugin, user, etc.
So for the logs already displayed, the filtering option you suggested will work well. But
the advanced search is essential.
>
> Here's an example that uses selection and includes filter, sorting
> and pagination:
>
http://www.jquery-bootgrid.com/Examples#selection
>
> My only concern is that this datatable is slightly different than the
> other tables that we use in Kimchi and Ginger. I think we can
> customize it with CSS to look like wok.datagrid() widget. If we have
> to add pagination, then we'll use jQuery Bootgrid. If we don't need
> to page the records, then we'll use wok.datagrid().
>
> Samuel
>
_______________________________________________
Kimchi-devel mailing list
Kimchi-devel(a)ovirt.org
http://lists.ovirt.org/mailman/listinfo/kimchi-devel