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
As per OpenStack licensing guide lines [1]:
[H102 H103] Newly contributed Source Code should be licensed under
the Apache 2.0 license.
[H104] Files with no code shouldnt contain any license header nor
comments, and must be left completely empty.
[1] http://docs.openstack.org/developer/hacking/#openstack-licensing
Change-Id: If6676d7bf7409ebec2a035bdae158b644e19a861
Changes:
1. Remove css styles from html templates.
2. Transfer this styles to new css files.
Change-Id: I318b5fb4a6f15456d7756bc438e0d93b91255203
Closes-bug: 1421287
In this commit I create folders js
in static/dashboard/project/data_processing and
move all js files to js folder.
Change-Id: I06cd2adcf0290199a699cd6e8bdc5b5bf6c08b91
this change is just replacing plugins tab to a
separate tab group.
blueprint: plugin-management-api
Change-Id: I7d1a93fbacec0ad0d2551189d89033c92d7fb3d7
Now we can launch job only on clusters that in Active or Error state.
* added 'in {state} state' phrase to cluster selection field for
clusters that in the state that differs from 'Active' state.
* added warning message for the choice of the cluster in the state
that differs from 'Active' state.
* added 'No clusters available' message if there are no suitable
clusters for a job launching.
Change-Id: I949b81290f94370eb0709f0a04e4d2ce39855323
bp: cluster-choice-for-jobs
closes-bug: 1430232
following things are done in change:
* action to verify cluster;
* view to display health check in cluster details;
* new column for the health overview in clusters list.
Implements blueprint: cluster-verification
Depends-On: I598753cbb33d7781b646e726ad8d614e924e4876
Change-Id: I6c47d564400872ec4f38bf9d5824f93f4599181c
The infra script assumes that transaltion files is placed under
sahara_dashboard/locale and it is required that 'sahara_dashboard'
is included in ADD_INSTALLED_APPS to make translation work.
It did not work to add symlink to 'sahara_dashboard/locale'
and it was reverted by commit 55512fcc5e.
This commit explores another way to support translation.
Note that other entries in ADD_INSTALLED_APPS are not touched
to avoid breaking other stuff of sahara-dashboard.
I don't know the background of using the current ADD_INSTALLED_APPS,
so cleaning them up is out of scope of this patch.
Change-Id: I214fca300df771ff3f35e8a9efe216104f48ebd4
Removing the separate guide panels and putting
the code for each guide under the cluster and
jobs panels. Links to the guides still appear
at the top of the job and cluster tables.
Change-Id: I3ccd8370d40bdf9002ae23cbbbfd655a951969a2
Partial-Implements: bp reduce-number-of-panels
Another step in reorganizing the sahara UI to be more
tab oriented rather than death by a thousand panels.
This patch addresses moving the job-related panels
under a single panel with tabs for each object.
Change-Id: Iaa883135befd8306d79b97d5e96c9e46748be4b0
Partial-Implements: bp reduce-number-of-panels
First patch in reorganizing the sahara UI to be more
tab oriented rather than death by a thousand panels.
There are other patches that will complete the work,
but this patch addresses the cluster-oriented panels
by moving them under a single panel named Clusters.
Change-Id: Iae4bf4b5127fb29153ec5335070cde7d344e059e
Partial-Implements: bp reduce-number-of-panels
Horizon defines classes of exception from the services it
communicates with. In the plugin case, the plugin needs to set
up including plugin content specific exceptions to the classes of
exceptions in Horizon. This patch includes this content.
Setting up an extensible exception list in exceptions.py and
including the exceptions in the configuration files.
Change-Id: Ie91cfe1e0f34a710a96b4a43cf62af35d989920c
This plugin moves the current content from the horizon repo to this
plugin repo. The code has been tested in a devstack install using the
following steps:
1. packaging the plugin: "python setup.cfg sdist"
2. pip installing the tar.gz in the resulting dist directory
3. a. (temporary step) remove existing sahara enabled files from
horizon
"rm openstack_dashboard/enabled/_18*.py"
b. finding the install location and changing to it
"cp sahara_dashboard/enabled/* /opt/stack/horizon/local/enabled"
4. in /opt/stack/horizon
a. python manage.py collectstatic
b. python manage.py compress
5. restarting the horizon server
Additionally, you can run the unit tests by:
./run_tests.sh
Note: added script to programmatically remove the old configuration
files from the targeted horizon install, either in venv or system
install.
Known issues:
1. running tests locally emits missing neutron service messages.
2. plugin code for devstack needs to be added
3. README is inadequate
4. integration tests are still in horizon repo
5. local copy of run_tests is heavy weight, but a better solution is
not available currently.
6. localization tooling and strings
Change-Id: Icdce2d3e945e612d368556dd5cea1930194c7b67