Skip to content

Commit 7d7f59d

Browse files
committed
RHINENG-19230: remove Baseline related code from manager
1 parent 694c8b6 commit 7d7f59d

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

manager/controllers/common_attributes.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,23 @@ type SystemGroups struct {
2828
Groups SystemGroupsList `json:"groups" csv:"groups" query:"ih.groups" gorm:"column:groups" order_query:"ih.groups->0->>'name'"`
2929
}
3030

31+
// baseline attributes are obsoleted and we keep them only for backward API compatibility
32+
// now they always return default value
3133
type BaselineAttributes struct {
3234
BaselineNameAttr
3335
BaselineUpToDateAttr
3436
}
3537

3638
type BaselineUpToDateAttr struct {
37-
BaselineUpToDate *bool `json:"baseline_uptodate" csv:"baseline_uptodate" query:"sp.baseline_uptodate" gorm:"column:baseline_uptodate"`
39+
BaselineUpToDate *bool `json:"baseline_uptodate" csv:"baseline_uptodate" query:"null" gorm:"column:baseline_uptodate"`
3840
}
3941

4042
type BaselineNameAttr struct {
41-
BaselineName string `json:"baseline_name" csv:"baseline_name" query:"bl.name" gorm:"column:baseline_name"`
43+
BaselineName string `json:"baseline_name" csv:"baseline_name" query:"''" gorm:"column:baseline_name"`
4244
}
4345

4446
type BaselineIDAttr struct {
45-
BaselineID int64 `json:"baseline_id" csv:"baseline_id" query:"bl.id" gorm:"column:baseline_id"`
47+
BaselineID int64 `json:"baseline_id" csv:"baseline_id" query:"0" gorm:"column:baseline_id"`
4648
}
4749

4850
type TemplateAttibutes struct {

0 commit comments

Comments
 (0)