Skip to content
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
25 changes: 0 additions & 25 deletions pkg/module/ModuleService.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,6 @@ func (impl ModuleServiceImpl) handleModuleNotFoundStatus(moduleName string) (Mod
}
moduleMetaDataStr := string(moduleMetaData)
isLegacyModule := gjson.Get(moduleMetaDataStr, "result.isIncludedInLegacyFullPackage").Bool()
baseMinVersionSupported := gjson.Get(moduleMetaDataStr, "result.baseMinVersionSupported").String()
moduleType := gjson.Get(moduleMetaDataStr, "result.moduleType").String()

flagForEnablingState := false
Expand Down Expand Up @@ -260,30 +259,6 @@ func (impl ModuleServiceImpl) handleModuleNotFoundStatus(moduleName string) (Mod
}
}

// if module not enabled in helm for non enterprise-user
if isLegacyModule && moduleName != ModuleNameCicd {
for _, firstReleaseModuleName := range SupportedModuleNamesListFirstReleaseExcludingCicd {
if moduleName != firstReleaseModuleName {
cicdModule, err := impl.moduleRepository.FindOne(ModuleNameCicd)
if err != nil {
if err == pg.ErrNoRows {
return ModuleStatusNotInstalled, moduleType, false, nil
} else {
impl.logger.Errorw("Error in getting cicd module from DB", "err", err)
return ModuleStatusNotInstalled, moduleType, false, err
}
}
cicdVersion := cicdModule.Version
// if cicd was installed and any module/integration comes after that then mark that module installed only if cicd was installed before that module introduction
if len(baseMinVersionSupported) > 0 && cicdVersion < baseMinVersionSupported {
status, err := impl.saveModuleAsInstalled(moduleName, moduleType, flagForEnablingState)
return status, moduleType, false, err
}
break
}
}
}

return ModuleStatusNotInstalled, moduleType, false, nil

}
Expand Down
Loading