force_text() is deprecated in favor of force_str()
and urlquote() is deprecated in favor of
urllib.parse.quote() in Django 4.0. For more please
refer [1].
[1] https: //docs.djangoproject.com/en/4.0/releases/4.0/
Co-Authored-By: manchandavishal <manchandavishal143@gmail.com>
Change-Id: Ibc97402b735c3ddbdd7a2174e14353dad34cbc22
The ugettext_lazy method and the ungettext_lazy method are both
deprecated since Django 3.0[1].
These were already replaced in Horizon repo by [2].
[1] https://docs.djangoproject.com/en/3.0/releases/3.0/#id3
[2] cd7c1b5110fe1f64cd9dfbeb1072b37912d0efee
Change-Id: I90224714987c8583a8d407f661494479db4214af
Now only python 3 is supported, which means unittest.mock
can be used instead of the external mock module.
This change can be done thanks to the Horizon
change I2de669d8e89b8daeb7ee5405ffab35af6307c40b
Switch to openstack-lower-constraints-jobs-horizon
which pulls in the last horizon. The lower-constraint
version of horizon should be bumped when a new
version (post-18.2.0) is released.
Finally, add pytest to the set of test requirements
to prevent an missing import error (even through
the sahara scenario tests still need to be ported
to pytest).
Change-Id: I2c61e9d88b2d05c9f0b68066d7bb15b43cdf083f
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.
Fix problems found.
Update local hacking checks for new flake8.
Remove hacking and friends from lower-constraints, it's not needed
there for co-installing.
Change-Id: I3d250ba82cc14f163f4295381b9b9c232486ac9f
This repo does not support Python 2 anymore, so we don't need
six for compatibility between Python2 and 3, convert six usage to Python
3 code.
Change-Id: Ib1659e903aded26994cc5cd56881a21e102964fe
Needed-By: https://review.opendev.org/701743
The use of filter() within the codebase expected the output to be
an interator, but the filter function in Python 3 now returns a
lazy loading generator and resulted in stack traces.
This commit replaces the use of filter() (+ lambdas) with more
readable list comprehension to be compatible with Python 2 and 3.
Change-Id: I56af1dc1f6648ec334f901cb59893240b0125031
The porting to mock of sahara-dashboard is complete.
This fulfills the community goal
"Remove Use of mox/mox3 for Testing" set for Rocky:
https://governance.openstack.org/tc/goals/rocky/mox_removal.html
Raise the requirement to the Rocky M2 release of Horizon,
which drops the usage of mox by default (it should be
explicitly enabled). Without a forced import from Horizon
the mox dependencies can be dropped here.
Bump also a dependency needed by this new version of Horizon.
Change-Id: Iaf272af9919f8a69562c0a469130bbf8628936cf
Horizon commit e50a69d69f338d0ec66baa659a7d82e328e62a67 saw
_cls_registry become a list instead of a set. We need to reflect this
change, or else see:
'set' object has no attribute 'append'
Change-Id: I302b6120145909fc4d342579818b05584a0820a3
Replace the old url links in sahara-dashboard with the lastest ones
according to the OpenStack website.
Change-Id: I75857ad41098a2a0ed283f1ac912de1ac020de01
The 'SAHARA_AUTO_IP_ALLOCATION_ENABLED' config parameter in Sahara
is confusing. If you wish to disable floating IP options during node
group template creation, set it 'True', but this name sounds like it
has to do with automatically associating a floating IP. So this patch
renames it to a meaningful variable name.
Change-Id: If8f71ea21cb71bbffe996f7db88b7683ad91ecac
streaming_mapper and steraming_reducer as not marked as not required,
this causes UI to crash when trying to launch job that are not Streaming
MapReduce jobs.
Change-Id: I79a9663a0059edd14b8a79399cfd9f72c253199e
The item (and the buttom to create a new job binary) didn't work anymore
in Django 1.11, due to a change in the parameter list of the render()
method: it was previously based on the position, now the arguments are
explicitly passed using their names.
Thanks to https://github.com/springload/wagtaildraftail/issues/51
for the explanation.
Closes-Bug: #1743384
Change-Id: I241021c593ad50591f0155dfb364afbc662a4794
blocktrans trimmed option removes newlines from contents of blocktrans
and replaces any whitespace at the beginning and end of a line into
a single space. This makes translator life easier.
Closes-Bug: #1741761
Change-Id: I7e8d5337553fff595e66ea406f6528bb6b36ff94
Partially-Implements: bp portable-node-group-and-cluster-templates
This change adds button "Import Template"
to cluster templates tab in dashboard.
Change-Id: If83aaf34f84e82052c3a82ab36cb61648ff3125f