Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature view engine rebased #391

Open
wants to merge 31 commits into
base: master
Choose a base branch
from

Conversation

matthieucan
Copy link
Contributor

New pull request following reviews from #383

matthieucan and others added 29 commits July 2, 2014 12:10
The files contained in status/custom_*.py and status/templates/custom_*
pemit to have a views engine, i.e. a customised form in where you can choose
the data you need from Livestatus datasources/columns, arrange them how
you like (sorting, filtering, stats) and feed this data to pre-defined
templates or your own ones. The views can be represented with simple
dictionaries, and are therefore stored through the userdata module.

User-defined customised views are now possible within Adagios :)
* datatable: jquery plugin to render html tables into
  pageable/sortable/filterable tables. Simpler and more
  functional than datatables.

* jquery-ui: contains the functions which permit DOM elements
  to me draggable. This is used in custom forms, where the user
  can re-order the colums, filters, etc.
This templates, through the help of jqplot, can display a pie chart
representing data coming from aggregated Livestatus queries (with
the "Stats:" clause).
Through OpenLayers.js, displays a map with red/green markers representing
the state of all defined hosts.
The IP addresses are mapped to GPS coordianates through GeoIP.
This patch fixes an issue where custom_view cannot be
loaded because an extra linebreak is sent with the
livestatus query.

I am guessing shinken's implementation of livestatus
does not care about this.
If livestatus queries fail, return 500 error

This should make unit testing of the view easier.
This is cool for wall projection (and for the future dashboard.

Conflicts:
	adagios/status/templates/custom_views/templates/maps.html
The 'delete view' button is now on the edit page, rather than the
view page.
Conflicts:
	adagios/templates/base.html
@matthieucan matthieucan mentioned this pull request Jul 2, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant