borgitory 2.7.0__tar.gz → 2.7.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {borgitory-2.7.0 → borgitory-2.7.2}/PKG-INFO +4 -2
- {borgitory-2.7.0 → borgitory-2.7.2}/README.md +1 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/pyproject.toml +5 -4
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/api/cloud_sync/cloud_sync.py +12 -6
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/cloud_providers/cloud_sync_service.py +0 -3
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/cloud_providers/storage/s3_storage.py +11 -2
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/cloud_providers/storage/sftp_storage.py +12 -2
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/cloud_providers/storage/smb_storage.py +12 -2
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/jobs/task_executors/hook_task_executor.py +1 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/scheduling/scheduler_service.py +17 -7
- borgitory-2.7.0/src/borgitory/templates/partials/cloud_sync/providers/sftp/sftp_fields_edit.html → borgitory-2.7.2/src/borgitory/templates/partials/cloud_sync/providers/sftp/sftp_fields.html +12 -11
- borgitory-2.7.0/src/borgitory/templates/partials/cloud_sync/providers/smb/smb_fields_edit.html → borgitory-2.7.2/src/borgitory/templates/partials/cloud_sync/providers/smb/smb_fields.html +15 -16
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/cloud_sync/test_cloud_sync_api.py +5 -3
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/hooks/test_hook_execution_service.py +2 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/hooks/test_job_manager_critical_hooks.py +23 -0
- borgitory-2.7.2/tests/schedules/test_next_run_update.py +223 -0
- borgitory-2.7.0/src/borgitory/templates/partials/cloud_sync/providers/sftp/sftp_fields.html +0 -72
- borgitory-2.7.0/src/borgitory/templates/partials/cloud_sync/providers/smb/smb_fields.html +0 -143
- {borgitory-2.7.0 → borgitory-2.7.2}/.gitignore +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/LICENSE +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/__init__.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/alembic/README +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/alembic/env.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/alembic/script.py.mako +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/alembic/versions/02b7b29d38c0_add_encryption_type_and_keyfile_content_.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/alembic/versions/18b9095bc772_add_patterns_column_to_schedules_table.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/alembic/versions/1d47e9231dd0_rename_cleanup_to_prune.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/alembic/versions/2628b151e709_make_passphrase_optional.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/alembic/versions/3335c0eac68e_create_initial_schema.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/alembic/versions/5e6cc17d11a5_user_installed_packages.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/alembic/versions/78c9fff46e06_add_compact_after_field_to_pruneconfig.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/alembic/versions/9b5d5f5e8cbc_add_pre_post_job_hooks_to_schedule.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/alembic/versions/9e4c8456ea53_add_cache_dir_field_to_repositories_.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/alembic/versions/9f06f8c8088d_initial_empty_state.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/alembic/versions/d294fdc9a5e7_fix_uuid_columns_for_sqlite.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/alembic/versions/eb3518e71c73_add_more_prune_settings_to_cleanup_.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/alembic.ini +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/api/__init__.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/api/auth.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/api/backups.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/api/cancel_on_disconnect.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/api/cloud_sync/__init__.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/api/cloud_sync/s3.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/api/debug.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/api/jobs.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/api/notifications.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/api/packages.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/api/prune.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/api/repositories.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/api/repository_check_configs.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/api/repository_stats.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/api/schedules.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/api/shared.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/api/tabs.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/cli.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/config/__init__.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/config/command_runner_config.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/config/job_manager_config.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/config_module.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/constants/__init__.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/constants/retention.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/custom_types.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/dependencies.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/factories/__init__.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/factories/service_factory.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/main.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/models/__init__.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/models/borg_info.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/models/database.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/models/enums.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/models/job_results.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/models/patterns.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/models/repository_dtos.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/models/schemas.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/protocols/__init__.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/protocols/archive_manager_protocol.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/protocols/cloud_protocols.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/protocols/command_executor_protocol.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/protocols/command_protocols.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/protocols/environment_protocol.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/protocols/file_protocols.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/protocols/job_database_manager_protocol.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/protocols/job_event_broadcaster_protocol.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/protocols/job_output_manager_protocol.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/protocols/job_protocols.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/protocols/job_queue_manager_protocol.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/protocols/notification_protocols.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/protocols/path_protocols.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/protocols/repository_protocols.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/protocols/storage_protocols.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/protocols/system_protocol.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/py.typed +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/__init__.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/archives/archive_manager.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/archives/archive_models.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/borg/borg_pattern_validation_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/borg/shell_pattern.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/borg_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/cloud_providers/__init__.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/cloud_providers/orchestration.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/cloud_providers/registry.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/cloud_providers/registry_factory.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/cloud_providers/storage/__init__.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/cloud_providers/storage/base.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/cloud_providers/storage/s3_provider_config.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/cloud_providers/types.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/cloud_sync_config_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/command_execution/__init__.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/command_execution/command_executor_factory.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/command_execution/linux_command_executor.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/command_execution/wsl_command_executor.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/configuration_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/cron_description_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/debug_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/encryption_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/files/file_service_factory.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/files/linux_file_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/files/wsl_file_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/hooks/__init__.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/hooks/hook_config.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/hooks/hook_execution_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/jobs/broadcaster/event_type.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/jobs/broadcaster/job_event.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/jobs/broadcaster/job_event_broadcaster.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/jobs/job_database_manager.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/jobs/job_executor.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/jobs/job_manager.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/jobs/job_manager_factory.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/jobs/job_models.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/jobs/job_output_manager.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/jobs/job_queue_manager.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/jobs/job_render_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/jobs/job_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/jobs/job_stream_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/jobs/task_executors/__init__.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/jobs/task_executors/backup_task_executor.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/jobs/task_executors/check_task_executor.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/jobs/task_executors/cloud_sync_task_executor.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/jobs/task_executors/compact_task_executor.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/jobs/task_executors/notification_task_executor.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/jobs/task_executors/prune_task_executor.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/migrations/__init__.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/migrations/migration_factory.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/migrations/migration_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/notifications/__init__.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/notifications/config_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/notifications/providers/__init__.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/notifications/providers/base.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/notifications/providers/discord_provider.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/notifications/providers/pushover_provider.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/notifications/providers/telegram_provider.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/notifications/registry.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/notifications/registry_factory.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/notifications/service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/notifications/types.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/package_manager_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/path/__init__.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/path/path_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/path/path_service_factory.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/path/platform_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/prune_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/rclone_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/rclone_types.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/recovery_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/repositories/repository_check_config_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/repositories/repository_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/repositories/repository_stats_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/scheduling/hook_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/scheduling/pattern_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/scheduling/schedule_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/simple_command_runner.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/startup/package_restoration_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/system/__init__.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/system/system_operations.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/task_definition_builder.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/upcoming_backups_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/volumes/file_system_interface.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/volumes/os_file_system.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/static/css/modern-components.css +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/static/css/tailwind-input.css +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/static/favicon/android-chrome-192x192.png +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/static/favicon/android-chrome-512x512.png +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/static/favicon/apple-touch-icon.png +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/static/favicon/favicon-16x16.png +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/static/favicon/favicon-32x32.png +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/static/favicon/favicon.ico +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/static/favicon/site.webmanifest +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/static/js/app.js +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/static/js/components/jobs.js +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/static/js/components/navigation.js +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/static/vendor/chart.min.js +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/static/vendor/htmx-ext-json-enc.js +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/static/vendor/htmx-ext-sse.js +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/static/vendor/htmx.min.js +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/base.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/index.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/login.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/macros/datetime.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/archives/contents_modal.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/archives/directory_contents.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/archives/directory_loading_state.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/archives/directory_loading_with_trigger.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/archives/empty_state.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/archives/error_message.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/archives/list_content.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/archives/loading_state.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/archives/loading_with_trigger.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/archives/repository_selector.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/archives/tab.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/auth/login_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/auth/login_form_active.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/auth/login_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/auth/register_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/auth/register_form_active.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/auth/register_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/backups/manual_form.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/backups/operations.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/backups/tab.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/cloud_sync/action_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/cloud_sync/action_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/cloud_sync/config_list_content.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/cloud_sync/create_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/cloud_sync/create_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/cloud_sync/form.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/cloud_sync/list.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/cloud_sync/provider_fields.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/cloud_sync/providers/s3/s3_endpoint_field.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/cloud_sync/providers/s3/s3_fields.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/cloud_sync/providers/s3/s3_provider_options.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/cloud_sync/providers/s3/s3_region_options.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/cloud_sync/providers/s3/s3_storage_class_options.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/cloud_sync/tab.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/cloud_sync/test_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/cloud_sync/test_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/cloud_sync/test_warning.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/cloud_sync/update_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/cloud_sync/update_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/common/error_message.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/debug/debug_panel.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/debug/tab.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/jobs/backup_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/jobs/backup_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/jobs/current_jobs_list.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/jobs/empty_state.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/jobs/error_state.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/jobs/job_details_static.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/jobs/job_details_streaming.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/jobs/job_item.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/jobs/job_stop_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/jobs/job_stop_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/jobs/tab.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/jobs/task_item_static.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/jobs/task_item_streaming.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/navigation.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/navigation_nav.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/notifications/action_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/notifications/action_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/notifications/add_form.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/notifications/config_list_content.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/notifications/create_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/notifications/create_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/notifications/edit_form.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/notifications/list.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/notifications/providers/discord_fields.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/notifications/providers/pushover_fields.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/notifications/providers/telegram_fields.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/notifications/tab.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/notifications/test_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/notifications/test_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/notifications/update_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/notifications/update_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/packages/empty_search.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/packages/error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/packages/install_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/packages/install_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/packages/installed_list.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/packages/package_manager.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/packages/remove_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/packages/remove_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/packages/search_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/packages/search_results.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/packages/selected_packages.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/packages/tab.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/prune/action_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/prune/action_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/prune/config_form.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/prune/config_form_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/prune/config_form_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/prune/config_list_content.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/prune/create_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/prune/create_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/prune/delete_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/prune/delete_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/prune/form.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/prune/policies.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/prune/prune_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/prune/prune_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/prune/retention_fields.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/prune/strategy_fields.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/prune/tab.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/prune/update_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/prune/update_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/repositories/create/form_create.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/repositories/create/form_create_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/repositories/create/form_create_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/repositories/create/form_update_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/repositories/create/form_update_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/repositories/create/passphrase_field.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/repositories/delete_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/repositories/import/encryption_fields.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/repositories/import/form_import.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/repositories/import/form_import_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/repositories/import/form_import_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/repositories/list.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/repositories/list_content.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/repositories/modal/borg_info.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/repositories/modal/break_lock_button.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/repositories/modal/break_lock_button_modal.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/repositories/modal/details_modal.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/repositories/modal/lock_status.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/repositories/tab.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/repository_check/action_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/repository_check/action_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/repository_check/check_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/repository_check/check_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/repository_check/config_list_content.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/repository_check/create_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/repository_check/create_form.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/repository_check/create_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/repository_check/custom_options.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/repository_check/delete_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/repository_check/delete_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/repository_check/dynamic_options.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/repository_check/edit_form.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/repository_check/form.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/repository_check/tab.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/repository_check/update_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/repository_check/update_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/repository_stats/stats_panel.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/schedules/create_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/schedules/create_form.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/schedules/create_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/schedules/cron_description.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/schedules/cron_expression_form.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/schedules/delete_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/schedules/delete_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/schedules/edit_form.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/schedules/hooks/hook_field_modal.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/schedules/hooks/hooks_container.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/schedules/hooks/hooks_edit_content.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/schedules/hooks/hooks_modal.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/schedules/hooks/hooks_save_response.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/schedules/hooks/hooks_validation_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/schedules/list.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/schedules/patterns/pattern_field_modal.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/schedules/patterns/pattern_validation_result.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/schedules/patterns/patterns_container.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/schedules/patterns/patterns_modal.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/schedules/patterns/patterns_save_response.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/schedules/patterns/patterns_validation_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/schedules/patterns/patterns_validation_results.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/schedules/run_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/schedules/schedule_list_content.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/schedules/tab.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/schedules/upcoming.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/schedules/upcoming_backups_content.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/schedules/update_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/schedules/update_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/shared/notification.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/shared/package_autocomplete.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/shared/path_autocomplete.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/shared/path_autocomplete_dropdown.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/shared/path_autocomplete_loading.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/statistics/empty_state.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/statistics/loading_state.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/statistics/repository_selector.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/templates/partials/statistics/tab.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/utils/__init__.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/utils/datetime_utils.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/utils/path_prefix.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/utils/secure_path.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/utils/security.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/utils/template_paths.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/utils/template_responses.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/__init__.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/archives/test_archive_browser_htmx.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/archives/test_archive_manager.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/archives/test_archive_manager_caching.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/auth/test_auth_htmx.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/auth/test_auth_redirect_flow.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/auth/test_main_login_page.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/borg/test_borg_service_core.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/cloud_providers/__init__.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/cloud_providers/test_display_details.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/cloud_providers/test_orchestration.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/cloud_providers/test_provider_validation.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/cloud_providers/test_registry.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/cloud_providers/test_registry_integration.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/cloud_providers/test_s3_provider_config.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/cloud_providers/test_schema_validation.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/cloud_providers/test_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/cloud_providers/test_smb_storage.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/cloud_providers/test_storage.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/cloud_providers/test_types.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/cloud_sync/test_s3_api.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/command_execution/test_linux_command_executor.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/command_execution/test_wsl_command_executor.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/conftest.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/factories/__init__.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/factories/test_service_factory.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/fixtures/__init__.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/fixtures/job_fixtures.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/fixtures/registry_fixtures.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/hooks/__init__.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/hooks/test_api_critical_hooks.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/hooks/test_composite_job_critical_failure.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/hooks/test_critical_hook_config.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/hooks/test_critical_hook_execution.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/hooks/test_hook_config.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/hooks/test_notification_messages_hooks.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/hooks/test_task_definition_integration.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/integration/__init__.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/integration/conftest.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/integration/test_app_startup.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/integration/test_basic_endpoints.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/jobs/conftest.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/jobs/test_compact_task_executor.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/jobs/test_database_integration.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/jobs/test_ignore_lock_functionality.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/jobs/test_job_database_manager.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/jobs/test_job_event_broadcaster.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/jobs/test_job_executor.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/jobs/test_job_executor_comprehensive.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/jobs/test_job_manager.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/jobs/test_job_manager_comprehensive.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/jobs/test_job_manager_factory.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/jobs/test_job_manager_stop.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/jobs/test_job_manager_task_execution.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/jobs/test_job_output_manager.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/jobs/test_job_render_service_coverage.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/jobs/test_job_render_service_new_architecture.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/jobs/test_job_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/jobs/test_job_stop_api_simple.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/jobs/test_job_stop_functionality.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/jobs/test_job_stop_integration.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/jobs/test_job_stop_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/jobs/test_job_stream_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/jobs/test_jobs_api_sse.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/jobs/test_sse_multiline_formatting.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/notifications/test_discord_provider.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/notifications/test_notification_config_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/notifications/test_notification_configs_api.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/notifications/test_notification_edit_integration.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/notifications/test_pushover_provider.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/notifications/test_telegram_provider.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/packages/test_package_database_integration.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/packages/test_package_manager_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/packages/test_package_selection_endpoints.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/protocols/__init__.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/protocols/protocol_testing_utils.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/protocols/test_protocol_compliance.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/protocols/test_simple_command_runner_protocol.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/repositories/test_repositories_api.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/repositories/test_repository_check_config_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/repositories/test_repository_check_configs_api.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/repositories/test_repository_management_api.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/repositories/test_repository_management_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/repositories/test_repository_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/repositories/test_repository_stats_html.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/repositories/test_repository_stats_service_unit.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/schedules/test_cron_description_api.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/schedules/test_cron_description_htmx_api.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/schedules/test_manual_run_apscheduler.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/schedules/test_schedule_creation_api.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/schedules/test_schedule_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/schedules/test_schedule_validation_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/schedules/test_scheduler_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/schedules/test_schedules_api.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/schedules/test_schedules_hooks_api.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/schedules/test_schedules_patterns_api.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/schedules/test_validate_patterns_json.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/scheduling/test_hook_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/scheduling/test_pattern_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/services/__init__.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/services/migrations/__init__.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/services/migrations/test_migration_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/services/test_borg_pattern_validation_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/templates/test_current_jobs_template.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/test_backups_api.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/test_basic.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/test_cache_dir_functionality.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/test_cache_dir_normalization.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/test_cron_description_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/test_database_models.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/test_datetime_utils.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/test_debug_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/test_dependencies.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/test_di_testing_infrastructure.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/test_job_manager_proper_di.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/test_jobs_api.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/test_path_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/test_prune_api.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/test_prune_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/test_recovery_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/test_repository_archives_navigation.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/test_retention_constants.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/test_secure_path_comprehensive.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/test_simple_command_runner.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/test_streaming_edge_cases.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/test_streaming_fixes.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/test_tabs_api.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/test_task_definition_builder.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/utils/__init__.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/utils/di_testing.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.2}/tests/utils/test_path_prefix.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: borgitory
|
|
3
|
-
Version: 2.7.
|
|
3
|
+
Version: 2.7.2
|
|
4
4
|
Summary: A comprehensive web-based management interface for BorgBackup repositories with real-time monitoring, automated scheduling, and cloud synchronization capabilities.
|
|
5
5
|
Project-URL: Homepage, https://borgitory.com
|
|
6
6
|
Project-URL: Repository, https://github.com/mlapaglia/Borgitory
|
|
@@ -45,7 +45,7 @@ Requires-Dist: alembic>=1.18.2
|
|
|
45
45
|
Requires-Dist: apscheduler>=3.11.2
|
|
46
46
|
Requires-Dist: bcrypt>=5.0.0
|
|
47
47
|
Requires-Dist: cron-descriptor>=2.0.6
|
|
48
|
-
Requires-Dist: cryptography>=46.0.
|
|
48
|
+
Requires-Dist: cryptography>=46.0.5
|
|
49
49
|
Requires-Dist: docker>=7.1.0
|
|
50
50
|
Requires-Dist: fastapi>=0.128.4
|
|
51
51
|
Requires-Dist: jinja2>=3.1.6
|
|
@@ -54,6 +54,7 @@ Requires-Dist: python-dotenv>=1.2.1
|
|
|
54
54
|
Requires-Dist: python-multipart>=0.0.22
|
|
55
55
|
Requires-Dist: sqlalchemy>=2.0.46
|
|
56
56
|
Requires-Dist: sse-starlette>=3.2.0
|
|
57
|
+
Requires-Dist: urllib3>=2.6.3
|
|
57
58
|
Requires-Dist: uvicorn[standard]>=0.40.0
|
|
58
59
|
Provides-Extra: dev
|
|
59
60
|
Requires-Dist: debugpy>=1.8.20; extra == 'dev'
|
|
@@ -71,6 +72,7 @@ Description-Content-Type: text/markdown
|
|
|
71
72
|
|
|
72
73
|
|
|
73
74
|
# Borgitory
|
|
75
|
+
[](https://www.bestpractices.dev/projects/12059)
|
|
74
76
|
[](https://codecov.io/gh/mlapaglia/Borgitory)
|
|
75
77
|
[](https://github.com/mlapaglia/Borgitory/actions/workflows/release.yml)
|
|
76
78
|
[](https://github.com/sponsors/mlapaglia)
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
# Borgitory
|
|
3
|
+
[](https://www.bestpractices.dev/projects/12059)
|
|
3
4
|
[](https://codecov.io/gh/mlapaglia/Borgitory)
|
|
4
5
|
[](https://github.com/mlapaglia/Borgitory/actions/workflows/release.yml)
|
|
5
6
|
[](https://github.com/sponsors/mlapaglia)
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "borgitory"
|
|
7
|
-
version = "2.7.
|
|
7
|
+
version = "2.7.2"
|
|
8
8
|
description = "A comprehensive web-based management interface for BorgBackup repositories with real-time monitoring, automated scheduling, and cloud synchronization capabilities."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = {file = "LICENSE"}
|
|
@@ -31,7 +31,7 @@ dependencies = [
|
|
|
31
31
|
"apscheduler>=3.11.2",
|
|
32
32
|
"bcrypt>=5.0.0",
|
|
33
33
|
"cron-descriptor>=2.0.6",
|
|
34
|
-
"cryptography>=46.0.
|
|
34
|
+
"cryptography>=46.0.5",
|
|
35
35
|
"docker>=7.1.0",
|
|
36
36
|
"fastapi>=0.128.4",
|
|
37
37
|
"jinja2>=3.1.6",
|
|
@@ -40,6 +40,7 @@ dependencies = [
|
|
|
40
40
|
"python-multipart>=0.0.22",
|
|
41
41
|
"sqlalchemy>=2.0.46",
|
|
42
42
|
"sse-starlette>=3.2.0",
|
|
43
|
+
"urllib3>=2.6.3",
|
|
43
44
|
"uvicorn[standard]>=0.40.0",
|
|
44
45
|
]
|
|
45
46
|
|
|
@@ -114,7 +115,7 @@ line-length = 88
|
|
|
114
115
|
indent-width = 4
|
|
115
116
|
|
|
116
117
|
# Assume Python 3.14+.
|
|
117
|
-
target-version = "2.7.
|
|
118
|
+
target-version = "2.7.2"
|
|
118
119
|
|
|
119
120
|
[tool.ruff.lint]
|
|
120
121
|
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
|
|
@@ -181,7 +182,7 @@ exclude_lines = [
|
|
|
181
182
|
|
|
182
183
|
[tool.mypy]
|
|
183
184
|
# Basic settings
|
|
184
|
-
python_version = "2.7.
|
|
185
|
+
python_version = "2.7.2"
|
|
185
186
|
strict = true
|
|
186
187
|
|
|
187
188
|
# Display options
|
|
@@ -51,7 +51,7 @@ def _get_supported_providers(registry: ProviderRegistryDep) -> List[Dict[str, st
|
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
def _get_provider_template(provider: str) -> Optional[str]:
|
|
54
|
-
"""Get the appropriate template path for a provider
|
|
54
|
+
"""Get the appropriate template path for a provider"""
|
|
55
55
|
if not provider:
|
|
56
56
|
return None
|
|
57
57
|
|
|
@@ -234,22 +234,20 @@ async def create_cloud_sync_config(
|
|
|
234
234
|
request,
|
|
235
235
|
"partials/cloud_sync/create_error.html",
|
|
236
236
|
{"error_message": error_msg},
|
|
237
|
-
status_code=422,
|
|
238
237
|
)
|
|
239
238
|
except HTTPException as e:
|
|
240
239
|
return templates.TemplateResponse(
|
|
241
240
|
request,
|
|
242
241
|
"partials/cloud_sync/create_error.html",
|
|
243
242
|
{"error_message": str(e.detail)},
|
|
244
|
-
status_code=e.status_code,
|
|
245
243
|
)
|
|
246
244
|
except Exception as e:
|
|
247
245
|
error_msg = f"Failed to create cloud sync configuration: {str(e)}"
|
|
246
|
+
logger.error(error_msg, exc_info=True)
|
|
248
247
|
return templates.TemplateResponse(
|
|
249
248
|
request,
|
|
250
249
|
"partials/cloud_sync/create_error.html",
|
|
251
250
|
{"error_message": error_msg},
|
|
252
|
-
status_code=500,
|
|
253
251
|
)
|
|
254
252
|
|
|
255
253
|
|
|
@@ -384,21 +382,29 @@ async def update_cloud_sync_config(
|
|
|
384
382
|
response.headers["HX-Trigger"] = "cloudSyncUpdate"
|
|
385
383
|
return response
|
|
386
384
|
|
|
385
|
+
except ValidationError as e:
|
|
386
|
+
# Use sanitized validation errors that exclude the original input values
|
|
387
|
+
error_details = e.errors(include_input=False)
|
|
388
|
+
error_msg = "Validation error while updating cloud sync configuration."
|
|
389
|
+
return templates.TemplateResponse(
|
|
390
|
+
request,
|
|
391
|
+
"partials/cloud_sync/update_error.html",
|
|
392
|
+
{"error_message": error_msg, "error_details": error_details},
|
|
393
|
+
)
|
|
387
394
|
except HTTPException as e:
|
|
388
395
|
return templates.TemplateResponse(
|
|
389
396
|
request,
|
|
390
397
|
"partials/cloud_sync/update_error.html",
|
|
391
398
|
{"error_message": str(e.detail)},
|
|
392
|
-
status_code=e.status_code,
|
|
393
399
|
)
|
|
394
400
|
except Exception as e:
|
|
395
401
|
error_msg = f"Failed to update cloud sync configuration: {str(e)}"
|
|
402
|
+
logger.error(error_msg, exc_info=True)
|
|
396
403
|
|
|
397
404
|
return templates.TemplateResponse(
|
|
398
405
|
request,
|
|
399
406
|
"partials/cloud_sync/update_error.html",
|
|
400
407
|
{"error_message": error_msg},
|
|
401
|
-
status_code=500,
|
|
402
408
|
)
|
|
403
409
|
|
|
404
410
|
|
{borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/cloud_providers/cloud_sync_service.py
RENAMED
|
@@ -407,9 +407,6 @@ class CloudSyncService:
|
|
|
407
407
|
encrypted_config, sensitive_fields
|
|
408
408
|
)
|
|
409
409
|
|
|
410
|
-
if db_config.path_prefix:
|
|
411
|
-
decrypted_config["path_prefix"] = db_config.path_prefix
|
|
412
|
-
|
|
413
410
|
if output_callback:
|
|
414
411
|
output_callback(
|
|
415
412
|
f"Syncing to {db_config.name} ({db_config.provider.upper()})"
|
{borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/cloud_providers/storage/s3_storage.py
RENAMED
|
@@ -6,6 +6,7 @@ from business logic and easy testability.
|
|
|
6
6
|
"""
|
|
7
7
|
|
|
8
8
|
import asyncio
|
|
9
|
+
import logging
|
|
9
10
|
import re
|
|
10
11
|
from enum import Enum
|
|
11
12
|
from typing import AsyncGenerator, Callable, Dict, List, Optional, Union, cast
|
|
@@ -20,6 +21,8 @@ from .base import CloudStorage, CloudStorageConfig
|
|
|
20
21
|
from ..types import SyncEvent, SyncEventType, ConnectionInfo
|
|
21
22
|
from ..registry import register_provider, RcloneMethodMapping
|
|
22
23
|
|
|
24
|
+
logger = logging.getLogger(__name__)
|
|
25
|
+
|
|
23
26
|
|
|
24
27
|
class S3Provider(str, Enum):
|
|
25
28
|
"""S3-compatible storage providers"""
|
|
@@ -227,8 +230,14 @@ class S3Storage(CloudStorage):
|
|
|
227
230
|
region=self._config.region,
|
|
228
231
|
endpoint_url=self._config.endpoint_url,
|
|
229
232
|
)
|
|
230
|
-
|
|
231
|
-
|
|
233
|
+
status = result.get("status")
|
|
234
|
+
if status != "success":
|
|
235
|
+
logger.warning(
|
|
236
|
+
"S3 connection test returned status '%s'", status
|
|
237
|
+
)
|
|
238
|
+
return status == "success"
|
|
239
|
+
except Exception as e:
|
|
240
|
+
logger.error(f"S3 connection test failed with exception: {e}", exc_info=True)
|
|
232
241
|
return False
|
|
233
242
|
|
|
234
243
|
def get_connection_info(self) -> ConnectionInfo:
|
{borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/cloud_providers/storage/sftp_storage.py
RENAMED
|
@@ -6,6 +6,7 @@ from business logic and easy testability.
|
|
|
6
6
|
"""
|
|
7
7
|
|
|
8
8
|
import asyncio
|
|
9
|
+
import logging
|
|
9
10
|
import os
|
|
10
11
|
import re
|
|
11
12
|
import subprocess
|
|
@@ -23,6 +24,8 @@ from .base import CloudStorage, CloudStorageConfig
|
|
|
23
24
|
from ..types import SyncEvent, SyncEventType, ConnectionInfo
|
|
24
25
|
from ..registry import register_provider, RcloneMethodMapping
|
|
25
26
|
|
|
27
|
+
logger = logging.getLogger(__name__)
|
|
28
|
+
|
|
26
29
|
|
|
27
30
|
class SFTPStorageConfig(CloudStorageConfig):
|
|
28
31
|
"""Configuration for SFTP storage"""
|
|
@@ -213,8 +216,15 @@ class SFTPStorage(CloudStorage):
|
|
|
213
216
|
password=self._config.password,
|
|
214
217
|
private_key=self._config.private_key,
|
|
215
218
|
)
|
|
216
|
-
|
|
217
|
-
|
|
219
|
+
status = result.get("status")
|
|
220
|
+
if status != "success":
|
|
221
|
+
logger.warning(
|
|
222
|
+
"SFTP connection test failed with status '%s'.",
|
|
223
|
+
status,
|
|
224
|
+
)
|
|
225
|
+
return status == "success"
|
|
226
|
+
except Exception as e:
|
|
227
|
+
logger.error(f"SFTP connection test failed with exception: {e}", exc_info=True)
|
|
218
228
|
return False
|
|
219
229
|
|
|
220
230
|
def get_connection_info(self) -> ConnectionInfo:
|
{borgitory-2.7.0 → borgitory-2.7.2}/src/borgitory/services/cloud_providers/storage/smb_storage.py
RENAMED
|
@@ -6,6 +6,7 @@ from business logic and easy testability.
|
|
|
6
6
|
"""
|
|
7
7
|
|
|
8
8
|
import asyncio
|
|
9
|
+
import logging
|
|
9
10
|
import os
|
|
10
11
|
import re
|
|
11
12
|
import subprocess
|
|
@@ -22,6 +23,8 @@ from .base import CloudStorage, CloudStorageConfig
|
|
|
22
23
|
from ..types import SyncEvent, SyncEventType, ConnectionInfo
|
|
23
24
|
from ..registry import register_provider, RcloneMethodMapping
|
|
24
25
|
|
|
26
|
+
logger = logging.getLogger(__name__)
|
|
27
|
+
|
|
25
28
|
|
|
26
29
|
class SMBStorageConfig(CloudStorageConfig):
|
|
27
30
|
"""Configuration for SMB storage"""
|
|
@@ -257,8 +260,15 @@ class SMBStorage(CloudStorage):
|
|
|
257
260
|
case_insensitive=self._config.case_insensitive,
|
|
258
261
|
kerberos_ccache=self._config.kerberos_ccache,
|
|
259
262
|
)
|
|
260
|
-
|
|
261
|
-
|
|
263
|
+
status = result.get("status")
|
|
264
|
+
if status != "success":
|
|
265
|
+
logger.warning(
|
|
266
|
+
f"SMB connection test returned status '{status}': "
|
|
267
|
+
f"{result.get('message', 'no details')}"
|
|
268
|
+
)
|
|
269
|
+
return status == "success"
|
|
270
|
+
except Exception as e:
|
|
271
|
+
logger.error(f"SMB connection test failed with exception: {e}", exc_info=True)
|
|
262
272
|
return False
|
|
263
273
|
|
|
264
274
|
def get_connection_info(self) -> ConnectionInfo:
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import logging
|
|
2
2
|
from datetime import datetime
|
|
3
3
|
import uuid
|
|
4
|
-
from borgitory.utils.datetime_utils import now_utc
|
|
4
|
+
from borgitory.utils.datetime_utils import now_utc, ensure_utc
|
|
5
5
|
import traceback
|
|
6
6
|
from typing import Dict, List, Union
|
|
7
7
|
from sqlalchemy import select
|
|
@@ -62,9 +62,17 @@ async def execute_scheduled_backup(schedule_id: int) -> None:
|
|
|
62
62
|
|
|
63
63
|
logger.info(f"SCHEDULER: Found repository '{repository.name}'")
|
|
64
64
|
|
|
65
|
-
# Update schedule last run
|
|
66
|
-
logger.info("SCHEDULER: Updating schedule last run time")
|
|
67
65
|
schedule.last_run = now_utc()
|
|
66
|
+
|
|
67
|
+
scheduler_svc = get_scheduler_service_singleton()
|
|
68
|
+
job_id = f"backup_schedule_{schedule_id}"
|
|
69
|
+
apscheduler_job = scheduler_svc.scheduler.get_job(job_id)
|
|
70
|
+
if apscheduler_job and apscheduler_job.next_run_time:
|
|
71
|
+
schedule.next_run = ensure_utc(apscheduler_job.next_run_time)
|
|
72
|
+
logger.info(
|
|
73
|
+
f"SCHEDULER: Updated next_run for schedule {schedule_id}: {schedule.next_run}"
|
|
74
|
+
)
|
|
75
|
+
|
|
68
76
|
await db.commit()
|
|
69
77
|
|
|
70
78
|
try:
|
|
@@ -93,7 +101,7 @@ async def execute_scheduled_backup(schedule_id: int) -> None:
|
|
|
93
101
|
)
|
|
94
102
|
|
|
95
103
|
if isinstance(backup_result, JobCreationResult):
|
|
96
|
-
job_id = backup_result.job_id
|
|
104
|
+
job_id = str(backup_result.job_id)
|
|
97
105
|
logger.info(
|
|
98
106
|
f"SCHEDULER: Created scheduled backup job {job_id} via JobService"
|
|
99
107
|
)
|
|
@@ -194,12 +202,13 @@ class SchedulerService:
|
|
|
194
202
|
result = await db.execute(select(Schedule).where(Schedule.enabled))
|
|
195
203
|
schedules = result.scalars().all()
|
|
196
204
|
for schedule in schedules:
|
|
197
|
-
await self._add_schedule_internal(
|
|
205
|
+
job_id = await self._add_schedule_internal(
|
|
198
206
|
schedule.id,
|
|
199
207
|
schedule.name,
|
|
200
208
|
schedule.cron_expression,
|
|
201
209
|
persist=False,
|
|
202
210
|
)
|
|
211
|
+
await self._update_next_run_time(schedule.id, job_id)
|
|
203
212
|
except Exception as e:
|
|
204
213
|
logger.error(f"Error reloading schedules: {str(e)}")
|
|
205
214
|
|
|
@@ -273,9 +282,10 @@ class SchedulerService:
|
|
|
273
282
|
)
|
|
274
283
|
schedule = result.scalar_one_or_none()
|
|
275
284
|
if schedule:
|
|
276
|
-
schedule.next_run = job.next_run_time
|
|
285
|
+
schedule.next_run = ensure_utc(job.next_run_time)
|
|
286
|
+
await db.commit()
|
|
277
287
|
logger.info(
|
|
278
|
-
f"Updated next run time for schedule {schedule_id}: {
|
|
288
|
+
f"Updated next run time for schedule {schedule_id}: {schedule.next_run}"
|
|
279
289
|
)
|
|
280
290
|
except Exception as e:
|
|
281
291
|
logger.error(f"Failed to update next run time: {str(e)}")
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
<!-- SFTP Fields
|
|
1
|
+
<!-- SFTP Fields -->
|
|
2
2
|
<div id="sftp-fields" class="space-y-4">
|
|
3
3
|
<div>
|
|
4
4
|
<label class="block text-sm font-medium text-gray-900 dark:text-gray-100">Host</label>
|
|
5
5
|
<input type="text"
|
|
6
6
|
name="provider_config[host]"
|
|
7
|
-
value="{{ config.host or '' }}"
|
|
7
|
+
{% if config %}value="{{ config.host or '' }}"{% endif %}
|
|
8
8
|
placeholder="sftp.example.com"
|
|
9
9
|
class="input-modern mt-1">
|
|
10
10
|
</div>
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<label class="block text-sm font-medium text-gray-900 dark:text-gray-100">Port</label>
|
|
13
13
|
<input type="number"
|
|
14
14
|
name="provider_config[port]"
|
|
15
|
-
value="{{ config.port or 22 }}"
|
|
15
|
+
value="{{ config.port or 22 if config else 22 }}"
|
|
16
16
|
placeholder="22"
|
|
17
17
|
class="input-modern mt-1">
|
|
18
18
|
</div>
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
</label>
|
|
23
23
|
<input type="text"
|
|
24
24
|
name="provider_config[username]"
|
|
25
|
-
value="{{ config.username or '' }}"
|
|
25
|
+
{% if config %}value="{{ config.username or '' }}"{% endif %}
|
|
26
26
|
placeholder="backup-user"
|
|
27
27
|
class="input-modern mt-1">
|
|
28
28
|
</div>
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
</label>
|
|
33
33
|
<input type="text"
|
|
34
34
|
name="provider_config[remote_path]"
|
|
35
|
-
value="{{ config.remote_path or '' }}"
|
|
35
|
+
{% if config %}value="{{ config.remote_path or '' }}"{% endif %}
|
|
36
36
|
placeholder="/backups"
|
|
37
37
|
class="input-modern mt-1">
|
|
38
38
|
</div>
|
|
@@ -42,8 +42,7 @@
|
|
|
42
42
|
</label>
|
|
43
43
|
<input type="password"
|
|
44
44
|
name="provider_config[password]"
|
|
45
|
-
value="{{ config.password or '' }}"
|
|
46
|
-
placeholder="Current value will be used if left empty"
|
|
45
|
+
{% if config %}value="{{ config.password or '' }}" placeholder="Current value will be used if left empty"{% else %}placeholder="Leave empty if using private key"{% endif %}
|
|
47
46
|
class="input-modern mt-1">
|
|
48
47
|
</div>
|
|
49
48
|
<div>
|
|
@@ -53,21 +52,23 @@
|
|
|
53
52
|
<textarea name="provider_config[private_key]"
|
|
54
53
|
rows="6"
|
|
55
54
|
class="input-modern mt-1"
|
|
56
|
-
placeholder="Current value will be used if left empty">{{ config.private_key or '' }}</textarea>
|
|
55
|
+
placeholder="{% if config %}Current value will be used if left empty{% else %}-----BEGIN OPENSSH PRIVATE KEY----- ... -----END OPENSSH PRIVATE KEY-----{% endif %}">{{ config.private_key or '' if config else '' }}</textarea>
|
|
56
|
+
{% if config %}
|
|
57
57
|
<p class="mt-1 text-sm text-gray-600 dark:text-gray-400">
|
|
58
58
|
Current private key will be used if left empty.
|
|
59
59
|
</p>
|
|
60
|
+
{% endif %}
|
|
60
61
|
</div>
|
|
61
62
|
<div>
|
|
62
63
|
<label class="block text-sm font-medium text-gray-900 dark:text-gray-100">
|
|
63
64
|
Host Key Checking
|
|
64
65
|
</label>
|
|
65
66
|
<select name="provider_config[host_key_checking]" class="select-modern mt-1">
|
|
66
|
-
<option value="true" {% if config.host_key_checking %}selected{% endif %}>
|
|
67
|
+
<option value="true" {% if config and config.host_key_checking %}selected{% endif %}>
|
|
67
68
|
Enabled (Recommended)
|
|
68
69
|
</option>
|
|
69
70
|
<option value="false"
|
|
70
|
-
{% if not config.host_key_checking %}selected{% endif %}>
|
|
71
|
+
{% if config and not config.host_key_checking %}selected{% endif %}>
|
|
71
72
|
Disabled
|
|
72
73
|
</option>
|
|
73
74
|
</select>
|
|
@@ -78,7 +79,7 @@
|
|
|
78
79
|
</label>
|
|
79
80
|
<input type="text"
|
|
80
81
|
name="path_prefix"
|
|
81
|
-
value="{{ config.path_prefix or '' }}"
|
|
82
|
+
{% if config %}value="{{ config.path_prefix or '' }}"{% endif %}
|
|
82
83
|
placeholder="backups/borgitory"
|
|
83
84
|
class="input-modern mt-1">
|
|
84
85
|
</div>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- SMB Fields
|
|
1
|
+
<!-- SMB Fields -->
|
|
2
2
|
<div id="smb-fields" class="space-y-4">
|
|
3
3
|
<div>
|
|
4
4
|
<label class="block text-sm font-medium text-gray-900 dark:text-gray-100">
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
</label>
|
|
7
7
|
<input type="text"
|
|
8
8
|
name="provider_config[host]"
|
|
9
|
-
value="{{ config.host or '' }}"
|
|
9
|
+
{% if config %}value="{{ config.host or '' }}"{% endif %}
|
|
10
10
|
placeholder="server.example.com"
|
|
11
11
|
class="input-modern mt-1">
|
|
12
12
|
</div>
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
</label>
|
|
17
17
|
<input type="text"
|
|
18
18
|
name="provider_config[share_name]"
|
|
19
|
-
value="{{ config.share_name or '' }}"
|
|
19
|
+
{% if config %}value="{{ config.share_name or '' }}"{% endif %}
|
|
20
20
|
placeholder="backup-share"
|
|
21
21
|
class="input-modern mt-1">
|
|
22
22
|
</div>
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
</label>
|
|
27
27
|
<input type="text"
|
|
28
28
|
name="provider_config[user]"
|
|
29
|
-
value="{{ config.user or 'guest' }}"
|
|
29
|
+
value="{{ config.user or 'guest' if config else 'guest' }}"
|
|
30
30
|
placeholder="guest"
|
|
31
31
|
class="input-modern mt-1">
|
|
32
32
|
</div>
|
|
@@ -36,15 +36,14 @@
|
|
|
36
36
|
</label>
|
|
37
37
|
<input type="password"
|
|
38
38
|
name="provider_config[pass]"
|
|
39
|
-
value="{{ config.pass or '' }}"
|
|
40
|
-
placeholder="Current value will be used if left empty"
|
|
39
|
+
{% if config %}value="{{ config.pass or '' }}" placeholder="Current value will be used if left empty"{% endif %}
|
|
41
40
|
class="input-modern mt-1">
|
|
42
41
|
</div>
|
|
43
42
|
<div>
|
|
44
43
|
<label class="block text-sm font-medium text-gray-900 dark:text-gray-100">Port</label>
|
|
45
44
|
<input type="number"
|
|
46
45
|
name="provider_config[port]"
|
|
47
|
-
value="{{ config.port or 445 }}"
|
|
46
|
+
value="{{ config.port or 445 if config else 445 }}"
|
|
48
47
|
placeholder="445"
|
|
49
48
|
min="1"
|
|
50
49
|
max="65535"
|
|
@@ -56,13 +55,13 @@
|
|
|
56
55
|
</label>
|
|
57
56
|
<input type="text"
|
|
58
57
|
name="provider_config[domain]"
|
|
59
|
-
value="{{ config.domain or 'WORKGROUP' }}"
|
|
58
|
+
value="{{ config.domain or 'WORKGROUP' if config else 'WORKGROUP' }}"
|
|
60
59
|
placeholder="WORKGROUP"
|
|
61
60
|
class="input-modern mt-1">
|
|
62
61
|
</div>
|
|
63
62
|
<!-- Advanced Options -->
|
|
64
63
|
<details class="mt-4"
|
|
65
|
-
{% if config.spn or config.use_kerberos or config.kerberos_ccache or (config.idle_timeout and config.idle_timeout != '1m0s') or config.hide_special_share == false or config.case_insensitive == false %}open{% endif %}>
|
|
64
|
+
{% if config and (config.spn or config.use_kerberos or config.kerberos_ccache or (config.idle_timeout and config.idle_timeout != '1m0s') or config.hide_special_share == false or config.case_insensitive == false) %}open{% endif %}>
|
|
66
65
|
<summary class="cursor-pointer text-sm font-medium text-gray-700 dark:text-gray-300 hover:text-gray-900 dark:hover:text-gray-100">
|
|
67
66
|
Advanced Options
|
|
68
67
|
</summary>
|
|
@@ -73,7 +72,7 @@
|
|
|
73
72
|
</label>
|
|
74
73
|
<input type="text"
|
|
75
74
|
name="provider_config[spn]"
|
|
76
|
-
value="{{ config.spn or '' }}"
|
|
75
|
+
{% if config %}value="{{ config.spn or '' }}"{% endif %}
|
|
77
76
|
placeholder="cifs/remotehost:1020"
|
|
78
77
|
class="input-modern mt-1">
|
|
79
78
|
<p class="text-xs text-gray-500 dark:text-gray-400 mt-1">
|
|
@@ -84,7 +83,7 @@
|
|
|
84
83
|
<input type="checkbox"
|
|
85
84
|
name="provider_config[use_kerberos]"
|
|
86
85
|
value="true"
|
|
87
|
-
{% if config.use_kerberos %}checked{% endif %}
|
|
86
|
+
{% if config and config.use_kerberos %}checked{% endif %}
|
|
88
87
|
class="checkbox-modern">
|
|
89
88
|
<label class="ml-2 text-sm text-gray-900 dark:text-gray-100">
|
|
90
89
|
Use Kerberos Authentication
|
|
@@ -96,7 +95,7 @@
|
|
|
96
95
|
</label>
|
|
97
96
|
<input type="text"
|
|
98
97
|
name="provider_config[kerberos_ccache]"
|
|
99
|
-
value="{{ config.kerberos_ccache or '' }}"
|
|
98
|
+
{% if config %}value="{{ config.kerberos_ccache or '' }}"{% endif %}
|
|
100
99
|
placeholder="/path/to/ccache or FILE:/path/to/ccache"
|
|
101
100
|
class="input-modern mt-1">
|
|
102
101
|
<p class="text-xs text-gray-500 dark:text-gray-400 mt-1">
|
|
@@ -109,7 +108,7 @@
|
|
|
109
108
|
</label>
|
|
110
109
|
<input type="text"
|
|
111
110
|
name="provider_config[idle_timeout]"
|
|
112
|
-
value="{{ config.idle_timeout or '1m0s' }}"
|
|
111
|
+
value="{{ config.idle_timeout or '1m0s' if config else '1m0s' }}"
|
|
113
112
|
placeholder="1m0s"
|
|
114
113
|
class="input-modern mt-1">
|
|
115
114
|
<p class="text-xs text-gray-500 dark:text-gray-400 mt-1">
|
|
@@ -120,7 +119,7 @@
|
|
|
120
119
|
<input type="checkbox"
|
|
121
120
|
name="provider_config[hide_special_share]"
|
|
122
121
|
value="true"
|
|
123
|
-
{% if config.hide_special_share != false %}checked{% endif %}
|
|
122
|
+
{% if not config or config.hide_special_share != false %}checked{% endif %}
|
|
124
123
|
class="checkbox-modern">
|
|
125
124
|
<label class="ml-2 text-sm text-gray-900 dark:text-gray-100">
|
|
126
125
|
Hide Special Shares (print$, etc.)
|
|
@@ -130,7 +129,7 @@
|
|
|
130
129
|
<input type="checkbox"
|
|
131
130
|
name="provider_config[case_insensitive]"
|
|
132
131
|
value="true"
|
|
133
|
-
{% if config.case_insensitive != false %}checked{% endif %}
|
|
132
|
+
{% if not config or config.case_insensitive != false %}checked{% endif %}
|
|
134
133
|
class="checkbox-modern">
|
|
135
134
|
<label class="ml-2 text-sm text-gray-900 dark:text-gray-100">Case Insensitive</label>
|
|
136
135
|
<p class="text-xs text-gray-500 dark:text-gray-400 mt-1">
|
|
@@ -145,7 +144,7 @@
|
|
|
145
144
|
</label>
|
|
146
145
|
<input type="text"
|
|
147
146
|
name="path_prefix"
|
|
148
|
-
value="{{ config.path_prefix or '' }}"
|
|
147
|
+
{% if config %}value="{{ config.path_prefix or '' }}"{% endif %}
|
|
149
148
|
placeholder="backups/borgitory"
|
|
150
149
|
class="input-modern mt-1">
|
|
151
150
|
</div>
|
|
@@ -99,8 +99,9 @@ class TestCloudSyncAPIHTMX:
|
|
|
99
99
|
|
|
100
100
|
response = await async_client.post("/api/cloud-sync/", data=form_data)
|
|
101
101
|
|
|
102
|
-
#
|
|
103
|
-
assert response.status_code ==
|
|
102
|
+
# Returns 200 so HTMX can swap the error notification HTML into the DOM
|
|
103
|
+
assert response.status_code == 200
|
|
104
|
+
assert "text/html" in response.headers["content-type"]
|
|
104
105
|
|
|
105
106
|
async def test_create_config_service_error_html(
|
|
106
107
|
self, async_client: AsyncClient
|
|
@@ -134,7 +135,8 @@ class TestCloudSyncAPIHTMX:
|
|
|
134
135
|
|
|
135
136
|
response = await async_client.post("/api/cloud-sync/", data=form_data)
|
|
136
137
|
|
|
137
|
-
|
|
138
|
+
# Returns 200 so HTMX can swap the error notification HTML into the DOM
|
|
139
|
+
assert response.status_code == 200
|
|
138
140
|
assert "text/html" in response.headers["content-type"]
|
|
139
141
|
|
|
140
142
|
async def test_get_configs_html_empty(self, async_client: AsyncClient) -> None:
|
|
@@ -167,6 +167,7 @@ class TestHookExecutionService:
|
|
|
167
167
|
"repository_id": "test-repo-id",
|
|
168
168
|
"task_index": "2",
|
|
169
169
|
"job_type": "scheduled",
|
|
170
|
+
"job_status": "running",
|
|
170
171
|
}
|
|
171
172
|
await service.execute_hooks([hook], "pre", uuid.uuid4(), context)
|
|
172
173
|
|
|
@@ -176,6 +177,7 @@ class TestHookExecutionService:
|
|
|
176
177
|
assert env["BORGITORY_REPOSITORY_ID"] == "test-repo-id"
|
|
177
178
|
assert env["BORGITORY_TASK_INDEX"] == "2"
|
|
178
179
|
assert env["BORGITORY_JOB_TYPE"] == "scheduled"
|
|
180
|
+
assert env["BORGITORY_JOB_STATUS"] == "running"
|
|
179
181
|
|
|
180
182
|
async def test_execute_failed_hook(self) -> None:
|
|
181
183
|
"""Test executing a failed hook."""
|
|
@@ -338,3 +338,26 @@ class TestJobManagerHookExecution:
|
|
|
338
338
|
assert context["repository_id"] == "42"
|
|
339
339
|
assert context["task_index"] == "3"
|
|
340
340
|
assert context["job_type"] == "scheduled"
|
|
341
|
+
assert context["job_status"] == "running"
|
|
342
|
+
|
|
343
|
+
async def test_execute_hook_task_context_reflects_job_status(self) -> None:
|
|
344
|
+
"""Test that context job_status reflects the actual job status enum value."""
|
|
345
|
+
self.mock_hook_service.execute_hooks_mock.return_value = HookExecutionSummary(
|
|
346
|
+
results=[],
|
|
347
|
+
all_successful=True,
|
|
348
|
+
critical_failure=False,
|
|
349
|
+
failed_critical_hook_name=None,
|
|
350
|
+
)
|
|
351
|
+
|
|
352
|
+
hooks_json = '[{"name": "post hook", "command": "echo status"}]'
|
|
353
|
+
hook_task = self.create_hook_task("post", hooks_json)
|
|
354
|
+
job = self.create_test_job([hook_task])
|
|
355
|
+
job.status = JobStatusEnum.FAILED
|
|
356
|
+
|
|
357
|
+
await self.job_manager.hook_executor.execute_hook_task(
|
|
358
|
+
job, hook_task, 0, True
|
|
359
|
+
)
|
|
360
|
+
|
|
361
|
+
call_args = self.mock_hook_service.execute_hooks_mock.call_args
|
|
362
|
+
context = call_args.kwargs["context"]
|
|
363
|
+
assert context["job_status"] == "failed"
|