Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

projects: be able to use multiple maintainers in the advanced search #147

Open
tormath1 opened this issue Jul 21, 2020 · 3 comments
Open
Labels

Comments

@tormath1
Copy link

Hi,

I'd like to know if it's possible to search projects using a list of multiple maintainers in the advanced mode.

From the API spec, we can see:

{
    "repo": "freebsd",
    "srcname": "www/firefox",
    "binname": "firefox",
    "visiblename": "www/firefox",
    "version": "50.1.0",
    "origversion": "50.1.0_4,1",
    "status": "newest",
    "summary": "Widely used web browser",
    "categories": ["www"],
    "licenses": ["GPLv2+"],
    "maintainers": ["[email protected]"],
    "www": ["http://www.mozilla.com/firefox"],
    "downloads": ["http://download.cdn.mozilla.net/pub/firefox/releases/50.1.0/source/firefox-50.1.0.source.tar.xz"]
}

which means maintainers is a list so it seems to be supported API side.

I'm using repology as a package maintainer and I have multiple accounts: my email address and the AUR pseudonyme. Which means, I need to perform 2 requests to fetch all the packages I maintain.

(maybe it already exists but I did not find any documentation :) )

Thanks for developing this useful tool !

@AMDmi3 AMDmi3 added the sql label Aug 3, 2020
@AMDmi3
Copy link
Member

AMDmi3 commented Aug 3, 2020

This is unlikely to be implemented. This would imply doing a large project query two times under the hood, which is slow and require code complication, while the same thing can be done by requesting two projects sets explicitly. Also, from the UI viewpoint, all advanced search conditions assume AND logic, while this one requires OR logic, which would introduce extra confusion.

@tormath1
Copy link
Author

tormath1 commented Aug 4, 2020

Hey @AMDmi3,

Ok I understand, it was just a random question in my mind. I let you close the issue if you won't dig further !

@AMDmi3
Copy link
Member

AMDmi3 commented Aug 4, 2020

I'll think this over a bit more. Btw, you could also push AUR devs to publish more complete package metadata which contains maintainer emails, this would fix your original problem too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants