8377fb9e18
Since the APIVersionManager stored the version numbers as ints and floats, it was not possible to distinguish between version 1.2 and 1.20, and also version 1.2 would be considered higher than version 1.13. With the introduction of microversioning in some services, the version numbers inflate quickly, making this a problem. This patch wraps the version numbers in a Version object, that stores the information as a semantic_version and correctly compares with other Version objects, as well as ints, floats and strings. It also removes the check for version being specified as a string, so that it's possible to specify versions such as 1.20 without having to explicitly create Version objects. Change-Id: I0b0d87582d617290f08359ad181216cb99edb768 Closes-Bug: #1649819 |
||
---|---|---|
.. | ||
api | ||
conf | ||
contrib | ||
dashboards | ||
django_pyscss_fix | ||
enabled | ||
local | ||
locale | ||
management | ||
static | ||
templates | ||
templatetags | ||
test | ||
themes | ||
usage | ||
utils | ||
wsgi | ||
__init__.py | ||
.eslintrc | ||
context_processors.py | ||
exceptions.py | ||
hooks.py | ||
karma.conf.js | ||
policy.py | ||
settings.py | ||
theme_settings.py | ||
urls.py | ||
views.py |