mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Fix sortByName and percentileOfSeries in gfunc.js (#9169)
Fixing type of parameters from "select" to "boolean" for working with carbonapi (like it was done in summarize function) + some commas prettify.
This commit is contained in:
parent
22be9436f7
commit
ec64dc8fae
@ -139,8 +139,8 @@ function (_, $) {
|
||||
addFuncDef({
|
||||
name: 'percentileOfSeries',
|
||||
category: categories.Combine,
|
||||
params: [{ name: "n", type: "int" }, { name: "interpolate", type: "select", options: ["true", "false"] }],
|
||||
defaultParams: [95, "false"]
|
||||
params: [{ name: 'n', type: 'int' }, { name: 'interpolate', type: 'boolean', options: ['true', 'false'] }],
|
||||
defaultParams: [95, 'false']
|
||||
});
|
||||
|
||||
addFuncDef({
|
||||
@ -261,8 +261,8 @@ function (_, $) {
|
||||
addFuncDef({
|
||||
name: 'sortByName',
|
||||
category: categories.Special,
|
||||
params: [{ name: "natural", type: "select", options: ["true", "false"], optional: true }],
|
||||
defaultParams: ["false"]
|
||||
params: [{ name: 'natural', type: 'boolean', options: ['true', 'false'], optional: true }],
|
||||
defaultParams: ['false']
|
||||
});
|
||||
|
||||
addFuncDef({
|
||||
|
Loading…
Reference in New Issue
Block a user