Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fleet] Add categories to search response output #735

Merged
merged 7 commits into from
Sep 29, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
package-registry

.idea
*.iml
build
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

* Add categories to /search output. Categories are added to the package and policy-templates. [#735](https://github.com/elastic/package-registry/pull/735)

### Deprecated

### Known Issues
Expand Down
95 changes: 86 additions & 9 deletions testdata/generated/search-all.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
"description": "This package contains a datastream with the dataset_is_prefix flag set to true.\n",
"type": "integration",
"download": "/epr/dataset_is_prefix/dataset_is_prefix-0.0.1.zip",
"path": "/package/dataset_is_prefix/0.0.1"
"path": "/package/dataset_is_prefix/0.0.1",
"categories": [
"custom"
]
},
{
"name": "datasources",
Expand All @@ -24,6 +27,9 @@
"title": "Datasource title",
"description": "Details about the data source."
}
],
"categories": [
"custom"
]
},
{
Expand All @@ -41,6 +47,10 @@
"title": "Logs datasource",
"description": "Datasource for your log files."
}
],
"categories": [
"containers",
"message_queue"
]
},
{
Expand All @@ -58,6 +68,9 @@
"title": "Logs datasource",
"description": "Datasource for your log files."
}
],
"categories": [
"monitoring"
]
},
{
Expand All @@ -68,7 +81,10 @@
"description": "Test package-specified Elasticsearch index privileges",
"type": "solution",
"download": "/epr/elasticsearch_privileges/elasticsearch_privileges-1.0.0.zip",
"path": "/package/elasticsearch_privileges/1.0.0"
"path": "/package/elasticsearch_privileges/1.0.0",
"categories": [
"custom"
]
},
{
"name": "example",
Expand All @@ -78,7 +94,10 @@
"description": "This is the example integration.",
"type": "integration",
"download": "/epr/example/example-0.0.2.zip",
"path": "/package/example/0.0.2"
"path": "/package/example/0.0.2",
"categories": [
"web"
]
},
{
"name": "example",
Expand All @@ -93,8 +112,15 @@
{
"name": "logs",
"title": "Logs datasource",
"description": "Datasource for your log files."
"description": "Datasource for your log files.",
"categories": [
"datastore"
]
}
],
"categories": [
"crm",
"azure"
]
},
{
Expand All @@ -105,7 +131,10 @@
"description": "This is the foo integration",
"type": "solution",
"download": "/epr/foo/foo-1.0.0.zip",
"path": "/package/foo/1.0.0"
"path": "/package/foo/1.0.0",
"categories": [
"custom"
]
},
{
"name": "hidden",
Expand All @@ -115,7 +144,10 @@
"description": "This is the hidden integration",
"type": "solution",
"download": "/epr/hidden/hidden-1.0.0.zip",
"path": "/package/hidden/1.0.0"
"path": "/package/hidden/1.0.0",
"categories": [
"custom"
]
},
{
"name": "ilmpolicy",
Expand All @@ -125,7 +157,10 @@
"description": "Test form ILM Policy in Package",
"type": "solution",
"download": "/epr/ilmpolicy/ilmpolicy-1.0.0.zip",
"path": "/package/ilmpolicy/1.0.0"
"path": "/package/ilmpolicy/1.0.0",
"categories": [
"custom"
]
},
{
"name": "input_groups",
Expand Down Expand Up @@ -158,8 +193,15 @@
"size": "32x32",
"type": "image/svg+xml"
}
],
"categories": [
"compute"
]
}
],
"categories": [
"aws",
"cloud"
]
},
{
Expand All @@ -177,6 +219,9 @@
"title": "Input level templates",
"description": "Input with input-level template to use input-level vars with"
}
],
"categories": [
"custom"
]
},
{
Expand All @@ -194,6 +239,10 @@
"path": "/package/longdocs/1.0.4/img/icon.svg",
"type": "image/svg+xml"
}
],
"categories": [
"custom",
"web"
]
},
{
Expand All @@ -211,6 +260,9 @@
"path": "/package/metricsonly/2.0.1/img/icon.svg",
"type": "image/svg+xml"
}
],
"categories": [
"custom"
]
},
{
Expand All @@ -228,6 +280,9 @@
"title": "Logs datasource",
"description": "Datasource for your log files."
}
],
"categories": [
"custom"
]
},
{
Expand All @@ -245,6 +300,10 @@
"path": "/package/multiversion/1.0.3/img/icon.svg",
"type": "image/svg+xml"
}
],
"categories": [
"custom",
"web"
]
},
{
Expand All @@ -262,6 +321,10 @@
"path": "/package/multiversion/1.0.4/img/icon.svg",
"type": "image/svg+xml"
}
],
"categories": [
"custom",
"web"
]
},
{
Expand All @@ -279,6 +342,10 @@
"path": "/package/multiversion/1.1.0/img/icon.svg",
"type": "image/svg+xml"
}
],
"categories": [
"custom",
"web"
]
},
{
Expand All @@ -289,7 +356,10 @@
"description": "This package does contain a dataset but not stream configs.\n",
"type": "integration",
"download": "/epr/no_stream_configs/no_stream_configs-1.0.0.zip",
"path": "/package/no_stream_configs/1.0.0"
"path": "/package/no_stream_configs/1.0.0",
"categories": [
"custom"
]
},
{
"name": "reference",
Expand All @@ -314,6 +384,10 @@
"title": "Nginx logs and metrics.",
"description": "Collecting logs and metrics from nginx."
}
],
"categories": [
"custom",
"web"
]
},
{
Expand All @@ -324,6 +398,9 @@
"description": "This package contains a yaml pipeline.\n",
"type": "integration",
"download": "/epr/yamlpipeline/yamlpipeline-1.0.0.zip",
"path": "/package/yamlpipeline/1.0.0"
"path": "/package/yamlpipeline/1.0.0",
"categories": [
"custom"
]
}
]
Loading