Skip to content
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 7 commits into from
Mar 30, 2025
Merged

feat: backup and restore #935

merged 7 commits into from
Mar 30, 2025

Conversation

0xJacky
Copy link
Owner

@0xJacky 0xJacky commented Mar 29, 2025

Close #634

@0xJacky 0xJacky force-pushed the feat/backup branch 2 times, most recently from 60f9069 to 3893447 Compare March 29, 2025 14:34
@0xJacky 0xJacky marked this pull request as ready for review March 30, 2025 14:03
@0xJacky 0xJacky requested a review from Copilot March 30, 2025 14:03
Copy link

@Copilot Copilot AI left a 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

@0xJacky 0xJacky merged commit b1a7866 into dev Mar 30, 2025
35 checks passed
@0xJacky 0xJacky deleted the feat/backup branch March 30, 2025 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add feature to backup nginx configuration
1 participant