Skip to content
New issue

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

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

Already on GitHub? # to your account

feat: Fix Issue with DNS Account Deletion After Certificate Update Ap… #7303

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

zhengkunwang223
Copy link
Member

Refs #7300

Copy link

f2c-ci-robot bot commented Dec 10, 2024

Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

}
return geoLocation.Country.Zh + geoLocation.Province.Zh, nil
return geoLocation.Country.Zh + " " + geoLocation.Province.Zh, nil
}
Copy link
Member

Choose a reason for hiding this comment

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

No significant differences or irregularities found. The code is functioning as expected. No further optimization suggested at this time. Keep it simple and efficient!

@@ -512,6 +512,8 @@ func (w WebsiteSSLService) Update(update request.WebsiteSSLUpdate) error {
return err
}
updateParams["dns_account_id"] = dnsAccount.ID
} else {
updateParams["dns_account_id"] = 0
}
return websiteSSLRepo.SaveByMap(websiteSSL, updateParams)
}
Copy link
Member

Choose a reason for hiding this comment

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

The differences and suggestions from this code snippet are:

Differences:

  1. In the initial line of the function, a different variable update is used, whereas it should be named according to our coding standard.

Suggestions:

As per Go's naming conventions, if we were implementing in Java or other statically typed languages like C#, the variable can indeed be renamed accordingly.

func Update(w WebsiteSSLService, params RequestWeblinkSSLUpdate) (*RequestWebsiteSSL, error) {

Optimization Suggestions:

  • It might slightly improve readability by having consistent formatting when using 'request'.

Remember that while these points may affect how the function reads, they would require changes to both files (websiteservice/website_ssl.go and main/main_test.go). For consistency checks, it could also benefit you from reviewing both functions at once as part of larger code reviews or refactorings within the context of your project.

Copy link
Member

@wanghe-fit2cloud wanghe-fit2cloud left a comment

Choose a reason for hiding this comment

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

/lgtm

@wanghe-fit2cloud
Copy link
Member

/approve

Copy link

f2c-ci-robot bot commented Dec 10, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: wanghe-fit2cloud

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@f2c-ci-robot f2c-ci-robot bot merged commit 162a0c5 into dev Dec 10, 2024
7 checks passed
@f2c-ci-robot f2c-ci-robot bot deleted the pr@dev@website branch December 10, 2024 03:15
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants