Commit Graph

588 Commits

Author SHA1 Message Date
OpenStack Proposal Bot 097d12aee2 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ied14cf6c81db0cdf8ace77f32510a4b38decde19
2022-06-21 03:17:52 +00:00
Zuul 21bc83dc4f Merge "Address RemovedInDjango40Warning" 2022-05-02 11:00:27 +00:00
Ghanshyam Mann d791f72d3f Drop lower-constraints.txt and its testing
As discussed in TC PTG[1] and TC resolution[2], we are
dropping the lower-constraints.txt file and its testing.
We will keep lower bounds in the requirements.txt file but
with a note that these are not tested lower bounds and we
try our best to keep them updated.

[1] https://etherpad.opendev.org/p/tc-zed-ptg#L326
[2] https://governance.openstack.org/tc/resolutions/20220414-drop-lower-constraints.html#proposal

Change-Id: Id1033264dea1d8b72ee49e33cc776d5dac6193b9
2022-04-30 20:25:10 -05:00
manchandavishal 6289954907 Address RemovedInDjango40Warning
In Django 3.1, django.conf.urls.url() is deprecated
in favor of django.urls.re_path(). For more info see [1]
These were already replaced in Horizon repo by [2].

[1] https://docs.djangoproject.com/en/4.0/releases/3.1/#id2
[2] https://review.opendev.org/c/openstack/horizon/+/827093

Change-Id: I0f7a59d28f8611ccaf66143ea6cdf0a89cedf80f
2022-04-29 22:41:30 +05:30
OpenStack Release Bot 7f794a9f0b Add Python3 zed unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for zed.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: Idfe1e5221fdd64051cf87ae1a48ec539edb60f86
2022-03-10 17:06:50 +00:00
Zuul 75f1f95bba Merge "Change policy file format to yaml" 2022-02-03 09:51:08 +00:00
okozachenko d062507ef5 Change policy file format to yaml
https://governance.openstack.org/tc/goals/completed/wallaby/migrate-policy-format-from-json-to-yaml.html

Change-Id: I487bbe982b83db5e1815a4c8a06d5fd0e203e8ee
2022-02-03 18:33:15 +11:00
manchandavishal 0d995d1793 Updating python testing classifier as per Yoga testing runtime
Yoga testing runtime[1] has been updated to add py39
testing as voting. Unit tests update are handled by the
job template change in openstack-zuul-job

- https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/820286

this commit updates the classifier in setup.cfg file.

[1] https://governance.openstack.org/tc/reference/runtimes/yoga.html

Change-Id: Ieab82b0547f52e435d075de5b771287372ef8f20
2022-01-31 10:42:22 +05:30
Adrian Czarnecki 1ce80db6e0 Add time/times to alarm def creation
Change-Id: I66affefab3f8a95452a4fb724da3870e5928d3ce
2021-11-21 15:42:24 -08:00
okozachenko 99591546cf Convert dimension value type from byte to str in MonascaProxyView
To get the dimension value, urllib.parse.unquote() func is used in
MonascaProxyView._convert_dimensions. urllib.parse.unquote() func
requires str only until python3.8.

Change-Id: Ib52b4c2065dee10a96f1644cf1ec474b60147d87
2021-10-02 18:39:08 +02:00
OpenStack Release Bot 884eea8219 Add Python3 yoga unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for yoga.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I7b0e0c3161f3dc632be464eca6554755e96869eb
2021-09-17 11:17:00 +00:00
manchandavishal ced9789139 Bump decorator version in lower-constraints.txt
This patch update decorator version to 4.4.2 in
lower-constraints.txt to fix the lower-constraints job.
It also update horizon version in requiremnets.txt to
sync with horizon version in lower-constraints.txt.

