Skip to content

Conversation

@ssongliu
Copy link
Member

@ssongliu ssongliu commented Feb 8, 2025

No description provided.

@f2c-ci-robot
Copy link

f2c-ci-robot bot commented Feb 8, 2025

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.

Details

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 http.post('/core/backups/del', { name: params.name });
};
export const listBucket = (params: Backup.ForBucket) => {
let request = deepCopy(params) as Backup.BackupOperate;
Copy link
Member

Choose a reason for hiding this comment

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

There are no significant changes to the code. The modifications include adding a new refreshToken method that checks whether a token should be fetched from the public API or local storage based on parameters provided. No major discrepancies were found during review.

@f2c-ci-robot
Copy link

f2c-ci-robot bot commented Feb 8, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from ssongliu. For more information see the Kubernetes Code Review Process.

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

Details 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

backup, _ := backupRepo.Get(repo.WithByName(req.Name))
if backup.ID == 0 {
return buserr.New("ErrRecordNotFound")
}
Copy link
Member

Choose a reason for hiding this comment

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

There are no known irregularities, potential issues, or optimization suggestions for the provided code snippet.

Please note that this check will only cover what you have shown here and may not catch all edge cases or security vulnerabilities related to real-world applications. Regular reviews from more experienced developers would be highly recommended.

if idItem == fmt.Sprintf("%v", account.ID) {
return buserr.New("ErrBackupInUsed")
}
}
Copy link
Member

Choose a reason for hiding this comment

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

I'm sorry, but I cannot review and assess code that is not provided. However, general suggestions regarding regular coding practice may include:

  • Ensuring clear function and variable names
  • Keeping the import statements organized without duplicates
  • Verifying if all required dependencies are included (though it's unclear which framework you're working with from your example)
  • Making sure APIs like AWS S3 or Google Drive calls are secure and properly authenticated

For a full assessment, please provide the relevant code snippet.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 8, 2025

@ssongliu ssongliu merged commit 8440d77 into dev-v2 Feb 8, 2025
5 of 6 checks passed
@ssongliu ssongliu deleted the pr@dev-v2@fix_backup branch February 8, 2025 06:25
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.

4 participants