[ovirt-devel] Update on UI column sort infra issues

Vojtech Szocs vszocs at redhat.com
Tue Jul 8 15:51:58 UTC 2014



----- Original Message -----
> From: "Vojtech Szocs" <vszocs at redhat.com>
> To: devel at ovirt.org
> Sent: Friday, June 27, 2014 2:07:23 PM
> Subject: [ovirt-devel] Update on UI column sort infra issues
> 
> Hi guys,
> 
> just a quick update on issues related to UI column sort infra.
> 
> The client-side sorting fix [1] is now merged in master branch.
> 
> The server-side sorting fix [2] is pending review.

The server-side sorting fix is now merged in master branch.

For details on server-side column sorting behavior & limitations,
please refer to commit message:

  http://gerrit.ovirt.org/#/c/28557/6//COMMIT_MSG

If you find any issues or have questions, let me know.

Vojtech

> 
> Also note that Lior merged a patch [3] which greatly simplifies
> code when making text-based columns *client-side* sortable, for
> example:
> 
>   TextColumnWithTooltip<SomeEntity> nameColumn = ...
> 
> instead of this:
> 
>   // for text-based columns, need to provide separate Comparator
>   // that (typically) uses LexoNumericComparator for comparison
>   nameColumn.makeSortable(someEntityPropertyComparator);
> 
> you can do this:
> 
>   // uses LexoNumericComparator to compare column's text values
>   nameColumn.makeSortable();
> 
> --
> 
> [1] http://gerrit.ovirt.org/#/c/28392/ ... where items would
>     disappear from grid when activating client-side column sorting
> 
> [2] http://gerrit.ovirt.org/#/c/28557/ ... where triggering
>     server-side sorting on a given column might corrupt the actual
>     search query dispatched by the model
> 
> [3] http://gerrit.ovirt.org/#/c/28670/
> 
> --
> 
> Regards,
> Vojtech
> _______________________________________________
> Devel mailing list
> Devel at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/devel
> 



More information about the Devel mailing list