Change-Id: Ifacecc79608df3d052679779bc7a9f1338d2d2f6
2021-09-17 12:47:19 +05:30
OpenStack Release Bot 9014bce3de Add Python3 xena unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for xena.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I3807806d82b60a71565b5ca2b550c3f7adbaa28e
2021-03-26 11:13:07 +00:00
Martin Chacon Piza e90fb181f5 Remove prefix 'dim_' from dimensions in Drilldown Dashboard
Change-Id: Idc5a93ebcdbe3bae622fa70c1e900533bf4a7c1c
2021-03-23 21:23:42 +01:00
Martin Chacon Piza 36cc4be740 Add missing PY3 support in overview views
This method is ussed in Grafana Dashboards with Horizon
Authentication. The panel wasn't able to display the metrics
when dimensions are used as filter.

Change-Id: Id6e92a371df39d2dfcfe8125ef50a76e295ab223
2021-03-23 12:26:34 +01:00
OpenStack Proposal Bot eb44a1031e Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Iddc99691aface0757ca8440711ae680799044901
2021-03-13 07:02:46 +00:00
manchandavishal eb069566f7 Use TOX_CONSTRAINTS_FILE
UPPER_CONSTRAINTS_FILE is old name and deprecated.
This allows to use upper-constraints file as more
readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.
For more info. please refer [1].

[1] https://zuul-ci.org/docs/zuul-jobs/python-roles.html#rolevar-tox.tox_constraints_file

Change-Id: I5403b96d4dd0faac9f1295d57a1680a7d452c7b1
2021-02-16 12:32:22 +00:00
wangzihao 6f429c8664 bump py37 to py38 in tox.ini
in 'victoria' cycle, we should test py38 by default.

[1] https://governance.openstack.org/tc/reference/runtimes/victoria.html

Change-Id: Ib2876357e34a802036e686b86f9812d99063b636
2020-12-09 14:07:54 +00:00
wangzihao 61c84581e9 Align lower-constraints for new pip
Bump a series of lower-constraints and requirements to work with new pip
resolver, testing with steps outlined at [1]

[1] http://lists.openstack.org/pipermail/openstack-discuss/2020-December/019285.html

Change-Id: I7034058612ff66d1bb7d8350c8120f007384ad7a
2020-12-09 14:43:03 +01:00
OpenStack Proposal Bot 2ec9b30f2e Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: If52ac727ebda22de75b205a350e22655299ee271
2020-11-04 07:50:37 +00:00
wangzihao c1ae54b120 Remove six
Remove six Replace the following items with Python 3 style code.
- six.text_type
- six.moves.urllib
- six.PY3

Change-Id: I8d2357e51d570e9e0513326248878fd0133144bb
Story: 2008305
Task: 41203
2020-11-03 11:21:10 +01:00
Zuul a2e06fcfb9 Merge "Cleanup for Refactor-error-messages" 2020-10-14 13:16:22 +00:00
OpenStack Release Bot 1da1b7f9e3 Add Python3 wallaby unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for wallaby.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: Id81a44c484ce86436c6f2f3278c96b3ffc85abb1
2020-09-28 15:47:52 +00:00
manchandavishal b4991fcf25 Cleanup for Refactor-error-messages
This patch is a clean-up patch for refactor-error-messages bp
which remove the exception message from base message otherwise
the same exception message display twice like
this https://ibb.co/XyFWMdz .

Depends-On: https://review.opendev.org/#/c/708069/
Change-Id: I1ddea97cdcaf4142d9dabcf4a629e805a9c1e152
2020-09-16 08:19:57 +00:00
Zuul 0ae1ab35e4 Merge "[goal] Migrate testing to ubuntu focal" 2020-09-03 15:34:52 +00:00
manchandavishal 56958ac0fd [goal] Migrate testing to ubuntu focal
As per victoria cycle testing runtime and community goal[1]
we need to migrate upstream CI/CD to Ubuntu Focal(20.04).

Fixing:
- bug#1886298
Bump the lower constraints for required deps which added python3.8
support in their later version.
Story: #2007865
Task: #40197

Closes-Bug: #1886298

[1] https://governance.openstack.org/tc/goals/selected/victoria/migrate-ci-cd-jobs-to-ubuntu-focal

