Skip to content

Commit efb8fe6

Browse files
authored
fix: devtron apps deployed via helm showing in helm apps list (#6397)
1 parent 15c9f3a commit efb8fe6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

internal/sql/repository/pipelineConfig/PipelineRepository.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ package pipelineConfig
1818

1919
import (
2020
"context"
21+
"time"
22+
2123
"github.com/devtron-labs/devtron/api/bean"
2224
"github.com/devtron-labs/devtron/internal/sql/models"
2325
"github.com/devtron-labs/devtron/internal/sql/repository/app"
@@ -33,7 +35,6 @@ import (
3335
"go.opentelemetry.io/otel"
3436
"go.uber.org/zap"
3537
"k8s.io/utils/pointer"
36-
"time"
3738
)
3839

3940
type PipelineType string
@@ -622,7 +623,7 @@ func (impl PipelineRepositoryImpl) GetAppAndEnvDetailsForDeploymentAppTypePipeli
622623
var pipelines []*Pipeline
623624
err := impl.dbConnection.
624625
Model(&pipelines).
625-
Column("pipeline.id", "App.app_name", "Environment.cluster_id", "Environment.namespace", "Environment.environment_name").
626+
Column("pipeline.id", "App.app_name", "pipeline.deployment_app_name", "Environment.cluster_id", "Environment.namespace", "Environment.environment_name").
626627
Join("inner join app a on pipeline.app_id = a.id").
627628
Join("inner join environment e on pipeline.environment_id = e.id").
628629
Join("LEFT JOIN deployment_config dc on dc.active=true and dc.app_id = pipeline.app_id and dc.environment_id=pipeline.environment_id").

0 commit comments

Comments
 (0)