fedora-infra / pkgdb2

Updated version of the Package Database
https://admin.fedoraproject.org/pkgdb/
GNU General Public License v2.0
23 stars 26 forks source link

More namespacing adjustments #295

Closed pypingou closed 8 years ago

pypingou commented 8 years ago

This allows to the namespace to be specified in the URLs, adjust the templates and unit-tests accordingly

pypingou commented 8 years ago

Ok, I'll be dropping all the namespace='rpms' from this PR, the idea here is to break all things to what we want pkgdb to be, I have another PR after this one that brings back backward compatibility for the URLs of the UI (GET only).

ralphbean commented 8 years ago

Hm. Can we add an api_version endpoint that returns '2.0'?

Then, we can modify pkgdb2client to check that url first, and use the new urls if it is 2.0 and use the old urls if it gives a 404 error.

pypingou commented 8 years ago

Hm. Can we add an api_version endpoint that returns '2.0'?

You mean, like: https://admin.fedoraproject.org/pkgdb/api/version ? :)

ralphbean commented 8 years ago

Yes, excellent.

So, what version should we check for to see if this stuff is live?

pypingou commented 8 years ago

It's definitely going to be a 2.x

ralphbean commented 8 years ago

:+1: to merge.

pypingou commented 8 years ago

Let's do it!