Unified Storage: Make all dashboard fields searchable (#98899)
* wip. adding sprinkles fields. * some refactoring. Works with sprinkles now. * exclude top level dashboard hit fields from hit "fields" * adds unit test for DecodeCell helper * test can search for specific dashboard fields on bleve index * adds search handler tests for the fields and tests for fields when transforming the search req to a bleve search req * fix panic when calling fields.Set() with int32 * adds regression test * remove unneeded method on test mock client * fix linter issues * updates dashboard test data for bleve tests * remove DASHBOARD_LEGACY_ID from bleve_tests * dont cast twice * updates test to sort by dashboard_views_last_1_days * declare excludedFields outside of function * fixes sorting by dashboard fields - prepends "fields." to any dashboard fields we try to sort by * uses map for excludedFields * expects fields to be array-style url param * change method name * fixes failing tests - needed to add column type to mocks
This commit is contained in:
@@ -63,6 +63,111 @@
|
||||
"format": "",
|
||||
"description": "How many links appear on the page",
|
||||
"priority": 0
|
||||
},
|
||||
{
|
||||
"name": "errors_today",
|
||||
"type": "number",
|
||||
"format": "int64",
|
||||
"description": "Number of errors that occurred today",
|
||||
"priority": 0
|
||||
},
|
||||
{
|
||||
"name": "errors_last_1_days",
|
||||
"type": "number",
|
||||
"format": "int64",
|
||||
"description": "Number of errors that occurred in the last 1 days",
|
||||
"priority": 0
|
||||
},
|
||||
{
|
||||
"name": "errors_last_7_days",
|
||||
"type": "number",
|
||||
"format": "int64",
|
||||
"description": "Number of errors that occurred in the last 7 days",
|
||||
"priority": 0
|
||||
},
|
||||
{
|
||||
"name": "errors_last_30_days",
|
||||
"type": "number",
|
||||
"format": "int64",
|
||||
"description": "Number of errors that occurred in the last 30 days",
|
||||
"priority": 0
|
||||
},
|
||||
{
|
||||
"name": "errors_total",
|
||||
"type": "number",
|
||||
"format": "int64",
|
||||
"description": "Total number of errors",
|
||||
"priority": 0
|
||||
},
|
||||
{
|
||||
"name": "queries_today",
|
||||
"type": "number",
|
||||
"format": "int64",
|
||||
"description": "Number of queries that occurred today",
|
||||
"priority": 0
|
||||
},
|
||||
{
|
||||
"name": "queries_last_1_days",
|
||||
"type": "number",
|
||||
"format": "int64",
|
||||
"description": "Number of queries that occurred in the last 1 days",
|
||||
"priority": 0
|
||||
},
|
||||
{
|
||||
"name": "queries_last_7_days",
|
||||
"type": "number",
|
||||
"format": "int64",
|
||||
"description": "Number of queries that occurred in the last 7 days",
|
||||
"priority": 0
|
||||
},
|
||||
{
|
||||
"name": "queries_last_30_days",
|
||||
"type": "number",
|
||||
"format": "int64",
|
||||
"description": "Number of queries that occurred in the last 30 days",
|
||||
"priority": 0
|
||||
},
|
||||
{
|
||||
"name": "queries_total",
|
||||
"type": "number",
|
||||
"format": "int64",
|
||||
"description": "Total number of queries",
|
||||
"priority": 0
|
||||
},
|
||||
{
|
||||
"name": "views_today",
|
||||
"type": "number",
|
||||
"format": "int64",
|
||||
"description": "Number of views that occurred today",
|
||||
"priority": 0
|
||||
},
|
||||
{
|
||||
"name": "views_last_1_days",
|
||||
"type": "number",
|
||||
"format": "int64",
|
||||
"description": "Number of views that occurred in the last 1 days",
|
||||
"priority": 0
|
||||
},
|
||||
{
|
||||
"name": "views_last_7_days",
|
||||
"type": "number",
|
||||
"format": "int64",
|
||||
"description": "Number of views that occurred in the last 7 days",
|
||||
"priority": 0
|
||||
},
|
||||
{
|
||||
"name": "views_last_30_days",
|
||||
"type": "number",
|
||||
"format": "int64",
|
||||
"description": "Number of views that occurred in the last 30 days",
|
||||
"priority": 0
|
||||
},
|
||||
{
|
||||
"name": "views_total",
|
||||
"type": "number",
|
||||
"format": "int64",
|
||||
"description": "Total number of views",
|
||||
"priority": 0
|
||||
}
|
||||
],
|
||||
"rows": [
|
||||
@@ -78,6 +183,21 @@
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null
|
||||
],
|
||||
"object": {
|
||||
@@ -102,6 +222,23 @@
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
[
|
||||
"timeseries"
|
||||
],
|
||||
40,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
100,
|
||||
null,
|
||||
null,
|
||||
null
|
||||
],
|
||||
"object": {
|
||||
@@ -127,6 +264,24 @@
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
[
|
||||
"timeseries",
|
||||
"table"
|
||||
],
|
||||
25,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
50,
|
||||
null,
|
||||
null,
|
||||
null
|
||||
],
|
||||
"object": {
|
||||
|
||||
Reference in New Issue
Block a user