Change-Id: I88cdf86365a0af8450e5fb823eab830834ce8fa1
2020-08-21 11:42:57 +00:00
Michal Piotrowski 2bfbee4bb9 Alarm definition breakes Alarms view
Change-Id: Iab4bfabc21dee3709ba3d7f13e67b3a12a90b396
Story: 2008005
Task: 40654
2020-08-14 10:28:01 +02:00
jiasirui feed099eaf Start README.rst wiht a better title
Change-Id: I9374912356870b726c88a030ab17caf7356fabd5
2020-06-16 16:57:17 +08:00
Hervé Beraud ca55abec23 Use unittest.mock instead of mock
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we can use the
standard lib unittest.mock module instead.

Bump horizon to 18.3.0 in lower-constraints.txt since it is the
first version with "Use unittest.mock instead of third party mock"
change [1]

[1] 7eeb9e14f9

Change-Id: Ic64fffaeded18ac11ce438c77526e60a37aeaa1d
2020-06-10 13:59:58 +02:00
Hervé Beraud 560c890dce Stop to use the __future__ module.
The __future__ module [1] was used in this context to ensure compatibility
between python 2 and python 3.

We previously dropped the support of python 2.7 [2] and now we only support
python 3 so we don't need to continue to use this module and the imports
listed below.

Imports commonly used and their related PEPs:
- `division` is related to PEP 238 [3]
- `print_function` is related to PEP 3105 [4]
- `unicode_literals` is related to PEP 3112 [5]
- `with_statement` is related to PEP 343 [6]
- `absolute_import` is related to PEP 328 [7]

[1] https://docs.python.org/3/library/__future__.html
[2] https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html
[3] https://www.python.org/dev/peps/pep-0238
[4] https://www.python.org/dev/peps/pep-3105
[5] https://www.python.org/dev/peps/pep-3112
[6] https://www.python.org/dev/peps/pep-0343
[7] https://www.python.org/dev/peps/pep-0328

Change-Id: I57212750f6bfc922fb462dee15567e864f73743e
2020-06-02 20:25:55 +02:00
Zuul 6413d27f7a Merge "Add Python3 victoria unit tests" 2020-05-28 13:02:49 +00:00
Witek Bedyk f15c66725b Add CONTRIBUTING.rst
Change-Id: I3b5422fe0e7728b9ab08ffb6b2dd33878dff7984
2020-05-19 16:29:52 +02:00
Ghanshyam Mann d2b5b18b3a Fix hacking min version to 3.0.1
flake8 new release 3.8.0 added new checks and gate pep8
job start failing. hacking 3.0.1 fix the pinning of flake8 to
avoid bringing in a new version with new checks.

Though it is fixed in latest hacking but 2.0 and 3.0 has cap for
flake8 as <4.0.0 which mean flake8 new version 3.9.0 can also
break the pep8 job if new check are added.

To avoid similar gate break in future, we need to bump the hacking min
version.

- http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014828.html

Change-Id: I7028aa296303e1dd138bcbc511072a4e4f228aad
2020-05-12 19:30:27 -05:00
OpenStack Proposal Bot 81d397bb79 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ib832257185b3709d33055aff00072e8918dd052d
2020-05-07 08:02:25 +00:00
OpenStack Release Bot 68c9fb4c26 Add Python3 victoria unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for victoria.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I03f0d04801023a88d48ee9692164b7359043adc6
2020-04-23 21:30:16 +00:00
Zuul 135d98dfa3 Merge "Fix pyScss version in lower-constraints.txt" 2020-04-16 08:45:02 +00:00
manchandavishal b1caa0128f Fix pyScss version in lower-constraints.txt
Horizon requires  pyScss>=1.3.7 [1] but lower-constraints.txt
in monasca-ui uses pyScss 1.3.4 which can cause the
failure in future. So this patch update pyScss version in
lower-constraints.txt to sync the change.

[1] https://review.opendev.org/#/c/715241/

Change-Id: I792c90993db19ecf4821ff45da0279658bae4719
2020-04-15 17:48:23 +00:00
Andreas Jaeger d694236c3a Cleanup py27 support
Make a few cleanups:
- Remove python 2.7 stanza from setup.py
- Add requires on python >= 3.6 to setup.cfg so that pypi and pip
  know about the requirement
