Skip to content

Commit

Permalink
RHINENG-11302: add template filters
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelMraka committed Jul 12, 2024
1 parent 3e7338f commit 8aadbd6
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 0 deletions.
48 changes: 48 additions & 0 deletions docs/v3/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -2338,6 +2338,22 @@
"type": "string"
}
},
{
"name": "filter[template_name]",
"in": "query",
"description": "Filter",
"schema": {
"type": "string"
}
},
{
"name": "filter[template_uuid]",
"in": "query",
"description": "Filter",
"schema": {
"type": "string"
}
},
{
"name": "filter[arch]",
"in": "query",
Expand Down Expand Up @@ -4113,6 +4129,22 @@
"type": "string"
}
},
{
"name": "filter[template_name]",
"in": "query",
"description": "Filter",
"schema": {
"type": "string"
}
},
{
"name": "filter[template_uuid]",
"in": "query",
"description": "Filter",
"schema": {
"type": "string"
}
},
{
"name": "filter[os]",
"in": "query",
Expand Down Expand Up @@ -5377,6 +5409,22 @@
"type": "string"
}
},
{
"name": "filter[template_name]",
"in": "query",
"description": "Filter",
"schema": {
"type": "string"
}
},
{
"name": "filter[template_uuid]",
"in": "query",
"description": "Filter",
"schema": {
"type": "string"
}
},
{
"name": "filter[satellite_managed]",
"in": "query",
Expand Down
4 changes: 4 additions & 0 deletions manager/controllers/systems.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,8 @@ func systemsCommon(c *gin.Context) (*gorm.DB, *ListMeta, []string, error) {
// @Param filter[culled_timestamp] query string false "Filter"
// @Param filter[created] query string false "Filter"
// @Param filter[baseline_name] query string false "Filter"
// @Param filter[template_name] query string false "Filter"
// @Param filter[template_uuid] query string false "Filter"
// @Param filter[satellite_managed] query string false "Filter"
// @Param filter[built_pkgcache] query string false "Filter"
// @Param filter[arch] query string false "Filter"
Expand Down Expand Up @@ -315,6 +317,8 @@ func SystemsListHandler(c *gin.Context) {
// @Param filter[culled_timestamp] query string false "Filter"
// @Param filter[created] query string false "Filter"
// @Param filter[baseline_name] query string false "Filter"
// @Param filter[template_name] query string false "Filter"
// @Param filter[template_uuid] query string false "Filter"
// @Param filter[os] query string false "Filter OS version"
// @Param filter[osname] query string false "Filter OS name"
// @Param filter[osmajor] query string false "Filter OS major version"
Expand Down
2 changes: 2 additions & 0 deletions manager/controllers/systems_export.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ import (
// @Param filter[system_profile][mssql] query string false "Filter systems by mssql version"
// @Param filter[system_profile][mssql][version] query string false "Filter systems by mssql version"
// @Param filter[baseline_name] query string false "Filter"
// @Param filter[template_name] query string false "Filter"
// @Param filter[template_uuid] query string false "Filter"
// @Param filter[arch] query string false "Filter"
// @Param filter[os] query string false "Filter OS version"
// @Param filter[osname] query string false "Filter OS name"
Expand Down

0 comments on commit 8aadbd6

Please sign in to comment.