Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
miguel-crespo-fdc committed Oct 15, 2024
1 parent 7e38be7 commit f2a5b51
Show file tree
Hide file tree
Showing 14 changed files with 2,909 additions and 555 deletions.
16 changes: 7 additions & 9 deletions services/cd-service/pkg/service/overview.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,14 @@ import (
"github.com/freiheit-com/kuberpult/pkg/grpc"
"github.com/freiheit-com/kuberpult/pkg/logger"
"github.com/freiheit-com/kuberpult/pkg/mapper"
git "github.com/libgit2/git2go/v34"
"go.uber.org/zap"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
"google.golang.org/protobuf/types/known/timestamppb"
"os"
"sync"
"sync/atomic"
"time"

git "github.com/libgit2/git2go/v34"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"

api "github.com/freiheit-com/kuberpult/pkg/api/v1"
"github.com/freiheit-com/kuberpult/pkg/db"
Expand Down Expand Up @@ -144,8 +142,6 @@ func (o *OverviewServiceServer) GetAppDetails(
}
envGroups := mapper.MapEnvironmentsToGroups(envConfigs)

result.Warnings = db.CalculateWarnings(ctx, appName, envGroups)

// App Locks
appLocks, err := o.DBHandler.DBSelectAllActiveAppLocksForApp(ctx, transaction, appName)
if err != nil {
Expand Down Expand Up @@ -219,14 +215,16 @@ func (o *OverviewServiceServer) GetAppDetails(
}
response.Deployments[envName] = deployment
}
result.UndeploySummary = 0
result.UndeploySummary = deriveUndeploySummary(appName, response.Deployments)
result.Warnings = db.CalculateWarnings(ctx, appName, envGroups)
fmt.Println("result.Warnings")
fmt.Println(result.Warnings)
return result, nil
})
if err != nil {
return nil, err
}
response.Application = resultApp
time.Sleep(1 * time.Second)
return response, nil
}

Expand Down
2 changes: 0 additions & 2 deletions services/frontend-service/src/ui/App/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,6 @@ export const App: React.FC = () => {
.pipe(retryWhen(retryStrategy(1)))
.subscribe(
(result) => {
// eslint-disable-next-line no-console
console.log('NewOverview!');
UpdateOverview.set(result);
UpdateOverview.set({ loaded: true });
PanicOverview.set({ error: '' });
Expand Down
Loading

0 comments on commit f2a5b51

Please sign in to comment.