Improvements for handling site disabled state in backup #475
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.
This pull request updates the site backup logic to better handle backup requests when the site is disabled, especially for the
--listand--dash-authflags. The changes ensure that listing backups and EasyDash API callbacks work even if the site is disabled, and that appropriate error handling and messaging are in place for EasyDash integration.Improvements for handling site disabled state and EasyDash integration:
get_site_infois called: for--listand--dash-authoperations, it no longer requires the site to be enabled, allowing backup listing and EasyDash authentication to proceed even if the site is disabled.--dash-authis used and the site is disabled, an API callback is sent with an error message, and a clear error is shown to the user. This ensures EasyDash receives the correct failure status.Code quality and user feedback improvements:
--dash-authflag to streamline validation and error reporting.