Commit ec64dc8f by Sergey Korobov Committed by Torkel Ödegaard

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.
parent 22be9436
......@@ -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({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment