-
-
Notifications
You must be signed in to change notification settings - Fork 563
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
feat: backup and restore #935
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60f9069
to
3893447
Compare
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.
Pull Request Overview
This pull request standardizes error handling by replacing calls to api.ErrHandler with cosy.ErrHandler across various API modules and cleans up duplicate or unused imports.
- Updated error handling across duplicate, auto_cert, advance, settings, openai, notification, nginx, crypto, config, cluster, and certificate modules.
- Removed redundant import statements (particularly duplicate net/http entries).
- Eliminated the legacy ErrHandler function from api/api.go.
Reviewed Changes
Copilot reviewed 100 out of 100 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
api/sites/duplicate.go | Replaced api.ErrHandler with cosy.ErrHandler and removed duplicate import |
api/sites/auto_cert.go | Consistently updated error handling and removed duplicate import |
api/sites/advance.go | Updated error handling to use cosy.ErrHandler consistently |
api/settings/settings.go | Standardized error handling and cleaned up import duplicates |
api/openai/store.go | Switched error handling to cosy.ErrHandler |
api/notification/notification.go | Updated error handling to use cosy.ErrHandler |
api/nginx/nginx.go | Refactored error handling to use cosy.ErrHandler |
api/crypto/crypto.go | Updated error handling to use cosy.ErrHandler |
api/config/rename.go | Replaced api.ErrHandler with cosy.ErrHandler and removed duplicate imports |
api/config/modify.go | Standardized error handling using cosy.ErrHandler |
api/config/mkdir.go | Updated error handling to use cosy.ErrHandler |
api/config/list.go | Updated error handling and removed redundant imports |
api/config/get.go | Standardized error handling with cosy.ErrHandler |
api/config/add.go | Consistently switched error handling to cosy.ErrHandler |
api/cluster/node.go | Updated error handling to use cosy.ErrHandler |
api/cluster/environment.go | Refactored error handling to use cosy.ErrHandler |
api/certificate/dns_credential.go | Updated error handling to use cosy.ErrHandler |
api/certificate/certificate.go | Switched error handling to cosy.ErrHandler |
api/certificate/acme_user.go | Updated error handling to use cosy.ErrHandler |
api/api.go | Removed legacy ErrHandler function as part of the overall refactor |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Close #634