160 Commits

Author SHA1 Message Date
Jenkins
7b17dae215 Merge "Don't recommend setting SESSION_COOKIE_HTTPONLY" 2014-07-17 16:17:00 +00:00
Jenkins
6370a3136f Merge "Add IMAGE related settings to documentation" 2014-07-14 23:56:02 +00:00
Jenkins
bd44b9f8ce Merge "Incorrect config item in local_settings.py.example" 2014-07-14 23:45:54 +00:00
Pawel Skowron
8aa2873e8e Add IMAGE related settings to documentation
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
2014-07-10 20:20:02 +02:00
Clayton O'Neill
0560c7399c Don't recommend setting SESSION_COOKIE_HTTPONLY
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
2014-07-08 13:48:35 +00:00
Jenkins
1ddd7f0e92 Merge "Adding support for volume backups" 2014-07-08 08:17:08 +00:00
Jenkins
7cc8cc7cbd Merge "Add a table customisation example to the docs" 2014-07-07 08:59:29 +00:00
Laura Frank
630bf3d5a4 Adding support for volume backups
Users can create, view, delete and restore volume backups

Change-Id: I85b372013c4573018d39178314e769ec8adfd3c7
Co-Authored-By: Lin Hua Cheng <lin-hua.cheng@hp.com>
Implements: blueprint volume-backups
2014-07-04 03:07:53 -07:00
Jenkins
956c99ef5a Merge "Use SCSS instead of LESS" 2014-07-02 23:21:07 +00:00
Jenkins
fd2bfa7df5 Merge "Allow panel plugins to use ADD_EXCEPTIONS and UPDATE_HORIZON_CONFIG" 2014-07-02 14:45:34 +00:00
Radomir Dopieralski
27e29250a9 Use SCSS instead of LESS
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
2014-07-02 10:13:26 +02:00
Rob Raymond
0f5a7b33dc Allow panel plugins to use ADD_EXCEPTIONS and UPDATE_HORIZON_CONFIG
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
2014-07-01 10:44:15 -06:00
Jenkins
75a5f5f1f9 Merge "Add CLI option for running Selenium tests headless" 2014-06-30 21:11:10 +00:00
Jenkins
3e9ba4f376 Merge "Add jshint for javascript linting" 2014-06-30 07:13:27 +00:00
Peter Belanyi
0a83ae972e Add jshint for javascript linting
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
2014-06-26 14:00:45 +02:00
Julie Pichon
24109fa82d Add a table customisation example to the docs
Change-Id: I5f4f7195aff21f10317969ee537485a033284df9
Closes-Bug: #1324982
2014-06-24 17:52:24 +01:00
Julie Pichon
84bff9724d Allow running a subset of the integration tests
This follows the same syntax as a running a subset of the unit tests.

