This reverts the change[1] made earlier to workaround the issue caused
by usage of vendored version of six library in the django-pyscss
library.
The django-pyscss library no longer imports the vendored version of
six, since 2.0.3[2].
[1] 39f28ad5ed
[2] 1499332e1d
Change-Id: I22802b75d6a8d8f35930709e89d64dd65982cef0
A test for site_branding tag starts to fail with Django 4.0.
It seems to happen as settings.SITE_BRANDING is _("Horizon") and
a translation marker _() is no longer evaluated during rendering.
As a solution, this commit changes the implementation of
site_branding tag to use "simple_tag" method
as django.template.Library.simple_tag() [1] seems to handle
an i18n-ed string properly.
[1] https://docs.djangoproject.com/en/4.0/howto/custom-template-tags/#simple-tags
Closes-Bug: #1980214
Change-Id: I6fdfffbeef2b405da21289d37722e3f068e27fea
This patch adds support for MFA TOTP on openstack dashboard.
A new configuration variable OPENSTACK_KEYSTONE_MFA_TOTP_ENABLED
was added false by default.
If enabled, users needing TOTP are prompted with a new form.
keystone doc: https://docs.openstack.org/keystone/latest/admin/auth-totp.html
Demonstration video : https://youtu.be/prDJJdFoMpM
Change-Id: I1047102a379c8a900a5e6840096bb671da4fd2ff
Blueprint: #totp-support
Closes-Bug: #2030477
This patch changed the code to use the recommended .trigger("focus")
method instead of the deprecated .focus(). For more information
about this deprecation, please refer [1].
[1] https://api.jquery.com/focus-shorthand/
Change-Id: Ib743c2d5d01aa81d43b2d38efc01496b25f58b26
This patch changed the code to use the recommended .trigger("change")
method instead of the deprecated .change(). For more information
about this deprecation, please refer [1].
[1] https://api.jquery.com/change-shorthand/
Change-Id: I762485c979cc5032db9a080d97d74f4be6efbcaf
This patch changed the code to use the recommended 'on()' method
instead of the deprecated shorthand event. For more information
about this deprecation, please refer [1].
[1] https://api.jquery.com/click/
Change-Id: I4118a241a9e588ddac8cd1863979a7c83d6f98ff
This patch changed the code to use the recommended 'on()' method
instead of the deprecated shorthand event. For more information
about this deprecation, please refer [1].
[1] https://api.jquery.com/change-shorthand/
Change-Id: Ia580ddf2ea5b0fba7feb400db759f59c0f5d958f
This patch changed the code to use the recommended .trigger('submit')
instead of the deprecated shorthand event .submit(). For more
information about this deprecation, please refer [1]. I am getting
this warning while deleting the "Application Credentials" under
Identity dashboard.
[1] https://api.jquery.com/submit-shorthand/
Change-Id: Icd86ccd6ec7c7b0df0e25254751caa7bc0a5f8e1
Image description can be edited through Edit Image -> Image Detail,
however it also appears as a property in Edit Image -> Metadata when
the description is not empty. It's confusing to have it in two sections
of one dialog form, and moreover, the Image Detail field always
overwrites the Metadata field.
This patch removes Description from Edit Metadata.
Closes-Bug: #2017698
Change-Id: I041948b4b71f00894f03cc30cfa4592df4a100c3
This patch changed the code to use the recommended .trigger('blur')
method instead of the deprecated shorthand event. For more
information about this deprecation, please refer [1].
You will get this depracation warning in
Identtity->Domains->Action->"Manage Members" popup.
[1] https://api.jquery.com/blur/
Change-Id: I8b8713c5b239b3b786abf40b9ddcf5bb9bb109ba
This patch updates the code to use the .prop() function instead of
.removeAttr() which was causing a deprecation warning.
For more info. please refer[1].
[1] https://api.jquery.com/removeAttr/
Change-Id: If9e104530d8ac48ead1d29eecabc6831046bc048
This patch replaced the deprecated mousedown() event shorthand
with on('mousedown', ...) as suggested by the jQuery documentation[1].
This change ensures compatibility with the latest version of jQuery
and resolves the deprecation warning.
[1] https://api.jquery.com/mousedown/#mousedown-handler.
Change-Id: I2ccba8236d5831f4c81b3f963b7dc54fb98d95b8
This patch updates the code to use the .on() method instead of
the deprecated .keyup() event shorthand, which was causing a
deprecation warning. For more info. please refer[1].
[1] https://api.jquery.com/keyup/
Change-Id: Idda3c2f083e6f484dcc745d07ed2d46698b0718d
This patch updates the code to use the .on() method instead of
the deprecated .keydown() event shorthand, which was causing a
deprecation warning. For more info. please refer[1].
[1] https://api.jquery.com/keydown/
Change-Id: I00b7c85f940f4967026e5d397321d4d56f10b1aa
The shorthand jQuery.fn.click() event has been deprecated in favor
of the on() method. This patch updates the code to use the on()
method instead to remove the deprecation warning. For more
information about the deprecation of jQuery.fn.click(),
please refer [1].
[1] https://api.jquery.com/click/
Change-Id: Ic44aaded8d0aaa70e38e46d4121dc3c825f3b831
In horizon.forms.handle_submit(), replaced the shorthand .submit()
eventbinding with .on('submit', function ()) to avoid the deprecated
shorthand usage as suggested by the jQuery documentation[1].
[1] https://api.jquery.com/submit/
Change-Id: I1ddd89bd99510a981f2f3b6e198786890be22280
The jQuery.parseJSON() method has been deprecated since jQuery 3.0, and
generates a warning in the console. This patch replaces all instances of
jQuery.parseJSON() with JSON.parse(), as recommended in the jQuery
upgrade guide [1]. This ensures that the code is compatible with the
latest version of jQuery and eliminates the warning.
[1] https://jquery.com/upgrade-guide/3.0/#deprecated-jquery-parsejson
Change-Id: I1da5a6c56cefe9bbe0c1185ac8c536eb8f2a6a35
This patch replace uses of .bind(), .delegate(), and .unbind()
with .on() and .off() respectively[1], in order to migrate to the
latest version of jQuery.
[1] https://jquery.com/upgrade-guide/3.0/#deprecated-bind-and-delegate
Change-Id: I32c1fcd33db9af34a3f041e513a6a949c4921351
Our templates are very inconsistent and sometimes even use single and
double quotes in the same tag. This is an attempt to clean it up a
little and use double quotes everywhere.
In addition, I have run into a problem with single quotes being
incorrectly escaped by the Django compressor, and I want to see if
this will help with the issue.
Change-Id: I2d5137a87ed65c6abef38a49264346f917a1c85a
Depending on the size of the datatable, sometimes, the search
bar is "hidden" due to the user scrolling. To make the
interface more user-friendly, it is interesting that both
the search bar and the sidebar are always displayed. Therefore,
this patch is introducing changes to always pin the search bar
and the sidebar at the top of the page.
Closes-Bug: #1928678
Change-Id: I9186a4fa1dd2a16f75464ff3bb1c0c9b76a12cc7
Image metadata properties os_hash_algo and os_hash_value are
readonly, and attempts to edit them fail with unclear message.
This patch makes these fields readonly in update metadata form.
Also, if the existing metadata property is null, Horizon should
consider it optional too, in addition to empty field fix:
https://review.opendev.org/c/openstack/horizon/+/812009
Change-Id: I892465ca4688fce9f7123682d02f11c92c7d2c5c
There's an implementation of navigation modules for pages written
in Angular.
Legacy tests for images page are rewritten to work with the new
navigation.
Change-Id: Ib8a40f0adb0a46c9d646c6796a4242988eefa6e3
On apache environments, when WEBROOT is "/dashboard/" and not "/",
redirection after deleting from Angular details page is broken. If
we go to image/key pair/server group/etc details page, and delete
it from this page, redirect url is "/dashboard/dashboard/project/..."
instead of "/dashboard/project/..."
This patch switches from using WEBROOT depentent panel navigation to
getting default index url directly from details view controller.
It also cleans up a work around that was implemented for some pages.
Change-Id: I6bd06ea479f473a319f8100cbf8d168424b62461
The new setting should allow an administrator to specify default user_data
for new VMs. The default user_data can be a string template that accepts
request object which has info about the user, so the default user_data can
be personalized.
Change-Id: I86ac21bf82c1667135abd4f20fb4514da0899450