diff --git a/pkg/api/mlflow/dao/repositories/run.go b/pkg/api/mlflow/dao/repositories/run.go index a9313911f..8c3976bdb 100644 --- a/pkg/api/mlflow/dao/repositories/run.go +++ b/pkg/api/mlflow/dao/repositories/run.go @@ -86,12 +86,6 @@ func (r RunRepository) GetByNamespaceIDRunIDAndLifecycleStage( run := models.Run{ID: runID} if err := r.GetDB().WithContext( ctx, - ).Preload( - "LatestMetrics", - ).Preload( - "Params", - ).Preload( - "Tags", ).Joins( "INNER JOIN experiments ON experiments.experiment_id = runs.experiment_id AND experiments.namespace_id = ?", namespaceID, diff --git a/pkg/database/migrate.go b/pkg/database/migrate.go index 826debb0d..755305d4a 100644 --- a/pkg/database/migrate.go +++ b/pkg/database/migrate.go @@ -24,6 +24,7 @@ var supportedAlembicVersions = []string{ "7f2a7d5fae7d", "2d6e25af4d3e", "acf3f17fdcc7", + "867495a8f9d4", } // CheckAndMigrateDB makes database migration. @@ -121,7 +122,7 @@ func CheckAndMigrateDB(migrate bool, db *gorm.DB) error { } fallthrough - case "97727af70f4d", "3500859a5d39", "7f2a7d5fae7d", "2d6e25af4d3e", "acf3f17fdcc7": + case "97727af70f4d", "3500859a5d39", "7f2a7d5fae7d", "2d6e25af4d3e", "acf3f17fdcc7", "867495a8f9d4": // run the FML migrations generated by `make migrations-rebuild` if err := generatedMigrations(db, schemaVersion.Version); err != nil { return fmt.Errorf("error running generated migrations: %w", err) diff --git a/tests/integration/golang/compatibility/mlflow_test.go b/tests/integration/golang/compatibility/mlflow_test.go index 019f70ff9..245417880 100644 --- a/tests/integration/golang/compatibility/mlflow_test.go +++ b/tests/integration/golang/compatibility/mlflow_test.go @@ -63,7 +63,7 @@ func (s *MLflowTestSuite) SetupSuite() { S3EndpointURI: helpers.GetS3EndpointUri(), GSEndpointURI: helpers.GetGSEndpointUri(), }) - s.Nil(err) + s.Require().Nil(err) s.server = srv s.aimClient = func() *helpers.HttpClient {