Commit Graph

144 Commits

Author SHA1 Message Date
Zuul eaa6b7c3ba Merge "Migrate passthrough to openstacksdk" 2024-01-22 23:06:49 +00:00
Tobias Urdin caa257dafc Migrate passthrough to openstacksdk
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
2023-12-18 15:42:00 +01:00
BubaVV 3cf92109ce Fix "Masters IP Address" for Zone update form
Closes-Bug: #2015470
Change-Id: I8b8050d164c0f0fec222b98005bd101c4ce282d6
2023-04-06 14:59:16 +03:00
Tatiana Ovchinnikova 55718b71f8 Fix details pages reload behaviour
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
2022-09-12 22:22:13 +00:00
Michael Johnson 80100077be Fix issue with missing elements in the dashboard
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
2022-08-23 20:47:02 +00:00
Zuul 2544155bf4 Merge "Replace deprecated ugettext_lazy" 2022-07-18 23:13:45 +00:00
Takashi Kajinami 69fe294659 Replace deprecated ugettext_lazy
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
2022-07-11 13:20:29 +09:00
Michael Johnson 64993055e7 Fix designate-dashboard lint
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
2022-06-24 21:07:13 +00:00
Michael Johnson 7ee73c9e1c Update Designate dashboard for Angular 1.8.2.2
This patch updates Designate dashboard for breaking changes in the
update to Angular 1.8.2.2 in horizon[1].

[1] https://review.opendev.org/c/openstack/requirements/+/844099

Change-Id: Ic8245f5da712d044b66ab19610885a112b75a4a5
2022-06-22 19:33:35 +00:00
Zuul 32559e514d Merge "Remove unused designateclient" 2022-06-16 05:43:25 +00:00
Takashi Kajinami 02c92fd2b5 Replace usage of oslo.log
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
2022-05-19 00:25:08 +09:00
Takashi Kajinami d409496dd6 Remove unused designateclient
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
2022-05-19 00:19:38 +09:00
Zuul 928f859fc7 Merge "Add example dashboard config file" 2022-05-11 21:58:25 +00:00
Zuul e69b826e9d Merge "Rename "Floating IP Description" field" 2022-05-11 21:58:23 +00:00
manchandavishal ca1d0f5cb2 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: Iaa548fbd1774659217cc75dc90ad008407ed3b7e
2022-04-29 22:00:56 +05:30
Takashi Kajinami 7de390b314 Add example dashboard config file
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
2022-01-05 21:32:55 +09:00
Vadym Markov 07f16f29db Rename "Floating IP Description" field
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
2021-10-15 12:04:12 +03:00
OpenStack Proposal Bot ec54320a2d
Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I09f41e81633fc3489906bb628c538942115ff5fa
2021-03-03 12:07:05 -07:00
Tatiana Ovchinnikova 0fb4e2e99e Add default index URL to resource modules
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
2020-11-30 15:47:04 -06:00
Andreas Jaeger 7bace2a2cd Cleanup py27 support
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
2020-04-17 18:33:17 +02:00
Aggelos Kolaitis f4cf36e57f Add CAA record type support
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>
2020-03-06 19:32:14 +02:00
Ingo Fischer c6d53e4f8a Fix list zones updated at same time
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
2019-10-09 13:20:38 +02:00
OpenStack Proposal Bot 410e06916b Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I0beb8e9b8c0c9620b2f1379ce43fb7dcad7f8f54
2019-09-25 08:08:50 +00:00
Erik Olof Gunnar Andersson fe68f0f1bc Removed deprecated v1 api dashboard
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
2019-09-23 11:31:40 +00:00
Zuul d026fee8f7 Merge "Imported Translations from Zanata" 2019-07-15 18:45:06 +00:00
Erik Olof Gunnar Andersson 858de8f703 Fix broken tests
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
2019-07-13 23:22:32 -07:00
OpenStack Proposal Bot 79d110e9c5 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I79a4c4c3d43183a0978a10bd29d2d8367f1d6366
2019-06-12 08:39:32 +00:00
OpenStack Proposal Bot ff276852c6 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I047c5374cb7224211683dd266e9a278a2a961f60
2019-05-06 08:10:05 +00:00
OpenStack Proposal Bot 70d4c35172 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I3e92606b1c26d1cf760d760f1a1f01b8befdc0ca
2019-03-12 08:16:27 +00:00
OpenStack Proposal Bot 6f00fcb31b Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ie1b4e3628b9121a4b911d699cb82f7ef2d0547c4
2019-02-26 08:18:07 +00:00
OpenStack Proposal Bot aaafc23566 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ia9efa82b4f68b83b93b26c2c0120fc67bc5fd0de
2019-02-15 08:03:18 +00:00
OpenStack Proposal Bot c3af205a1e Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ic85f5981cf3e9098fc482badd822550415a5b1b2
2019-01-16 06:35:36 +00:00
Zuul e87d505b19 Merge "update wiki http links to https" 2019-01-14 08:50:46 +00:00
OpenStack Proposal Bot dcc3a5d253 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I8e1efa572f8db9702693c81d5f405c59849f9bec
2018-12-19 07:13:10 +00:00
sunqingliang6 d94a738a8d update wiki http links to https
Change-Id: I1410caf395c298f16be6336f96e9adb59bdea76c
2018-11-10 15:32:28 +08:00
Alex Monk 447491b5da Allow creation of NS records in zones
Closes-Bug: #1791865
Change-Id: I5c187a64548da06d445c1dc40d29867510196bd4
2018-10-06 18:31:32 +01:00
Zuul 3f5a3294a6 Merge "Imported Translations from Zanata" 2018-08-09 19:09:26 +00:00
Zuul 114bdfe820 Merge "Updates to new Horizon action API" 2018-08-09 19:09:26 +00:00
OpenStack Proposal Bot 8c52c0b7ad Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I8d6d27329841816ac5491544bdc324ede5ae1230
2018-08-09 06:52:38 +00:00
mareklycka d56901f195 Replaces ng-views with the horizon streamlined version
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
2018-08-07 08:12:55 +02:00
mareklycka 66953e66c2 Updates to new Horizon action API
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
2018-08-02 09:12:28 +02:00
Chuck Short 78119f9800 Drop mox - no longer needed
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>
2018-07-19 11:03:06 -04:00
OpenStack Proposal Bot 3ec93fc94c Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I83ca07f5e15ede774250536fd241a220926ef066
2018-07-13 07:32:18 +00:00
Zuul e8fb9f75fb Merge "Drop mox3 from test-requirements.txt" 2018-06-03 00:56:05 +00:00
Charles Short 59a354e3bf Drop mox3 from test-requirements.txt
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>
2018-05-13 14:00:32 -04:00
Akihiro Motoki 84ad2b7337 Django 2.0 support
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
2018-05-11 00:05:57 +09:00
Ivan Kolodyazhny b7d70684e2 Use Horizon UT framework
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
2018-04-19 13:02:19 +00:00
Dmitry Galkin 890e049655 Sender Policy Framework record is SPF in short.
Change-Id: I39491d13a8c89356393b039bbeeb9db867a44dac
Closes-Bug: 1758905
2018-03-26 12:55:11 +00:00
OpenStack Proposal Bot 3d3ff3e24e Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I1e2600cfc7f8a687572310d5711bffcd0c91e67f
2018-03-14 07:18:49 +00:00
OpenStack Proposal Bot 635727de83 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ia65d2423a912bce0f91d0a86e3115d07a9afd20c
2018-03-11 07:10:00 +00:00