Change-Id: I36dfa8280b8fc63e7b650dfce6dbb0df26e73852
Closes-Bug: #1333774
2014-06-24 16:55:19 +01:00
Jenkins
b19f8f27ec Merge "Remove warnings when generating docs" 2014-06-17 11:47:46 +00:00
Jenkins
f242c331db Merge "Fix keystone warnings while building docs" 2014-06-17 11:44:39 +00:00
Gary W. Smith
1f38f87138 Fix keystone warnings while building docs
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
2014-06-16 15:42:18 -07:00
Rich Hagarty
c48ec8e127 Remove warnings when generating docs
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
2014-06-16 01:23:28 -07:00
Matthias Runge
74df193de3 Update customizing docs, css was replaced by .less
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
2014-06-16 08:23:22 +02:00
Jenkins
bb899e1d6a Merge "Adding sahara client api code" 2014-06-14 07:23:28 +00:00
Jenkins
b64210723e Merge "Removed the link to the outdated horizon demo" 2014-06-13 03:40:20 +00:00
Chad Roberts
799d24e13f Adding sahara client api code
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>
2014-06-11 12:48:48 -04:00
Joris Roovers
d9a4081ebb Fix for UPDATE_HORIZON_CONFIG listed as part of Icehouse in the docs
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
2014-06-11 13:29:49 +02:00
Gloria Gu
81197c3afe Removed the link to the outdated horizon demo
Partial-Bug: #1298490
Change-Id: If7d5e5e4c7468300c6e019b79337e39777b39657
2014-06-10 12:14:17 -07:00
marianitadn
44055c1676 Add CLI option for running Selenium tests headless
- 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
2014-06-05 15:44:04 +03:00
Jenkins
7b3389a48e Merge "Add "new in" tags for pre-Icehouse settings" 2014-06-04 06:07:49 +00:00
tianliang
ee5d9bbfcd Incorrect config item in local_settings.py.example
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
2014-05-30 22:23:44 +08:00
Jenkins
90474517de Merge "Allow extensions to add Angular modules" 2014-05-30 11:45:02 +00:00
Rob Raymond
b3aec6b1d3 Allow extensions to add Angular modules
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
2014-05-28 15:58:39 -06:00
Jenkins
d3f4bf4495 Merge "Document how to add panel with no panel group" 2014-05-27 12:31:14 +00:00
Omri Gazitt
a4e33134ff Show default text for image format
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
2014-05-23 22:25:29 -04:00
Rob Raymond
97a5aeaeca Document how to add panel with no panel group
Change-Id: If392147b54151279700c454977cb322c824180ab
Closes-Bug: #1322376
2014-05-23 12:16:58 -06:00
Jenkins
ab039233d7 Merge "Icehouse release notes" 2014-05-21 19:51:40 +00:00
Gary W. Smith
90a96dd057 Add "new in" tags for pre-Icehouse settings
Change-Id: I7e1a3f5f20075638f14ddfb59456253e15704fdf
Partial-Bug: #1300710
2014-05-13 11:04:27 -07:00
David Lyle
bd8e4aaef2 Icehouse release notes
Change-Id: Ic3f22f15191828b77a6838f3e4b2a53420e9e0f3
2014-05-12 14:18:47 -06:00
Gary W. Smith
83daca331a Add "new in" tags to docs for new Icehouse settings
Also re-alphabetize settings list

Change-Id: Ieb47e9f2a0be4906a744970a9d17dd5177e59fc0
Partial-Bug: #1300710
2014-05-11 03:12:52 +00:00
Jenkins
28ae28b59f Merge "Allow static files to be exposed for any plugin" 2014-05-08 02:57:44 +00:00
Jenkins
a2d991274d Merge "Refer local_settings in doc to customize settings" 2014-05-06 03:00:09 +00:00
Christian Berendt
b21dad7977 fixed typos found by topy
Topy is available at https://github.com/intgr/topy.

Change-Id: Id02253da7b751a0787eb89f2c61f9421726326f9
2014-05-01 15:42:33 +02:00
Jenkins
53eb11604b Merge "Update documentation to clarify Image Upload setting" 2014-05-01 10:10:18 +00:00
Anya Marshall
a7bd91d7d8 Update documentation to clarify Image Upload setting
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
2014-04-27 22:22:23 -04:00
Radomir Dopieralski
2d6d3e76af Allow changing any horizon settings from the plugin config files
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
2014-04-22 12:06:22 +02:00
Rob Raymond
47a1181f0d Allow static files to be exposed for any plugin
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
2014-04-21 08:44:00 -06:00
mariamj@us.ibm.com
59d8866023 Refer local_settings in doc to customize settings
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
2014-04-14 00:35:12 -04:00
Jenkins
700dc59825 Merge "Use built-in print() instead of print statement" 2014-04-08 10:26:47 +00:00
Jenkins
37a2a12d2a Merge "Fix documentation about adding a new dashboard" 2014-04-03 19:25:50 +00:00
Matthias Runge
77ffd12ec2 Fix settings titles and underlines
Change-Id: I8602fcaf20fb0b84ab26fe981e295dc595ad3fc4
Closes-bug: #1301298
2014-04-03 09:29:51 +02:00