Skip to content

fix: [Prod]Git account breaking whenever opening an existing account git repo. #4117

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

Closed
wants to merge 2 commits into from

Conversation

ashishdevtron
Copy link
Contributor

@ashishdevtron ashishdevtron commented Oct 18, 2023

Description

Exposed an API to fetch disabled git providers by ID

Fixes # https://dev.azure.com/DevtronLabs/Devtron/_workitems/edit/6200

How Has This Been Tested?

  • Test case A

Checklist:

  • The title of the PR states what changed and the related issues number (used for the release note).
  • Does this PR requires 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.

Does this PR introduce a user-facing change?


@ashishdevtron ashishdevtron changed the base branch from main to stable-dt19-v4 October 19, 2023 12:44
@ashishdevtron ashishdevtron changed the base branch from stable-dt19-v4 to main October 19, 2023 12:44
impl.logger.Debug("fetch disabled git provider by ID from db")
provider, err := impl.gitProviderRepo.FindDisabledById(providerId)
if err != nil {
impl.logger.Errorw("error in fetching disabled git providers", "err", err)
Copy link
Member

Choose a reason for hiding this comment

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

add providerId in log

//RBAC
res, err := handler.gitRegistryConfig.FetchOneDisabledGitProvider(providerId)
if err != nil {
handler.Logger.Errorw("service err, DisabledGitListAutocomplete", "err", err, "appId", appId)
Copy link
Member

Choose a reason for hiding this comment

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

add providerId

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

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
0.0% 0.0% Duplication

kartik-579
kartik-579 previously approved these changes Oct 19, 2023
@ashishdevtron ashishdevtron changed the base branch from main to stable-dt19-v4 October 31, 2023 05:46
@ashishdevtron ashishdevtron changed the base branch from stable-dt19-v4 to main October 31, 2023 05:46
@ashishdevtron ashishdevtron dismissed kartik-579’s stale review October 31, 2023 05:46

The base branch was changed.

@vikramdevtron
Copy link
Contributor

Not required anymore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants