Commit Graph

83841 Commits

Author SHA1 Message Date
Tiago Melo
e6692ed853
mgr/dashboard_v2: add 404 page
Add a 404 page that will be triggered every time the user tries to
access a route that does not exists or the servers responds with 404.

Signed-off-by: Tiago Melo <tmelo@suse.com>
2018-03-05 13:07:10 +00:00
Sebastian Wagner
f3f076e007
mgr/dashboard_v2: Renamed block_pool controller to rbd
* Simplified the API
* Fixed and improved the rbd controller tests.

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2018-03-05 13:07:10 +00:00
Tiago Melo
d9a334d591
mgr/dashboard_v2: add monitors page
Signed-off-by: Tiago Melo <tmelo@suse.com>
2018-03-05 13:07:10 +00:00
Tiago Melo
1a9619d9b3
mgr/dashboard_v2: add router link table template
Signed-off-by: Tiago Melo <tmelo@suse.com>
2018-03-05 13:07:10 +00:00
Tiago Melo
afd896da40
mgr/dashboard_v2: add sparkline component
This also adds a template in the table component.

Signed-off-by: Tiago Melo <tmelo@suse.com>
2018-03-05 13:07:10 +00:00
Tiago Melo
5c255b7e8e
mgr/dashboard_v2: move datatable module
By moving the datatable module outside of the  components module we
can avoid a circular dependency between the datatable and sparkline
component.

Signed-off-by: Tiago Melo <tmelo@suse.com>
2018-03-05 13:07:10 +00:00
Tiago Melo
0c78d5e0df
mgr/dashboard_v2: add performance counter page
Signed-off-by: Tiago Melo <tmelo@suse.com>
2018-03-05 13:07:10 +00:00
Patrick Nawracay
7de16aee16
mgr/dashboard_v2: Migrate standby module
This commit will add a StandbyModule class to enable redirects from any
inactive MGR instance to the active MGR instance.

Signed-off-by: Patrick Nawracay <pnawracay@suse.com>
2018-03-05 13:07:09 +00:00
Lenz Grimmer
efd339cdde
mgr/dashboard_v2: Updated README.rst, added HACKING.rst
Moved developer-related documentation from `README.rst` to a
new file `HACKING.rst`.

Converted `frontend/README.md` to ReST and merged it into `HACKING.rst`.

Added updates to the README provided by @rjfd in PR#83
(updated the whole unit tests content to match the latest changes
on unit test execution, updated the development notes about
controller development)

Signed-off-by: Lenz Grimmer <lgrimmer@suse.com>
2018-03-05 13:07:09 +00:00
Tiago Melo
8bfdb073ac
mgr/dashboard_v2: adapt pool detail with cache view component
This modifies how pool detail show the cache information to the user
and implements a continuous update of the images information.

Signed-off-by: Tiago Melo <tmelo@suse.com>
2018-03-05 13:07:09 +00:00
Tiago Melo
ba0e1052f3
mgr/dashboard_v2: add view cache component
This component should be used in components that access endpoints
that implement ViewCache.
It will inform the user if the data is stale or if there were some
problems fetching it.

Signed-off-by: Tiago Melo <tmelo@suse.com>
2018-03-05 13:07:09 +00:00
Ricardo Dias
8d378356f2
mgr/dashboard_v2: fix visibility of frontend class properties
Signed-off-by: Ricardo Dias <rdias@suse.com>
2018-03-05 13:07:09 +00:00
Tiago Melo
1fda21766c
mgr/dashboard_v2: add node as a local dependency
This will allow us to use the angular cli on systems that don't have node
v6.9.0 or higher installed.

Signed-off-by: Tiago Melo <tmelo@suse.com>
2018-03-05 13:07:09 +00:00
Volker Theile
0c56065458
mgr/dashboard_v2: Highlight clickable datatable rows.
Signed-off-by: Volker Theile <vtheile@suse.com>
2018-03-05 13:07:09 +00:00
Volker Theile
5f4823fc84
mgr/dashboard_v2: Add RGW page.
Signed-off-by: Volker Theile <vtheile@suse.com>
2018-03-05 13:07:09 +00:00
Patrick Nawracay
54f97acf19
mgr/dashboard_v2: Update documentation
* Nested Controllers
* How to use RESTController

