Skip to content

Commit

Permalink
Add search to the elements in dahsboards that can be used by value (#635
Browse files Browse the repository at this point in the history
)
  • Loading branch information
jsoriano authored Oct 5, 2023
1 parent 5bee4ac commit 653ab9d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func anyReference(val interface{}) ([]reference, error) {
var references []reference
for _, reference := range allReferences {
switch reference.Type {
case "lens", "visualization", "map":
case "lens", "map", "search", "visualization":
references = append(references, reference)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ func TestAnyReference(t *testing.T) {
{"12345", "panel_0", "visualization"},
{"9000", "panel_1", "lens"},
{"4", "panel_2", "map"},
{"44", "panel_4", "search"},
},
},
{
Expand Down
3 changes: 3 additions & 0 deletions spec/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@
- description: Require group or nested types for fields with subobjects
type: bugfix
link: https://github.com/elastic/package-spec/pull/629
- description: Add search to the dashboard elements that can be used by value
type: enhancement
link: https://github.com/elastic/package-spec/issues/635
- version: 2.13.0
changes:
- description: Allow to define expected values in fields definitions.
Expand Down

0 comments on commit 653ab9d

Please sign in to comment.