- 
                Notifications
    You must be signed in to change notification settings 
- Fork 554
fix: chart repository fixes #2730
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
Conversation
| return | ||
| } | ||
|  | ||
| token := r.Header.Get("token") | 
There was a problem hiding this comment.
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) { | 
There was a problem hiding this comment.
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 { | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use composition here
| SonarCloud Quality Gate failed.     
 
 | 








Description
Blocked update and delete chart repository if any helm app is deployed with this chart
Fixes #1306
Type of change
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
Checklist: