[Freeipa-devel] [PATH 0053] Inconsistency between ipasearchrecordslimit and --sizelimit

Jan Cholasta jcholast at redhat.com
Tue Sep 22 06:00:36 UTC 2015


On 21.9.2015 15:25, Gabe Alford wrote:
> Sorry. I had fixed another mistake and had not read your comment
> carefully. Updated patch attached.
>
> Gabe
>
> On Wed, Sep 16, 2015 at 12:23 AM, Jan Cholasta <jcholast at redhat.com
> <mailto:jcholast at redhat.com>> wrote:
>
>     On 15.9.2015 14:42, Gabe Alford wrote:
>
>         Yup. You are right. It was a mistake. Updated patch attached.
>
>         On Tue, Sep 15, 2015 at 12:46 AM, Jan Cholasta
>         <jcholast at redhat.com <mailto:jcholast at redhat.com>
>         <mailto:jcholast at redhat.com <mailto:jcholast at redhat.com>>> wrote:
>
>              On 14.9.2015 14:58, Gabe Alford wrote:
>
>                  Sounds good to me. Updated patch attached.
>
>                  On Mon, Sep 14, 2015 at 1:34 AM, Petr Spacek
>         <pspacek at redhat.com <mailto:pspacek at redhat.com>
>                  <mailto:pspacek at redhat.com <mailto:pspacek at redhat.com>>
>                  <mailto:pspacek at redhat.com <mailto:pspacek at redhat.com>
>         <mailto:pspacek at redhat.com <mailto:pspacek at redhat.com>>>> wrote:
>
>                       On 14.9.2015 07:23, Jan Cholasta wrote:
>                       > IMO it does, because saying just "-1 is default"
>         is not
>                  entirely correct and
>                       > "0 is default" would be confusing, as you
>         pointed out.
>                  You might say "0 or -1
>                       > is unlimited" if you think it's clearer.
>
>                       my +1 to "0 or -1 is unlimited" variant
>
>                       Petr^2 Spacek
>
>
>                        > On 10.9.2015 18:39, Gabe Alford wrote:
>                        >> Oops.. replied without the list.
>                        >>
>                        >> Reason I said -1 is because users might be
>         confused if they
>                       enter `ipa
>                        >> config-mod --searchtimelimit=0`, and both `ipa
>                  user-show` and
>                       the webui
>                        >> show -1 instead of 0. I wonder if -1 makes
>         more sense
>                  in that
>                       regard?
>                        >> Thoughts? Does "<= 0 is unlimited" make more
>         sense?
>                        >>
>                        >> Thanks,
>                        >>
>                        >> Gabe
>
>
>              The doc for ipasearchtimelimit and ipasearchrecordslimit
>         says "-1 is
>              unlimited", but both 0 and -1 is unlimited for them, and
>         the doc for
>              timelimit and sizelimit says "-1 or 0 is unlimited", but
>         only 0 is
>              unlimited for them. Looks like a mistake.
>
>              --
>              Jan Cholasta
>
>
>
>     This hasn't changed since the previous patch and is still wrong, as
>     -1 is not supported here:
>
>               Int('timelimit?',
>                   label=_('Time Limit'),
>     -            doc=_('Time limit of search in seconds'),
>     +            doc=_('Time limit of search in seconds (-1 or 0 is
>     unlimited)'),
>                   flags=['no_display'],
>                   minvalue=0,
>                   autofill=False,
>               ),
>               Int('sizelimit?',
>                   label=_('Size Limit'),
>     -            doc=_('Maximum number of entries returned'),
>     +            doc=_('Maximum number of entries returned (-1 or 0 is
>     unlimited)'),
>                   flags=['no_display'],
>                   minvalue=0,
>                   autofill=False,
>
>     --
>     Jan Cholasta

Thank you. ACK.

Pushed to:
master: 65e958fda4aee2e08cd1f7043369710b839476c3
ipa-4-2: 28d6ae0ac0e3d30f6672bd9a9a5f5827f2a768a3

-- 
Jan Cholasta




More information about the Freeipa-devel mailing list