-
Notifications
You must be signed in to change notification settings - Fork 75
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
Merging views engine #439
base: master
Are you sure you want to change the base?
Merging views engine #439
Conversation
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
Conflicts: adagios/templates/base.html
@matthieucan do you have any idea about the build failed ? It happens only with django < 1.5 ... |
For the changed line: yes, I confirm you're right, 'col_name' and 'line' are passed as arguments to the widgets. For the build fail: definitely a feature somewhere in custom_*.py, which is not in Django 1.4. Are you able to reproduce the bug locally? It should point you to the correct line. |
I get this error :
The error is here (
With |
No idea... don't you have a stack trace? |
@titilambert we switched from using file backed session cookies to using Signed Cookies. You should remove any cookies when moving between pre-django16 and django16 based code. |
@matthieucan did this help you ? |
@titilambert Unless I'm mistaken, no cookies are used in the views engine. Can this be a problem within travis-ci? |
FIXED !!!! Thanks ! |
@titilambert This looks good! I don't have any environment to test it right now, but if it works with you, that's perfect! |
@palli @tomas-edwardsson it is correct for you ? |
Any news about it ? thank |
So, I am seeing a few problems with this patch, which have made me hesitant to merge it in. I think maybe we should discuss this a little more on our meeting tomorrow. Here are a few comments from the top of my head:
Are you guys still using this extension and/or actively developing it ? |
Hello !
I rebased PR #391.
This PR doesn't include the possibility to use external commands (rescheduled, ask, ...). I will add this feature in other PR when this one will be merged.
@matthieucan could you confirm or not this ?
In
adagios/status/templates/custom_views/widgets/link_host.html
The current line :
Should be
Thanks !