Skip to content

Commit

Permalink
Fix bug whereby query fields were not passed to experiment service
Browse files Browse the repository at this point in the history
  • Loading branch information
deadlycoconuts committed Oct 26, 2022
1 parent b7bccab commit c8158d6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions management-service/services/experiment_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,10 @@ func (svc *experimentService) filterFieldValues(query *gorm.DB, params ListExper
}
fieldNames = append(fieldNames, string(fieldName))
}
// Add ExperimentFieldStartTime and ExperimentFieldEndTime to the query as they are required for determining the
// statusFriendly field; these two fields may or may not be returned depending on what is actually specified in
// params.Fields
fieldNames = append(fieldNames, string(models.ExperimentFieldStartTime), string(models.ExperimentFieldEndTime))
query = query.Select(fieldNames)
}
return query, nil
Expand Down

0 comments on commit c8158d6

Please sign in to comment.