Adrian Schröter schrieb:
On Montag, 26. Januar 2015, 13:24:32 wrote Ludwig Nussel:
Adrian Schröter schrieb:
On Montag, 26. Januar 2015, 11:51:03 wrote Ludwig Nussel:
To find out who are the owners of a package there's the /search/owner?binary=PKG call. Part of the result could be group though. If I wanted to know whether a specific user is owner of the given package, am I expected to retrieve the group information and check whether the user is member of each group? Is there maybe a better suited call that would do that for me on server side?
not yet, we could add some expand option which is including also the groups of a user if wanted.
However, I am not sure if that is really the best way for your problem. Let's talk about what you want to do exactly....
The use case is one of the maintenance review bots that checks if the package was submitted or reviewed by one of the package owners.
And why is that important for the bot?
I mean, if this is not the case, there will be an extra review in the request for the package owners. So isn't this already handled inside of OBS?
In case of Factory this is handled by OBS via the devel project mechanism, yes. For maintenance incident requests however there are no devel projects and maintainers are not defined in the involved projects. So submissions there could bypass package owners. cu Ludwig -- (o_ Ludwig Nussel //\ V_/_ http://www.suse.de/ SUSE LINUX GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 21284 (AG Nürnberg) Maxfeldstraße 5; 90409 Nürnberg; Germany -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org