This migrates the passthrough code to using the
openstacksdk instead.
This should also have the added benefit of improving
the security posture of this dashboard.
There is a bug in openstacksdk for Designate floating IPs
which will be solved in [1], for now we workaround that
so that older versions of openstacksdk is supported.
This also fixes the 6 year old bug of supporting pagination
for the designate dashboard.
[1] https://review.opendev.org/c/openstack/openstacksdk/+/903879
Closes-Bug: 1729261
Change-Id: Id5ebdc5849d46dc10ab864a54afe37eb9c8f71b7
This patch fixes default index url for the pages, so reload details page
and open it in new tab can work properly.
Closes-Bug: #1902821
Closes-Bug: #1935967
Change-Id: I24fd60e86405d088e254676eefeded9619547e56
The create zone button will not render and the recordset list will be blank with a javascript error, dnsServiceEnabled is assigned before it is defined.
This patch corrects those errors by removing an unused variable assignment.
Closes-Bug: #1987439
Change-Id: I6fe2fa4f19c2117c632a9176f048c7e5a2639c88
The ugettext_lazy method has been deprecated since Django 3.0[1].
This was already replaced in Horizon repo by [2].
[1] https://docs.djangoproject.com/en/3.0/releases/3.0/#id3
[2] cd7c1b5110fe1f64cd9dfbeb1072b37912d0efee
Change-Id: I8103c436aeb5253bf191d8879485a988c071a010
Previously the lint test was failing to run because there was no configuration file for it. This patch adds the .eslintrc file and fixes the found lint issues.
This patch also adds tox environments to run the lint and karma tests.
Change-Id: Idcef4c3ce4e9455acceed645c2530355989a7ee2
Horizon doesn't rely on oslo.log and use the generic logging library
and the Django logger. Following that, this change replaces oslo.log
by the generic logging library, because the only requirement is to
provide access to the root logger instance which doesn't really require
oslo.log.
Change-Id: I2a4f029d5081bb27b30a6889b73f2ad655e74f42
designateclient was used by API v1 dashboard, but it was already
removed.
API v2 dashaobard does not depend on designateclient but it uses
passthough APIs
Change-Id: Ie1e3e7579cff979535a40585d8c11ed94557e6e1
This change introduces an example dashboard config file so that users
can more easily set up the recommended parameters and understand
the available parameters. Horizon supports loading multiple config
files from local_settings.d and it is now encouraged to implement
per-dashboard config file.
Change-Id: I423d4811ead2c0c8f79fc0d80f3c7fe8d3578c97
Currently, UI uses "Floating IP Description" term both for
Project-Networks and DNS-Reverse DNS dashboards, which present different
entities. This situation is confusing, so proposed patch clarifies which
exactly description is shown
Closes-Bug: #1947328
Change-Id: Idf243f74362220bb8d518a7230ef67d4e16da192
Default Index Url is missing for resource modules which causes
improper redirect to details page opened in a new tab.
Closes-Bug: #1905707
Change-Id: I97e34dd80743ff387e230b226394489f0ede812e
This repo is now testing only with Python 3, so let's 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
- Update classifiers
- Update requirements, no need for python_version anymore
- Use newer openstackdocstheme and Sphinx versions
- Cleanup */source/conf.py to remove now obsolete content.
- Remove Babel from requirements, it's not needed for running.
- Update hacking to 3.0, fix problems found
Change-Id: I9eb22328474f52c2e225ae2a24c895c0e2bb63d7
This commit adds the CAA record type in the list of editable record
types of the Designate Dashboard. This fixes existing CAA records being
shown without a record type, and allows users to create and update
CAA records.
Change-Id: I8287f3f8879592b385852c83007d4b46a61a55c7
Signed-off-by: Aggelos Kolaitis <akolaitis@admin.grnet.gr>
In case multiple zones have the same update timestamp (updated_at) the
UI did not show any zone and a JS console listed an error
"Error: [ngRepeat:dupes] Duplicates in a repeater are not allowed."
To fix it addTimestampIds needs to get the correct parameter order,
i.e. pass the name of the ID column before the timestamp column name.
Closes-Bug: 1734601
Change-Id: Ib91f873e8f21b71a71b1684317db276b72ae8014
The v1 api support was removed from the designate client in Train,
and because of that we can no longer support the v1 api in
the Designate dashboard and add release-note-job to
designate-dashboard.
Change-Id: Iabf7d396ea6feb0cd7de1c5408a81a7a3ce1efbf
This fixes the tests by reuseing the more modern approach for
handling settings from the heat_dashboard.
Finally we remove the base designate jobs, as they do not
make use of the dashboard.
Change-Id: I53fd7bd0d01680c0bd59ad19365ceede0125050a
Custom View classes are replaced by a call to the standard AngularView
as_view() method with an added title parameter to fix the missing
title issue.
closes-bug: 1785058
Change-Id: I7ba1fbf0d43c9764386e24867360ee43b4f97124
Replaces initScope (deprecated and removed) with initAction
in resource action definitions, which also fixes policy
rule checks for these actions.
Change-Id: I09fd02baee6bd223ffbd0f29790e501fe4787f40
Closes-Bug: 1750384
The porting of designate-dashboard is complete.
This fullfills 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 #2 release of horizon,
which drops the mox usgae 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: I2ceaf8bae9b20829ec4855cf79635aa805be1984
Signed-off-by: Chuck Short <chucks@redhat.com>
This is part of mox-removal community goal in Rocky.
Story: 2001546
Task: 6431
Change-Id: I1fe5690fcce5976fba24f37757641491a11990db
Depends-On: I9af29e743d81e8cccdb797e8b406e94c3ede2b63
Signed-off-by: Charles Short <zulcss@gmail.com>
Replace django.core.urlresolves with django.urls
(In Django 2.0) The django.core.urlresolvers module is removed
in favor of its new location, django.urls.
It was deprecated in Django 1.10:
https://docs.djangoproject.com/en/2.0/releases/1.10/#id3
Add py35dj20 job to test Django 2.0 integration.
Change-Id: Ie57d111c44c607884e5ed3be614d4acae5e06b7f
Let's use Horizon unit-tests framework where it's
possible to have better cross-project integration.
Related blueprint: improve-horizon-testing
Change-Id: Idb5104c500c9c7cb39d4360439981298ae6333e1