[Freeipa-devel] [PATCH] webui: 0084, 0101: refactoring rpc module

Pavel Vomacka pvomacka at redhat.com
Mon Dec 12 12:27:35 UTC 2016


Moved to PR: https://github.com/freeipa/freeipa/pull/327


On 11/10/2016 07:47 PM, Petr Vobornik wrote:
> On 08/09/2016 01:29 PM, Pavel Vomacka wrote:
>> Hello,
>>
>> please review attached patches.
>>
>> The rpc module is now separated from display layer
>> and changing activity text while loading metadata.
>>
>> https://fedorahosted.org/freeipa/ticket/6144
>>
>>
>>
> patch 84:
>
> Looks good, works fine, it just needed rebase(I could provide that).
>
> Idea, but that doesn't have to be implemented, or sometime in future,
> right now it is not useful: What about providing the rpc object in the
> event, and having unique id for each rpc call so that we could track all
> rpc which are executed.
>
>
> patch 101:
>
> 1. It's event name but the property name looks like that it contains a text:
>     that.change_text = 'change-activity-text';
>
> Should it be rather: that.change_text_event.
>
> Or even, why does it compare previous text? Does it matter? Wouldn't be
> better to have 'set-activity' event. And then the handler would call
> something new set_text method:
>
> set_text(new_activity)
>    that.dots = 0
>    that.text = new_activity
>    that.make_step()
>
>

-- 
Pavel^3 Vomacka




More information about the Freeipa-devel mailing list