Added description of two parameters IMAGE_CUSTOM_PROPERTY_TITLES and
HORIZON_IMAGES_ALLOW_UPLOAD to doc/source/topics/settings.rst
documentation file.
Closes-Bug: 1336071
Change-Id: I6e6780053503086f10c21cacbce981286c42a65b
This setting is already defaults to true, so there is no need to
recommend that people set this option to prevent cross site scripting.
Closes-Bug: 1333407
Change-Id: If5c8f3cba31f6e613ec17af81cff8d15cd2f8f19
Convert all of Horizon's styles from LESS to SCSS, and use pyscss and
django_pyscss to compile them.
This lets us continue with the upgrade to Bootstrap 3, and the use of
django_pyscss also lets us include horizon's style files, with all the
variables, in plugins style files.
This partially implements the blueprint bootstrap-update.
Change-Id: I1bc9b4ded5de2393c8e57e5286b1da373673789d
Closes-bug: #1260675
This change allows panel plugins tell horizon which exceptions to treat as recoverable.
Previously only dashboard plugins were allowed to register exceptions.
Since there are now more settings that are common than specific to pluggable use case,
the doc was restructured to describe in general pluggable settings and then describe
the specific use cases.
Change-Id: I013ece33ae2b979e92be9c7ba50182025a1ecb91
Closes-bug: #1332688
Added nodeenv as a test requirement.
Added a jshint environment to tox.ini, which installs node.js into the
python virtual environment with nodeenv, installs jshint using npm,
and calls runtest.sh to run the tests.
runtest.sh now supports the -j|--jshint flags to run jshint on the
javascript files. jshint must be installed before running runtest.sh
The documentation also got updated to include some info about jshint.
This patch does not add jshint to the OpenStack codebase, just provides
a way to install it for testing, to avoid license clash (jshint has a
slightly modified MIT license, which is incompatible with OpenStack's
Apache license).
Change-Id: I9dd0743eaee50fdba3dbb527c29f2501bdd44ca6
Implements: blueprint node-toolchain
Implements: blueprint jshint-codestyle
When building the documentation via run_tests.sh, doc/source/conf.py
explicitly sets the DJANGO_SETTINGS_MODULE environment variable,
overriding any existing value that it already has. Furthermore, it sets
it to point to a settings file that does not use keystone v3, which
is expected by the tests (and is the source of the warning). Note that
when running unit tests via run_tests.sh, a different settings file is
supplied which DOES use keystone v3.
Change the doc/source/conf.py to only set DJANGO_SETTINGS_MODULE if it
is not already set. Change tox.ini and run_tests.sh to set
DJANGO_SETTINGS_MODULE to the same settings file used by the unit tests,
with keystone v3 support.
Change-Id: Ib297e4188f2426cf575300998bc9d50f36e48f4f
Closes-Bug: #1257725
Sphinx generates a warning about having too few underlines under the
title "ADD_ANGULAR_MODULES". The generated docs are still correct
(title is generated with an underline), so this change only needed
to eliminate the warning messages.
Change-Id: I18e4cdfcb97bcb08ede98f921de1f975d9a64cf5
Closes-Bug: #1329562
Docs still refer to style.css, but we're using horizon.less
for ages now. The docs should reflect that. The size of the logo
changed as well.
Change-Id: Ib4fc0624cc71e226895c7cef1567948d7f82d277
This is the code that will interface with the sahara
library. This is part of the merging of the sahara
dashboard into horizon.
This code was originally from:
https://github.com/openstack/sahara-dashboard
Change-Id: Icdec326e276e1cfeedae6d2fd6047051725f9566
Partial-Implements: blueprint merge-sahara-dashboard
Co-Authored-By: Nikita Konovalov <nkonovalov@mirantis.com>
Co-Authored-By: Dmitry Mescheryakov <dmescheryakov@mirantis.com>
The UPDATE_HORIZON_CONFIG setting was only added in Juno, the docs
incorrectly state that it is part of the Icehouse Release.
Change-Id: Id889b7c87c0a8c4347acf2f27af76ec9a4c1e6bf
Closes-bug: #1328871
- Add requirement for xfvbwrapper
- Add CLI option for running tests headless
- Update Selenium TestCase to start virtual display if the option is set
- Update documentation about running Selenium tests
Change-Id: Icb1ac3491b8eef6c168bf1421cf073da67600982
Closes-Bug: #1290329
The qos settings in horizon is not the same with
nova's.To fix it, modify the horizon
local_settings.py.example.
Change-Id: I1b31506e9b0e95be882edd490f3fa9dafe54abde
Closes-bug: #1324127
This change allows extension plugins to make use of AngularJS without
changing horizon template or javascript files.
Horizon bootstraps AngularJS once when a page loads with a list
of modules. An extension can register a list of modules and a list
of javascript files that contain these modules.
Implements blueprint: plugins-angular
Change-Id: I4a76363dd4a631cc0d2fc2c902c2f5cac0f073f2
This changes the default Horizon settings so that the list of image formats
starts with an entry that uses default text in accordance with other
dialogs.
Change-Id: If001fc49aad60e15b2c42afcf741499fcebae5f6
Partial-Bug: #1302256
The documentation at http://docs.openstack.org/developer/horizon/topics
/deployment.html#file-uploads states that the end user should change the
setting "HORIZON_IMAGES_ALLOW_UPLOAD = False" to disable image uploads.
This suggests that image uploads will be completely disabled, however it
will still be possible to upload images via URL.
This change adds this clarification to the documentation.
Closes-Bug: 1215921
Change-Id: Ie1cc51aaf459f9eb2881121b405fb16e762e265b
Sometimes we want our pluggable dashboard to change more than just
the selected handful of options in the HORIZON_CONFIG. This patch
lets the configuration files for the plugins add and modify any
horizon settings.
Change-Id: I25aec577733631d1e2057bde0b12f1e50c56b05b
Closes-bug: #1302387
Change the parsing of plugin configuration files to allow
a new Django application to be added. This enables the static file
finder to find the plugin's static files when they are referenced.
Previously only plugins that defined a new dashboard could do this.
Change-Id: I69bd8f24fa0855174a05203eabe7c932246dda21
Closes-Bug: #1309183
There are couple of places in the docs where it isn't explicitly
mentioned whether to modify settings.py or local_settings.py to
customize settings (this might not be obvious to people who are new
to Horizon and Django).
The changes include:
- In the `Customizing Horizon` guide, under the section 'Modifying
Existing Dashboards and Panels', explicitly mention local_settings.py
file to be modified to update ``HORIZON_CONFIG`` setting
- In the QuickStart guide, under the `Setup` section, add a note which
mentions that to customize any settings use the local_settings.py file
- In the 2013 Havana release notes, under section `Upgrade Information'
for 'Allowed Hosts', specify only local_settings.py file to add the
new 'ALLOWED_HOSTS' setting (instead of settings.py or local_settings.py)
Change-Id: I38314cadd8a5a61d1edea26c6cd0d34e713fd66c
Closes-Bug: 1301484