Skip to content

Commit

Permalink
style(kb): remove unnecessary whitespace in JS files
Browse files Browse the repository at this point in the history
  • Loading branch information
StephaneBour committed Jan 15, 2024
1 parent 0239b85 commit a84498f
Show file tree
Hide file tree
Showing 14 changed files with 675 additions and 672 deletions.
1 change: 0 additions & 1 deletion kb/aggs.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
sense.kb.addGlobalAutocompleteRules("aggregations", {

// Metrics Aggregations
avg: {
__template: {field: ""},
Expand Down
60 changes: 30 additions & 30 deletions kb/aliases.js
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
sense.kb.addEndpointDescription('_aliases', {
match: /_aliases/,
def_method: "GET",
methods: ["GET", "POST"],
endpoint_autocomplete: [
"_aliases"
],
indices_mode: "multi",
types_mode: "none",
doc_id_mode: "none",
data_autocomplete_rules: {
"actions": {
__template: [
{ "add": { "index": "test1", "alias": "alias1" } }
],
__any_of: [
{
add: {
index: "$INDEX$",
alias: "",
filter: {},
routing: "1",
search_routing: "1,2",
index_routing: "1"
},
remove: {
index: "",
alias: ""
}
match: /_aliases/,
def_method: "GET",
methods: ["GET", "POST"],
endpoint_autocomplete: [
"_aliases"
],
indices_mode: "multi",
types_mode: "none",
doc_id_mode: "none",
data_autocomplete_rules: {
"actions": {
__template: [
{"add": {"index": "test1", "alias": "alias1"}}
],
__any_of: [
{
add: {
index: "$INDEX$",
alias: "",
filter: {},
routing: "1",
search_routing: "1,2",
index_routing: "1"
},
remove: {
index: "",
alias: ""
}
}
]
}
]
}
}
});
26 changes: 13 additions & 13 deletions kb/cluster.js
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
sense.kb.addEndpointDescription('_cluster/nodes/stats', {
methods: ["GET"],
indices_mode: "none",
types_mode: "none"
methods: ["GET"],
indices_mode: "none",
types_mode: "none"
});
sense.kb.addEndpointDescription('_cluster/state', {
methods: ["GET"],
endpoint_autocomplete: ['_cluster/state'],
indices_mode: "none",
types_mode: "none"
methods: ["GET"],
endpoint_autocomplete: ['_cluster/state'],
indices_mode: "none",
types_mode: "none"
});

sense.kb.addEndpointDescription('_cluster/health', {
methods: ["GET"],
endpoint_autocomplete: ['_cluster/health'],
indices_mode: "none",
types_mode: "none"
methods: ["GET"],
endpoint_autocomplete: ['_cluster/health'],
indices_mode: "none",
types_mode: "none"
});

sense.kb.addEndpointDescription('_cluster/settings', {
methods: ["GET", "PUT"],
endpoint_autocomplete: ['_cluster/settings'],
indices_mode: "none",
types_mode: "none",
data_autocomplete_rules: {
data_autocomplete_rules: {
persistent: {
"routing.allocation.same_shard.host" : { __one_of: [ false, true ]}
"routing.allocation.same_shard.host": {__one_of: [false, true]}
},

transient: {
Expand Down
168 changes: 84 additions & 84 deletions kb/facets.js
Original file line number Diff line number Diff line change
@@ -1,92 +1,92 @@
sense.kb.addGlobalAutocompleteRules("facets", {
"*": {
terms: {
__template: {
field: "FIELD",
size: 10
"*": {
terms: {
__template: {
field: "FIELD",
size: 10
},
field: "$FIELD$",
fields: ["$FIELD$"],
size: 10,
script: "",
script_field: "",
order: {__one_of: ["count", "term", "reverse_count", "reverse_term"]},
all_terms: {__one_of: [false, true]},
exclude: ["TERM"],
regex: "",
regex_flags: ""
},
field: "$FIELD$",
fields: ["$FIELD$"],
size: 10,
script: "",
script_field: "",
order: { __one_of: ["count", "term", "reverse_count", "reverse_term"]},
all_terms: { __one_of: [false, true]},
exclude: ["TERM"],
regex: "",
regex_flags: ""
},
range: {
__template: {
field: "FIELD",
ranges: [
{ "to": 50 },
{ "from": 20, "to": 70 },
{ "from": 70, "to": 120 },
{ "from": 150 }
]
range: {
__template: {
field: "FIELD",
ranges: [
{"to": 50},
{"from": 20, "to": 70},
{"from": 70, "to": 120},
{"from": 150}
]
},
field: "$FIELD$",
ranges: [
{to: 10, from: 20}
]
},
field: "$FIELD$",
ranges: [
{ to: 10, from: 20}
]
},
histogram: {
__template: {
field: "FIELD", interval: 100
histogram: {
__template: {
field: "FIELD", interval: 100
},
field: "$FIELD$",
interval: 100,
time_interval: "1.5h",
key_field: "$FIELD$",
value_field: "$FIELD$",
key_script: "",
value_script: "",
params: {}
},
field: "$FIELD$",
interval: 100,
time_interval: "1.5h",
key_field: "$FIELD$",
value_field: "$FIELD$",
key_script: "",
value_script: "",
params: {}
},
date_histogram: {
__template: {
field: "FIELD",
"interval": "day"
date_histogram: {
__template: {
field: "FIELD",
"interval": "day"
},
field: "$FIELD$",
interval: {__one_of: ["year", "quarter", "month", "week", "day", "hour", "minute", "1h", "1d", "1w"]},
post_zone: -1,
pre_zone: -1,
factor: 1000,
pre_offset: "1d",
post_offset: "1d",
key_field: "$FIELD$",
value_field: "$FIELD$",
value_script: ""
},
field: "$FIELD$",
interval: { __one_of: ["year", "quarter", "month", "week", "day", "hour", "minute", "1h", "1d", "1w"]},
post_zone: -1,
pre_zone: -1,
factor: 1000,
pre_offset: "1d",
post_offset: "1d",
key_field: "$FIELD$",
value_field: "$FIELD$",
value_script: ""
},
filter: {
},
query: {
},
facet_filter: {
__scope_link: "GLOBAL.filter"
},
statistical: {
__template: {
field: "FIELD"
filter: {},
query: {},
facet_filter: {
__scope_link: "GLOBAL.filter"
},
field: "$FIELD$",
fields: ["$FIELD$"],
script: ""
},
terms_stats: {
__template: {
key_field: "FIELD",
value_field: "FIELD"
statistical: {
__template: {
field: "FIELD"
},
field: "$FIELD$",
fields: ["$FIELD$"],
script: ""
},
key_field: "$FIELD$",
value_field: "$FIELD$",
value_script: "",
size: 10,
order: {__one_of: ["count", "term", "reverse_term", "reverse_count", "total", "reverse_total",
"min", "reverse_min", "max", "reverse_max", "mean", "reverse_mean"]}
}
}
}
terms_stats: {
__template: {
key_field: "FIELD",
value_field: "FIELD"
},
key_field: "$FIELD$",
value_field: "$FIELD$",
value_script: "",
size: 10,
order: {
__one_of: ["count", "term", "reverse_term", "reverse_count", "total", "reverse_total",
"min", "reverse_min", "max", "reverse_max", "mean", "reverse_mean"]
}
}
}
}
);
Loading

0 comments on commit a84498f

Please sign in to comment.