@@ -1247,7 +1247,7 @@ func isTimeout(err error) bool {
1247
1247
return false
1248
1248
}
1249
1249
1250
- func (r repositoryConfigDaoImpl ) InternalOnly_RefreshRedHatRepo (ctx context.Context , request api.RepositoryRequest , label string ) (* api.RepositoryResponse , error ) {
1250
+ func (r repositoryConfigDaoImpl ) InternalOnly_RefreshRedHatRepo (ctx context.Context , request api.RepositoryRequest , label string , featureName string ) (* api.RepositoryResponse , error ) {
1251
1251
newRepoConfig := models.RepositoryConfiguration {}
1252
1252
newRepo := models.Repository {}
1253
1253
@@ -1256,6 +1256,7 @@ func (r repositoryConfigDaoImpl) InternalOnly_RefreshRedHatRepo(ctx context.Cont
1256
1256
1257
1257
newRepoConfig .OrgID = config .RedHatOrg
1258
1258
newRepoConfig .Label = label
1259
+ newRepoConfig .FeatureName = featureName
1259
1260
newRepo .Origin = config .OriginRedHat
1260
1261
newRepo .Public = true // Ensure all RH repos can be searched
1261
1262
@@ -1278,7 +1279,7 @@ func (r repositoryConfigDaoImpl) InternalOnly_RefreshRedHatRepo(ctx context.Cont
1278
1279
result = r .db .WithContext (ctx ).Clauses (clause.OnConflict {
1279
1280
Columns : []clause.Column {{Name : "repository_uuid" }, {Name : "org_id" }},
1280
1281
TargetWhere : clause.Where {Exprs : []clause.Expression {clause.Eq {Column : "deleted_at" , Value : nil }}},
1281
- DoUpdates : clause .AssignmentColumns ([]string {"name" , "arch" , "versions" , "gpg_key" , "label" })}).
1282
+ DoUpdates : clause .AssignmentColumns ([]string {"name" , "arch" , "versions" , "gpg_key" , "label" , "feature_name" })}).
1282
1283
Create (& newRepoConfig )
1283
1284
if result .Error != nil {
1284
1285
return nil , result .Error
0 commit comments