prometheus/web/ui/static/js
Giedrius Statkevičius ad58fc4765 ui: handle null response properly (#6071)
* web/ui: handle null case

The call might sometimes return /api/v1/label/__name__/values the
following:

```
{"status":"success","data":null}
```

Then the `index.js` file assumes that `data` is not `null`. However,
that assumption fails and then we get this error in the console:

```
graph.js?v=foo:317 Uncaught TypeError: Cannot read property 'length' of null
    at Object.success (graph.js?v=foo:317)
...
```

Then it becomes impossible to, for example, send a simple query like
`time()` and graph the results.

Fix it by using an empty array as the result if it is `null`.

Signed-off-by: Giedrius Statkevičius <giedriuswork@gmail.com>

* ui: update static assets data

Signed-off-by: Giedrius Statkevičius <giedriuswork@gmail.com>
2019-10-08 19:52:12 -06:00
..
graph ui: handle null response properly (#6071) 2019-10-08 19:52:12 -06:00
alerts.js Make show annotations checkbox match query history checkbox (#3936) 2018-03-09 14:39:28 +01:00
config.js /config: Added Copy to clipboard button for /config (#4410) 2018-11-27 16:05:26 +08:00
prom_console.js Change the global variable 'name' to a local variable so that it can not populate the global space. (#5970) 2019-08-31 08:33:31 -06:00
targets.js Fixes service-discovery view when accessed from unhealthy targets (#5915) 2019-08-21 13:57:08 +02:00