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

Add version filter to GET/experimental/syscollector/packages API call #340

Merged
merged 3 commits into from
Mar 5, 2019

Conversation

mgmacias95
Copy link
Contributor

Hello team,

This PR closes #339.

This is an example of how the filter works:

# curl -u foo:bar "localhost:55000/experimental/syscollector/packages?pretty&version=0.17-1ubuntu1"
{
   "error": 0,
   "data": {
      "items": [
         {
            "scan": {
               "id": 1066845738,
               "time": "2019/03/04 16:39:27"
            },
            "multiarch": "foreign",
            "vendor": "Ubuntu Developers <[email protected]>",
            "description": "tool to manage well known user directories",
            "size": 533,
            "section": "utils",
            "version": "0.17-1ubuntu1",
            "architecture": "amd64",
            "priority": "optional",
            "format": "deb",
            "name": "xdg-user-dirs",
            "agent_id": "000"
         }
      ],
      "totalItems": 1
   }
}

Best regards,
Marta

Marta Gómez Macías added 2 commits March 4, 2019 18:38
alphanumeric_param doesn't support versions such as 1:7.2p2-4ubuntu2.7.
@crd1985 crd1985 merged commit 74c9a70 into 3.9 Mar 5, 2019
@crd1985 crd1985 deleted the dev-add-version-filter-packages branch March 5, 2019 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants