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

Packages API unable to distinguish projects with the same name #779

Open
mizdebsk opened this issue May 15, 2019 · 1 comment
Open

Packages API unable to distinguish projects with the same name #779

mizdebsk opened this issue May 15, 2019 · 1 comment
Labels
hacktoberfest type.api API related change type.feature New feature

Comments

@mizdebsk
Copy link
Member

Packages API (/api/v2/packages) that lists package-to-project mappings includes project names, but not project IDs. This becomes problematic when there are multiple projects with the same name. In this case package API is not able to distinguish between projects with the same name.

Proposed solution:

  • include project ID in packages API
  • extend projects API to allow looking up project by ID

CC @terminus-brut

@Zlopez Zlopez added type.feature New feature type.api API related change labels May 15, 2019
@Zlopez
Copy link
Contributor

Zlopez commented May 15, 2019

Implementation details

This needs to add new parameter ID to post method PackageResource class in https://github.com/release-monitoring/anitya/blob/master/anitya/api_v2.py and the get method should also return ID of the project.

Also we need to return ID of the project in get method of ProjectsResource class in https://github.com/release-monitoring/anitya/blob/master/anitya/api_v2.py

@Zlopez Zlopez added this to Must have in Maintenance mode May 15, 2019
@Zlopez Zlopez moved this from Must have to Nice to have in Maintenance mode May 15, 2019
@Zlopez Zlopez moved this from Nice to have to Must have in Maintenance mode May 15, 2019
@Zlopez Zlopez moved this from Must have to Nice to have in Maintenance mode May 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest type.api API related change type.feature New feature
Projects
Maintenance mode
  
Nice to have
Development

No branches or pull requests

2 participants