Commit Graph

13 Commits

Author SHA1 Message Date
Takashi Kajinami a5007ee3bd Replace deprecated ugettext_lazy and ungettext_lazy
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
2022-07-11 14:04:13 +09:00
Cao Xuan Hoang 3ad466fc9b Add Apache 2.0 license to source file
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 shouldn’t contain any license header nor
comments, and must be left completely empty.

[1] http://docs.openstack.org/developer/hacking/#openstack-licensing

Change-Id: If6676d7bf7409ebec2a035bdae158b644e19a861
2016-09-27 10:45:38 +07:00
Mikhail Lelyakin 2b900b5a93 Remove css styles from html templates
Changes:
  1. Remove css styles from html templates.
  2. Transfer this styles to new css files.

Change-Id: I318b5fb4a6f15456d7756bc438e0d93b91255203
Closes-bug: 1421287
2016-09-01 14:17:38 +03:00
Mikhail Lelyakin 8ff2ab0545 Separate static folder by css and js.
In this commit I create folders js
in static/dashboard/project/data_processing and
move all js files to js folder.

Change-Id: I06cd2adcf0290199a699cd6e8bdc5b5bf6c08b91
2016-08-31 11:58:57 +03:00
Vitaly Gridnev 5bd39f4f0f replacing plugins into separate panel
this change is just replacing plugins tab to a
separate tab group.

blueprint: plugin-management-api
Change-Id: I7d1a93fbacec0ad0d2551189d89033c92d7fb3d7
2016-07-19 12:22:20 +03:00
Michael Ionkin ab99844e0b Fix job launching with cluster in any state
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
2016-04-22 17:08:50 +03:00
Vitaly Gridnev 46d9adb665 implement health checks in sahara-dashboard
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
2016-03-02 11:22:48 +03:00
Akihiro Motoki c08ed62be3 Add sahara_dashboard to ADD_INSTALLED_APPS for translation support
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
2016-02-22 02:20:22 +09:00
Chad Roberts 625dcfab24 Reorganizing job and cluster guide pages
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
2016-02-15 21:52:33 +00:00
Chad Roberts d35b7b5e17 Reorganizing job-related panels into tabs
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
2016-02-15 21:36:43 +00:00
Chad Roberts 5aa8b83bc9 Reorganizing cluster panels into tabs
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
2016-02-15 14:05:35 -05:00
David Lyle 0d3bead819 Moving exception specification
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
2015-12-01 13:23:33 -07:00
David Lyle 6c5898813c Excising Sahara content from Horizon
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
2015-11-30 16:40:44 -07:00