Skip to content

Conversation

@gireesh-naidu
Copy link
Contributor

@gireesh-naidu gireesh-naidu commented Dec 6, 2022

Description

Blocked update and delete chart repository if any helm app is deployed with this chart
Fixes #1306

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Tested the functionality for both Full mode and hyperion mode

Checklist:

  • The title of the PR states what changed and the related issues number (used for the release note).
  • Does this PR require documentation updates?
  • I've updated documentation as required by this PR.
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have tested it for all user roles
  • I have added all the required unit/api test cases

return
}

token := r.Header.Get("token")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need to move logic here ??

}

func (impl *ChartRepositoryServiceImpl) UpdateChartRepo(request *ChartRepoDto) (*chartRepoRepository.ChartRepo, error) {
func (impl *ChartRepositoryServiceImpl) UpdateChartRepo(request *ChartRepoDto, chartRepoId int) (*chartRepoRepository.ChartRepo, error) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need chartRepoId ??

Deleted bool `sql:"deleted,notnull"`
sql.AuditLog
}
type ChartRepoWithDeploymentCount struct {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use composition here

@gireesh-naidu gireesh-naidu changed the title Chart Repository Fixes Fix : Chart Repository Fixes Dec 13, 2022
@gireesh-naidu gireesh-naidu marked this pull request as ready for review February 21, 2023 05:46
@gireesh-naidu gireesh-naidu changed the title Fix : Chart Repository Fixes fix : chart repository fixes Feb 21, 2023
@gireesh-naidu gireesh-naidu changed the title fix : chart repository fixes fix: chart repository fixes Feb 21, 2023
@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
10.1% 10.1% Duplication

@gireesh-naidu gireesh-naidu merged commit 3a26be4 into main Feb 22, 2023
@gireesh-naidu gireesh-naidu deleted the chart_repo_fixes_final branch February 22, 2023 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Chart Repositories] On Delete "Chart Repo" information doesn't update in config-map "argocd"

3 participants