Signed-off-by: Patrick Nawracay <pnawracay@suse.com>
2018-03-05 13:07:08 +00:00
Stephan Müller
5ffece425a
mgr/dashboard_v2: Easy table cell transformation
The table column definition is extended by "cellTransformation"
property, which is filled through the use of "CellTemplate" enum.
If you have set that, a specific template reference will be used for
the ngx column property "cellTemplate". All references are stored
at the bottom of the data table template.

Signed-off-by: Stephan Müller <smueller@suse.com>
2018-03-05 13:07:08 +00:00
Ricardo Dias
8ebde83b6f
mgr/dashboard_v2: fix frontend bug in table.component.hml
Signed-off-by: Ricardo Dias <rdias@suse.com>
2018-03-05 13:07:08 +00:00
Volker Theile
d307fb1876
mgr/dashboard_v2: Use datatable on Cluster/Hosts page.
Signed-off-by: Volker Theile <vtheile@suse.com>
2018-03-05 13:07:08 +00:00
Patrick Nawracay
45a6aae3a7
mgr/dashboard_v2: Fix linting errors
Supposed to be squashed with 5236e6168d763c8b40742c33ffb0ebe8e55ce6e8.

Signed-off-by: Patrick Nawracay <pnawracay@suse.com>
2018-03-05 13:07:08 +00:00
Patrick Nawracay
5699586288
mgr/dashboard_v2: Add support for nested controllers
The `ApiController` decorator is used to define a API endpoints.  This
change will enable to use `/` in paths, so that nested controllers can
be used.

Signed-off-by: Patrick Nawracay <pnawracay@suse.com>
2018-03-05 13:07:08 +00:00
Volker Theile
4cfd508c59
mgr/dashboard_v2: Add cdPasswordButton directive
Signed-off-by: Volker Theile <vtheile@suse.com>
2018-03-05 13:07:08 +00:00
Volker Theile
f307d93392
mgr/dashboard_v2: Let the pagination input field look nicer
Signed-off-by: Volker Theile <vtheile@suse.com>
2018-03-05 13:07:07 +00:00
Ricardo Marques
7457e39482
mgr/dashboard_v2: table component style improvements
Signed-off-by: Ricardo Marques <rimarques@suse.com>
2018-03-05 13:07:07 +00:00
Ricardo Marques
407c84b80a
mgr/dashboard_v2: Add block pools page
Signed-off-by: Ricardo Marques <rimarques@suse.com>
2018-03-05 13:07:07 +00:00
Tiago Melo
7d2b5008ab
mgr/dashboard_v2: add health page and its dependencies
Signed-off-by: Tiago Melo <tmelo@suse.com>
2018-03-05 13:07:07 +00:00
Ricardo Dias
349c1ff3d2
mgr/dashboard_v2: adaptation of dashboard RemoteViewCache as a decorator
We implemented a decorator called `ViewCache` that implements a similar
functionality as the dashboard `RemoteViewCache` class.
We even copied part of the code and adapted to the current
infrastructure.

Signed-off-by: Ricardo Dias <rdias@suse.com>
2018-03-05 13:07:07 +00:00
Ricardo Dias
1dd62fdf4e
mgr/dashboard_v2: clean rados connection on shutdown
Signed-off-by: Ricardo Dias <rdias@suse.com>
2018-03-05 13:07:07 +00:00
Ricardo Dias
2d5596e2ef
mgr/dashboard_v2: Fix copy-webpack-plugin version
Signed-off-by: Ricardo Dias <rdias@suse.com>
2018-03-05 13:07:07 +00:00
Ricardo Dias
e59c7c11c8
mgr/dashboard_v2: removed mock classes, unit tests now run against real cluster
We changed tox.ini to run a vstart.sh cluster and run the unit tests
against that cluster. All unit tests code was adapted to make requests
to the real dashboard_v2 backend using the `requests` python library

Signed-off-by: Ricardo Dias <rdias@suse.com>
2018-03-05 13:07:07 +00:00
Ricardo Dias
e71c6d837d
mgr/dashboard_v2: add more debug message to tools.py
Signed-off-by: Ricardo Dias <rdias@suse.com>
2018-03-05 13:07:06 +00:00
Ricardo Dias
a71f7c6f8e
mgr/dashboard_v2: Added coverage tracking to module code
This will allow to collect code coverage information when the module
is running within the ceph-mgr daemon.

