
Hi, Some of you already got or will get emails from me asking if several commands are only internal or not. I basically check usages at rest-api and ui, but I might have missed something. IMHO, we should continue (until we device not to :) ) to annotate internal commands with the @InternalCommandAttribute Thanks, Yair

----- Original Message -----
From: "Yair Zaslavsky" <yzaslavs@redhat.com> To: devel@ovirt.org Sent: Wednesday, June 25, 2014 6:19:35 AM Subject: [ovirt-devel] Annotating internal commands
Hi, Some of you already got or will get emails from me asking if several commands are only internal or not. I basically check usages at rest-api and ui, but I might have missed something.
IMHO, we should continue (until we device not to :) ) to annotate internal commands with the
@InternalCommandAttribute
amm, the name of this attribute might be misleading, this attribute, afair, just make the infra skip audit log of the command. although it makes sense that any command that a user can run will not have this, because we want to audit log any action user do, but there might be some cases where command that is called only internally does need to be logged, and then you cannot use it.. (i didnt look for examples, don't know if there are any)
Thanks, Yair _______________________________________________ Devel mailing list Devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/devel

----- Original Message -----
From: "Omer Frenkel" <ofrenkel@redhat.com> To: "Yair Zaslavsky" <yzaslavs@redhat.com> Cc: devel@ovirt.org Sent: Wednesday, June 25, 2014 10:53:16 AM Subject: Re: [ovirt-devel] Annotating internal commands
----- Original Message -----
From: "Yair Zaslavsky" <yzaslavs@redhat.com> To: devel@ovirt.org Sent: Wednesday, June 25, 2014 6:19:35 AM Subject: [ovirt-devel] Annotating internal commands
Hi, Some of you already got or will get emails from me asking if several commands are only internal or not. I basically check usages at rest-api and ui, but I might have missed something.
IMHO, we should continue (until we device not to :) ) to annotate internal commands with the
@InternalCommandAttribute
amm, the name of this attribute might be misleading, this attribute, afair, just make the infra skip audit log of the command. although it makes sense that any command that a user can run will not have this, because we want to audit log any action user do, but there might be some cases where command that is called only internally does need to be logged, and then you cannot use it.. (i didnt look for examples, don't know if there are any)
In case Omer is right, now that we are about to introduce the command context, can't the fact that it was run internally be set on it, and the audit log to act upon it? (or use isInternalExecution() method?).
Thanks, Yair _______________________________________________ Devel mailing list Devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/devel
_______________________________________________ Devel mailing list Devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/devel

----- Original Message -----
From: "Omer Frenkel" <ofrenkel@redhat.com> To: "Yair Zaslavsky" <yzaslavs@redhat.com> Cc: devel@ovirt.org Sent: Wednesday, June 25, 2014 10:53:16 AM Subject: Re: [ovirt-devel] Annotating internal commands
----- Original Message -----
From: "Yair Zaslavsky" <yzaslavs@redhat.com> To: devel@ovirt.org Sent: Wednesday, June 25, 2014 6:19:35 AM Subject: [ovirt-devel] Annotating internal commands
Hi, Some of you already got or will get emails from me asking if several commands are only internal or not. I basically check usages at rest-api and ui, but I might have missed something.
IMHO, we should continue (until we device not to :) ) to annotate internal commands with the
@InternalCommandAttribute
amm, the name of this attribute might be misleading, this attribute, afair, just make the infra skip audit log of the command. although it makes sense that any command that a user can run will not have this, because we want to audit log any action user do, but there might be some cases where command that is called only internally does need to be logged, and then you cannot use it.. (i didnt look for examples, don't know if there are any)
Thanks Omer, I'll review once again, If this is the case - the annotation name is somewhat misleading, of we should have an attribute that will mark if to audit log or not. What do you think?
Thanks, Yair _______________________________________________ Devel mailing list Devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/devel
participants (3)
-
Omer Frenkel
-
Oved Ourfali
-
Yair Zaslavsky