<p dir="ltr">Unsubscribe</p>
<div class="gmail_quote">On May 15, 2013 12:01 PM,  <<a href="mailto:freeipa-devel-request@redhat.com">freeipa-devel-request@redhat.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Send Freeipa-devel mailing list submissions to<br>
        <a href="mailto:freeipa-devel@redhat.com">freeipa-devel@redhat.com</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="https://www.redhat.com/mailman/listinfo/freeipa-devel" target="_blank">https://www.redhat.com/mailman/listinfo/freeipa-devel</a><br>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:freeipa-devel-request@redhat.com">freeipa-devel-request@redhat.com</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:freeipa-devel-owner@redhat.com">freeipa-devel-owner@redhat.com</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Freeipa-devel digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1. Re: [PATCH] 0026 Do not display success message on failure in<br>
      web UI (Ana Krivokapic)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Wed, 15 May 2013 17:43:28 +0200<br>
From: Ana Krivokapic <<a href="mailto:akrivoka@redhat.com">akrivoka@redhat.com</a>><br>
To: Petr Vobornik <<a href="mailto:pvoborni@redhat.com">pvoborni@redhat.com</a>><br>
Cc: freeipa-devel <<a href="mailto:freeipa-devel@redhat.com">freeipa-devel@redhat.com</a>><br>
Subject: Re: [Freeipa-devel] [PATCH] 0026 Do not display success<br>
        message on failure in web UI<br>
Message-ID: <<a href="mailto:5193AD20.1050001@redhat.com">5193AD20.1050001@redhat.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
On 05/13/2013 04:51 PM, Petr Vobornik wrote:<br>
> On 05/07/2013 05:16 PM, Ana Krivokapic wrote:<br>
>> <a href="https://fedorahosted.org/freeipa/ticket/3591" target="_blank">https://fedorahosted.org/freeipa/ticket/3591</a><br>
>><br>
><br>
> 1) The change from on_success to on_error is causing problems when<br>
> some command in a batch doesn't fail. Ie.: disable multiple users on<br>
> user search facet. Disabling already disabled user causes an error.<br>
> The dialog is shown but the page is not refreshed so the newly<br>
> disabled records are still displayed as enabled. We might even call<br>
> this case a success.<br>
><br>
> IMO we shouldn't change the method because the batch itself succeeded.<br>
> The problem should be fixed on caller side (users of batch command).<br>
><br>
> 2) Also `ajax` context should be left there instead of `this`,<br>
> otherwise it would get the context of on_ok handler:<br>
><br>
> 3) (not an actual issue) Some of my old code doesn't contain space<br>
> between for/if and opening curly bracet, opposite to the rest of the<br>
> Web UI. Spaces should be added when touching these parts of code.<br>
<br>
Since the problem occurs in the case when the batch succeeds, but some<br>
commands from the batch fail, it should be enough to modify the message<br>
that is displayed. I modified it so it shows exactly how many items from<br>
the batch succeeded.<br>
<br>
Updated patch is attached.<br>
<br>
--<br>
Regards,<br>
<br>
Ana Krivokapic<br>
Associate Software Engineer<br>
FreeIPA team<br>
Red Hat Inc.<br>
<br>
-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: freeipa-akrivoka-0026-02-Do-not-display-success-message-on-failure-in-web-UI.patch<br>
Type: text/x-patch<br>
Size: 2849 bytes<br>
Desc: not available<br>
URL: <<a href="https://www.redhat.com/archives/freeipa-devel/attachments/20130515/67c3a9c8/attachment.bin" target="_blank">https://www.redhat.com/archives/freeipa-devel/attachments/20130515/67c3a9c8/attachment.bin</a>><br>

<br>
------------------------------<br>
<br>
_______________________________________________<br>
Freeipa-devel mailing list<br>
<a href="mailto:Freeipa-devel@redhat.com">Freeipa-devel@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/freeipa-devel" target="_blank">https://www.redhat.com/mailman/listinfo/freeipa-devel</a><br>
<br>
End of Freeipa-devel Digest, Vol 72, Issue 51<br>
*********************************************<br>
</blockquote></div>