dashboard not able to detect the report and data-view files

Asked by Prince Mathew


I created the data-view and report files as shown in http://bazaar.launchpad.net/~linaro-validation/lava-dashboard/data-views-and-reports/files .
Also added a settings .conf file in edit /etc/lava-server/settings.conf and put the following snippet of JSON inside:

  "DATAVIEW_DIRS": ["/home/username/views"],
  "DATAREPORT_DIRS": ["/home/username/reports"]

The report and the data-view files were placed in the respective directory.

1) But the dashboard is not able to detect the files in the report page of the dashboard (http://localhost/launch-control/dashboard/report).

   1<div id="placeholder"></div>
   2<script type="text/javascript">
   3 $().dashboard("init", "{{ API_URL }}", function (server) {
   4 var data_view_name = "android-runs";
 In line 3 (of the code from [ http://bazaar.launchpad.net/~linaro-validation/lava-dashboard/data-views-and-reports/view/head:/reports/android-runs.html ]
is it correct to change the variable API_URL to -> http://localhost/launch-control/dashboard/xml-rpc (I am using a local server)

Question information

English Edit question
LAVA Dashboard (deprecated) Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Zygmunt Krynicki (zyga) said :

You should restart lava-server after each change as it caches most of the files read from disk. If you want to work on reports for an extended period drop this extra line to your lava-server.conf, it will enable debugging and allow you to work without reloads (although this mode is much slower on regular http requests):

  "DATAVIEW_DIRS": ["/home/username/views"],
  "DATAREPORT_DIRS": ["/home/username/reports"],
  "DEBUG": true

Can you help with this problem?

Provide an answer of your own, or ask Prince Mathew for more information if necessary.

To post a message you must log in.