Signed-off-by: Ricardo Dias <rdias@suse.com>
2018-03-05 13:07:06 +00:00
Patrick Nawracay
3913d54dae
mgr/dashboard_v2: Migrate RGW daemon REST resource
Signed-off-by: Patrick Nawracay <pnawracay@suse.com>
2018-03-05 13:07:06 +00:00
Tiago Melo
f6d9793807
mgr/dashboard_v2: force whitespace in imports list
Signed-off-by: Tiago Melo <tmelo@suse.com>
2018-03-05 13:07:06 +00:00
Tiago Melo
4216759d58
mgr/dashboard_v2: add style guide to the frontend README
Add a README section for style guide where it mentions how to organize
the typescript imports.

Signed-off-by: Tiago Melo <tmelo@suse.com>
2018-03-05 13:07:06 +00:00
Tiago Melo
d1d966fd46
mgr/dashboard_v2: decrease max-line-length to 100
Signed-off-by: Tiago Melo <tmelo@suse.com>
2018-03-05 13:07:06 +00:00
Tiago Melo
8d65f9c4eb
mgr/dashboard_v2: add tslint no-consecutive-blank-lines rule
Signed-off-by: Tiago Melo <tmelo@suse.com>
2018-03-05 13:07:06 +00:00
Tiago Melo
ad96ddbe48
mgr/dashboard_v2: add some eslint rules to tslint
Signed-off-by: Tiago Melo <tmelo@suse.com>
2018-03-05 13:07:06 +00:00
Tiago Melo
80b7d1411d
mgr/dashboard_v2: add tslint import linting rule
Signed-off-by: Tiago Melo <tmelo@suse.com>
2018-03-05 13:07:05 +00:00
Tiago Melo
0f4adc44ad
mgr/dashboard_v2: add missing codealizer recommended rules
Signed-off-by: Tiago Melo <tmelo@suse.com>
2018-03-05 13:07:05 +00:00
Stephan Müller
41c50f4c52
mgr/dashboard_v2: Add table component
The current implementation isn't finished yet, but it's a start.

The ngx-datatable is used as the core of the table component. You can
use the table to show data in a table. You can search, paginate, sort,
refresh the table contents. Multi selection is possible, the details
of the selected items will be given to the specified detail component.

What will be fixed soon?
* Enable the usage of buttons in the table header
* Enable details inline not beneath the table
* Pagination to use a input field to switch pages
* The columns to show can be checked and predefined
* The selection made by the user will be saved in the local storage

Signed-off-by: Stephan Müller <smueller@suse.com>
Signed-off-by: Tiago Melo <tmelo@suse.com>
2018-03-05 13:07:05 +00:00
Ricardo Dias
06066f0dda
mgr/dashboard_v2: Updated README with instruction on how to mock ceph modules
Signed-off-by: Ricardo Dias <rdias@suse.com>
2018-03-05 13:07:05 +00:00
Ricardo Marques
468e384f0e
mgr/dashboard_v2: Add breadcrumb on Hosts page
Signed-off-by: Ricardo Marques <rimarques@suse.com>
2018-03-05 13:07:05 +00:00
Ricardo Marques
437e3c6561
mgr/dashboard_v2: Move hosts option to cluster menu
Signed-off-by: Ricardo Marques <rimarques@suse.com>
2018-03-05 13:07:05 +00:00
Ricardo Dias
c803df1335
mgr/dashboard_v2: mocking of rados and rbd modules
Signed-off-by: Ricardo Dias <rdias@suse.com>
2018-03-05 13:07:05 +00:00
Ricardo Dias
41205565c6
mgr/dashboard_v2: Updated README with notification queue instructions
Signed-off-by: Ricardo Dias <rdias@suse.com>
2018-03-05 13:07:04 +00:00
Ricardo Dias
b7c2ffaf24
mgr/dashboard_v2: Notification queue
Signed-off-by: Ricardo Dias <rdias@suse.com>
2018-03-05 13:07:04 +00:00
Sebastian Wagner
7eca79059e
mgr/dashboard_v2: Fix linting errors
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2018-03-05 13:07:04 +00:00
Volker Theile
5243334071
mgr/dashboard_v2: Mark text with the i18n attribute
Signed-off-by: Volker Theile <vtheile@suse.com>
2018-03-05 13:07:04 +00:00
Volker Theile
8ea25896db
mgr/dashboard_v2: Use Awesome Bootstrap Checkbox.
Signed-off-by: Volker Theile <vtheile@suse.com>
2018-03-05 13:07:04 +00:00