-
Notifications
You must be signed in to change notification settings - Fork 106
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
Expose pre_release and version filters via API #1012
Comments
I'm not sure if I follow, but the
This should work, but you need to first create the project and then distribution mapping, then you can call it like this:
It would be preferable way, if you want to use it multiple times. If the projects are already there (as they are), you could just edit them and then call them only with ids. |
it does (but only to create or edit a project) not to filter output on the request for version.
Calling https://release-monitoring.org/api/v2/versions/ with the id# works, but as in the version 1 api - calling with the (distro)/(package_name) pair is more extensible and doesn’t require the distribution to add the hard coded ids into a reference table - we have mapped all the packages to projects 😀 https://release-monitoring.org/api/project/LibreELEC/lame/ my test results below. You can still see 398 as the latest version, this is because as I understand the black_list mechanism (Anitya only blacklists on creating new version records) I was able to convince Anitya to make it a pre-release version, in the GUI. https://release-monitoring.org/project/12523/ but what we really need to be able to compare our current package list against release-monitoring (and black_list the pre-release and dud versions) As in the Versions table we don’t have access to the “Pre-release flag (or ideally a blacklist flag)” via the API.
|
It was never meant to filter the output, it should only filter the retrieval of new versions on project.
You can use the name and homepage to be sure that you have the correct project, this combination is unique.
I can add the same as in |
understood, I tried using as a filter (until I worked out it was the interface for updating the backend) that I had used already to nap LibreELEC to the projects. Which as a side note has been really good and useful. I understand why you chose to only allow
It would be great if we can use any of the uniq key sets to query the data.
that would be great.
|
This is because for deletion of the existing versions you should have admin permissions.
You can the combination of name and homepage is already supported in the API.
Could you create a separate ticket for it? It will be lost in this one.
argtable was incorrectly setup, fixed now |
Thanks for fixing the data. Looking really good now. Wayland cleanuphttps://release-monitoring.org/project/10061/ - this is wayland if we update the regex to “Wayland-([\d.]+).tar.xz” I think this will fix wayland (and rebase it) with regard to wayland-protocols people should be using 13997 |
I fixed the wayland project, don't know why it was watching wayland protocols and not wayland |
I created the issue about exposing the stable versions in API #1014 Closing this one |
With the improvements delivered in #944 - would it be possible to extend the api for version checks to expose / filter this information now?
The 2 apis of interest are:
In the above examples:
It would be ok/good to use either the POST or GET mechanism as in the below api to read this data?
POST /api/v2/versions/
With the code being something like
output would be some thing like: (with 1.1.1 in the version response)
Ideally would like to use (distro)/(package_name) for api use, as it minimizes double calls to the API.
The text was updated successfully, but these errors were encountered: