[Freeipa-users] PatternFly questions

Martin Kosek mkosek at redhat.com
Fri Jul 18 13:23:05 UTC 2014


On 07/18/2014 03:12 PM, Dmitri Pal wrote:
> On 07/18/2014 08:17 AM, Innes, Duncan wrote:
>>   Hi Petr,
>>
>> On 18/07/2014 11:24, Petr Vobornik wrote:
>>> Hello Duncan,
>>>
>>> thank you for the input. If you or somebody else have any Web UI
>> ideas/RFEs, feel free to write them down. I would like to
>>> know what people don't like or would like to have.
>>>
>>> On 18.7.2014 10:21, Innes, Duncan wrote:
>>>> Just poking around the new 4.0 demo page and very much liking what I
>> see.  This will make a
>>>> big difference in use on large estates.
>>>>
>>>> A couple PatternFly related questions though:
>>>>
>>>> 1. The tables don't sort by column if I click on a column header.
>> Is this not available in PatternFly yet,
>>>>   or have FreeIPA decided against implementing it?
>>> First just a note about PatternFly. It's not really a widget library,
>> it is(or should be) more of a set of patterns and
>>> styles. But the referential implementation is built on Bootstrap 3, so
>> it is very easy to adopt. PatternFly doesn't have an
>>> official pattern for table sorting yet, but it has styles for
>> DataTables (jQuery table plugin) which can do it.
>>> I don't remember any decision against it -> could be implemented if
>> there is enough will and user demand.
>>> Sorting can be done on client side and on server side. Client side is
>> limited to issue #2 - only 20 items, so it is not really
>>> helpful.
>>>
>>> And server side (IPA API) doesn't support specifying a sort attribute
>> atm.
>>> You would like the server-side sorting, right?
>>>
>> Hadn't considered there to be an option.  When I looked at the
>> PatternFly demos I hadn't thought about it, but the speed that
>> FreeIPA pulls data out for rendering, I suppose it would have to be.
>> Even our modest estate (at a few hundred users and hosts)
>> would slow down far too much if the full dataset was sent.
>>
>> The other possibilities thrown up by PatternFly are also interesting;
>> add/remove columns, resize columns etc.  I know some of
>> these are still on the drawing board, but there are demo pages available
>> already.
>>
>>>> 2. Browsing the screen on a large monitor still leaves the user page
>> (at least) limited to around 22 rows.
>>>>    This leaves the bottom third of my browser empty.  The table uses
>> the full width of the browser, can it
>>>>    not use the full height too?
>>> I have and idea/plan to make it configurable - to specify the number
>> of items and also to allow disabling of paging.
>>> The more rows the slower the UI is. Also paging has its own issues
>> which are not straightforward to solve:
>>> -
>> http://www.redhat.com/archives/freeipa-devel/2012-August/msg00295.html
>> True. What's the biggest time factor in loading large tables?
>>
>> When admining estates with tens of thousands of entries, however, much
>> emphasis needs to be placed on the table filters. No
>> admin in their right mind is going to be performing actions on all
>> entries simultaneously.  Similar to Foreman's filters, could
>> FreeIPA allow (example) in the hosts screen a filter of "hostgroup =
>> groupX" to show only hosts belonging to that group?  Or filtering users
>> with "manager = 'Duncan Innes'"?
> 
> Please open RFEs. This is really a valuable feedback.

I think we are somewhat talking about this RFE:

https://fedorahosted.org/freeipa/ticket/2388

Maybe it is time to resurrect it from Ticket Deferred milestone given it would
bring big value for large user deployments.

The API and the mighty LDAP search engine is already there:

ipa user-add --first=Test --last=User manager
ipa user-add --first=Test --last=User employee --manager manager
ipa user-add --first=Test --last=User employee2 --manager manager
ipa group-add testgroup --desc test
ipa group-add-member testgroup --users employee2


# ipa user-find --manager manager --pkey-only
---------------
2 users matched
---------------
  User login: employee

  User login: employee2
----------------------------
Number of entries returned 2
----------------------------

# ipa user-find --manager manager --in-group testgroup --pkey-only
--------------
1 user matched
--------------
  User login: employee2
----------------------------
Number of entries returned 1


So we would just need to utilize it in our Web UI. I personally really like the
simple search tags like below

  <manager: manager X>  <in groups: testgroup X>

that can be seen in some web apps or eshops and which are pretty easy to control.

Martin




More information about the Freeipa-users mailing list