horizon/openstack_dashboard
Radomir Dopieralski 8377fb9e18 Properly compare versions in APIVersionManager
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
2017-01-27 13:43:47 +00:00
..
api Properly compare versions in APIVersionManager 2017-01-27 13:43:47 +00:00
conf Removing deprecate ceilometer code 2016-11-17 16:52:13 -07:00
contrib Enable profiling of angular pages (with async requests) 2016-12-29 18:26:19 +03:00
dashboards Merge "Fix issues on create network and create port modals" 2017-01-26 17:24:55 +00:00
django_pyscss_fix Fix some spelling mistakes in horizon 2016-06-23 17:04:35 +08:00
enabled Merge "Removing deprecated Swift UI code" 2016-11-24 07:55:17 +00:00
local Merge "Keystone to Keystone Federation Drop Down" 2017-01-25 23:10:07 +00:00
locale Imported Translations from Zanata 2017-01-26 07:49:10 +00:00
management Removes unnecessary utf-8 encoding 2016-12-13 15:22:09 +07:00
static Update default OpenStack branding across Horizon 2017-01-25 10:15:11 +00:00
templates Merge "Keystone to Keystone Federation Drop Down" 2017-01-25 23:10:07 +00:00
templatetags Fix docstring warnings 2016-09-24 20:44:48 +09:00
test Properly compare versions in APIVersionManager 2017-01-27 13:43:47 +00:00
themes Add the Profiler panel to the Developer dashboard 2016-12-01 22:29:16 +03:00
usage Merge "Fix volume storage usage value" 2016-12-16 05:07:21 +00:00
utils Replace six.iteritems(iter) with iter.items() 2016-12-14 11:13:20 +08:00
wsgi Normalise the path to resolve ../.. 2016-11-14 16:29:28 +11:00
__init__.py
.eslintrc Add selective ESLint rule activation for Horizon Legacy JS 2015-07-08 17:06:15 -07:00
context_processors.py Merge "Keystone to Keystone Federation Drop Down" 2017-01-25 23:10:07 +00:00
exceptions.py Excise Trove from Horizon 2015-12-22 02:01:07 -07:00
hooks.py
karma.conf.js Refactor tox & update docs 2016-11-30 20:38:59 +00:00
policy.py Specify POLICY_CHECK_FUNCTION as a string 2016-11-25 13:06:14 +01:00
settings.py New Identity NG Panels missing stuff in settings.py/rst 2017-01-17 15:39:49 -08:00
theme_settings.py Dynamic Themes 2016-02-25 09:49:43 -08:00
urls.py Update URLs to Django 1.8+ style 2016-03-28 11:03:08 +01:00
views.py Retrieve domain scoped token 2016-03-08 15:17:38 -08:00