- Remove obsolete sections from setup.cfg:
  * Wheel is not needed for python 3 only repo
  * Some other sections are obsolete
- Update classifiers
- Update requirements, no need for python_version anymore
- Remove sphinx requirements, the repo has no docs

Change-Id: I3ee6abac9b5c4c639521bb2834a104bc53ce93ed
2020-04-15 19:01:08 +02:00
Andreas Jaeger db7c489c7a Add pytest requirement
Fix py36 and py37 tests, they are failing since pytest is not installed.
Horizon tests need this.

Change-Id: I8755d7e11e17aad6b48e7917eb07bf286fbd6e4f
2020-04-15 15:21:04 +02:00
Andreas Jaeger f037523797 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found by updated hacking version.

Remove hacking and friends from lower-constraints, they are not needed
for co-installing.

Change-Id: Ibef3bbaceb61612d678c542bc8c95da24a7e2c87
2020-04-01 12:22:43 +00:00
Zuul 8ecb68d75c Merge "Drop Django 1.11 support" 2020-01-17 15:30:05 +00:00
manchandavishal f8d3417d0b Drop Django 1.11 support
Django 1.11 ends its extended support in April 2020 (which is before
Ussuri release), so horizon drops Django 1.11 support in Ussuri.

tox envs for non-primary Django versions are no longer needed in tox.ini
as testing environments for non-primary Django versions are setup in
the zuul jobs now.

horizon>=17.1.0 is required to use Django 2.2. requirements.txt and
lower-constraints.txt are updated accordingly. for more info. please
refer [1].
Depends-On: https://review.opendev.org/#/c/700733/
[1] https://etherpad.openstack.org/p/Enable_Django22_support_in_Horizon_Plugin

Change-Id: I3cd4ad5c3fe590cb1522b2be1b2059d7c70b45cc
2020-01-02 19:40:26 +00:00
Akihiro Motoki 0d4bd0bd25 translation: drop babel extractor definitions
babel extractors are now registered via python entry points,
so there is no need to declare babel extractors in babel configs.

This change is important to make translation work in Django 2.2.
django-babel does not work with Django 2.2 and looks unmaintained
for over two years. The horizon team is thinking to switch the extractor
to enmerkar (a fork of django-babel) to make extraction of translation
string work again near future. It is important to drop the extractor
definition to make the transition smooth.

Change-Id: I84d36a14b779a510bea5a24d991192016ae73273
2019-12-27 02:18:23 +09:00
Ghanshyam Mann 4e82a8103e [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

monasca-ui is ready with python 3 and ok to drop the
python 2.7 support.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Depends-On: https://review.opendev.org/#/c/693631/
Change-Id: I47be69fe3b53df70ba775bad342d88129de5ff0a
2019-11-16 16:59:02 +00:00
Zuul a03a976da8 Merge "Use Horizon project template for django jobs" 2019-10-22 09:43:43 +00:00
manchandavishal a3b46a1ab0 Use Horizon project template for django jobs
Horizon defined a project template 'horizon-non-primary-django-jobs'
for django jobs [1]. This patch use that template to run django jobs
here and also fixes the failed test cases for django2.2 support
by adding renederer argument[2] and fix setting.py.

[1] https://review.opendev.org/#/c/681969/

[2] https://docs.djangoproject.com/en/2.1/releases/2.1/#features-removed-in-2-1
Change-Id: Ibe6e1a965179022873630e61529a3318ece7e66b
2019-10-21 07:18:44 +00:00
Zuul 2a8dc33ae0 Merge "Switch to official Ussuri jobs" 2019-10-17 10:43:24 +00:00
manchandavishal ea41551103 Switch to official Ussuri jobs
Change-Id: Ia2d2c41ecc11173229e9c73bd5bc89c9a0ad48f1
2019-10-14 07:01:01 +00:00
manchandavishal b95f0873d8 Update the constraints url
For more detail, see http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: Ie6a63d939165e52afa7f15091a226dcb525a31d8
2019-10-09 17:19:14 +00:00
Zuul ac9b6e163c Merge "Use django.conf.settings instead of local_settings" 2019-09-30 12:58:35 +00:00