Skip to content

Commit 084c91e

Browse files
committed
RHINENG-21214: remove unused insights_id
1 parent 09097ec commit 084c91e

3 files changed

Lines changed: 2 additions & 15 deletions

File tree

docs/v3/openapi.json

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2446,14 +2446,6 @@
24462446
"type": "string"
24472447
}
24482448
},
2449-
{
2450-
"name": "filter[insights_id]",
2451-
"in": "query",
2452-
"description": "Filter",
2453-
"schema": {
2454-
"type": "string"
2455-
}
2456-
},
24572449
{
24582450
"name": "filter[display_name]",
24592451
"in": "query",
@@ -7182,9 +7174,6 @@
71827174
"$ref": "#/components/schemas/controllers.SystemGroup"
71837175
}
71847176
},
7185-
"insights_id": {
7186-
"type": "string"
7187-
},
71887177
"installable_other_count": {
71897178
"type": "integer"
71907179
},

manager/controllers/advisory_systems.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,6 @@ func systemsIDsStatus(c *gin.Context, systems []SystemsStatusID, meta *ListMeta)
218218
// @Param sort query string false "Sort field" Enums(id,display_name,last_evaluation,last_upload,rhsa_count,rhba_count,rhea_count,other_count,satellite_managed,stale,built_pkgcache)
219219
// @Param search query string false "Find matching text"
220220
// @Param filter[id] query string false "Filter"
221-
// @Param filter[insights_id] query string false "Filter"
222221
// @Param filter[display_name] query string false "Filter"
223222
// @Param filter[last_evaluation] query string false "Filter"
224223
// @Param filter[last_upload] query string false "Filter"

manager/controllers/systems.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,8 @@ type SystemItemAttributes struct {
101101
// nolint: lll
102102
type SystemItemAttributesExtended struct {
103103
SystemItemAttributes
104-
ThirdParty bool `json:"third_party" csv:"third_party" query:"sp.third_party" gorm:"column:third_party"`
105-
InsightsID string `json:"insights_id" csv:"insights_id" query:"ih.insights_id" gorm:"column:insights_id"`
106-
PackagesUpdatable int `json:"packages_updatable" csv:"packages_updatable" query:"sp.packages_installable" gorm:"column:packages_updatable"`
104+
ThirdParty bool `json:"third_party" csv:"third_party" query:"sp.third_party" gorm:"column:third_party"`
105+
PackagesUpdatable int `json:"packages_updatable" csv:"packages_updatable" query:"sp.packages_installable" gorm:"column:packages_updatable"`
107106

108107
OSName string `json:"os_name" csv:"os_name" query:"ih.system_profile->'operating_system'->>'name'" gorm:"column:osname"`
109108
OSMajor string `json:"os_major" csv:"os_major" query:"ih.system_profile->'operating_system'->>'major'" gorm:"column:osmajor"`

0 commit comments

Comments
 (0)