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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>