Skip to content

fix: all module installation fix #6083

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions pkg/module/ModuleCacheService.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,23 +77,6 @@ func NewModuleCacheServiceImpl(logger *zap.SugaredLogger, K8sUtil *k8s.K8sServic
return nil, err
}

// if old installation (i.e. project was created more than 1 hour ago then insert rest entries)
teamId := 1
team, err := teamService.FetchOne(teamId)
if err != nil {
log.Println("Error while getting team.", "teamId", teamId, "err", err)
return nil, err
}

// insert first release components if this was old release and user installed full mode at that time
if time.Now().After(team.CreatedOn.Add(1 * time.Hour)) {
for _, supportedModuleName := range SupportedModuleNamesListFirstReleaseExcludingCicd {
err = impl.updateModuleToInstalled(supportedModuleName)
if err != nil {
return nil, err
}
}
}
}
}

Expand Down