borgitory 2.7.0__tar.gz → 2.7.1__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.1}/PKG-INFO +1 -1
- {borgitory-2.7.0 → borgitory-2.7.1}/pyproject.toml +3 -3
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/jobs/task_executors/hook_task_executor.py +1 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/scheduling/scheduler_service.py +17 -7
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/hooks/test_hook_execution_service.py +2 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/hooks/test_job_manager_critical_hooks.py +23 -0
- borgitory-2.7.1/tests/schedules/test_next_run_update.py +223 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/.gitignore +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/LICENSE +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/README.md +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/__init__.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/alembic/README +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/alembic/env.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/alembic/script.py.mako +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/alembic/versions/02b7b29d38c0_add_encryption_type_and_keyfile_content_.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/alembic/versions/18b9095bc772_add_patterns_column_to_schedules_table.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/alembic/versions/1d47e9231dd0_rename_cleanup_to_prune.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/alembic/versions/2628b151e709_make_passphrase_optional.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/alembic/versions/3335c0eac68e_create_initial_schema.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/alembic/versions/5e6cc17d11a5_user_installed_packages.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/alembic/versions/78c9fff46e06_add_compact_after_field_to_pruneconfig.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/alembic/versions/9b5d5f5e8cbc_add_pre_post_job_hooks_to_schedule.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/alembic/versions/9e4c8456ea53_add_cache_dir_field_to_repositories_.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/alembic/versions/9f06f8c8088d_initial_empty_state.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/alembic/versions/d294fdc9a5e7_fix_uuid_columns_for_sqlite.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/alembic/versions/eb3518e71c73_add_more_prune_settings_to_cleanup_.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/alembic.ini +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/api/__init__.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/api/auth.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/api/backups.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/api/cancel_on_disconnect.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/api/cloud_sync/__init__.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/api/cloud_sync/cloud_sync.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/api/cloud_sync/s3.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/api/debug.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/api/jobs.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/api/notifications.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/api/packages.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/api/prune.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/api/repositories.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/api/repository_check_configs.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/api/repository_stats.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/api/schedules.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/api/shared.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/api/tabs.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/cli.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/config/__init__.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/config/command_runner_config.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/config/job_manager_config.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/config_module.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/constants/__init__.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/constants/retention.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/custom_types.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/dependencies.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/factories/__init__.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/factories/service_factory.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/main.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/models/__init__.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/models/borg_info.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/models/database.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/models/enums.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/models/job_results.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/models/patterns.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/models/repository_dtos.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/models/schemas.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/protocols/__init__.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/protocols/archive_manager_protocol.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/protocols/cloud_protocols.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/protocols/command_executor_protocol.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/protocols/command_protocols.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/protocols/environment_protocol.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/protocols/file_protocols.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/protocols/job_database_manager_protocol.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/protocols/job_event_broadcaster_protocol.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/protocols/job_output_manager_protocol.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/protocols/job_protocols.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/protocols/job_queue_manager_protocol.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/protocols/notification_protocols.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/protocols/path_protocols.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/protocols/repository_protocols.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/protocols/storage_protocols.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/protocols/system_protocol.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/py.typed +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/__init__.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/archives/archive_manager.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/archives/archive_models.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/borg/borg_pattern_validation_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/borg/shell_pattern.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/borg_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/cloud_providers/__init__.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/cloud_providers/cloud_sync_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/cloud_providers/orchestration.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/cloud_providers/registry.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/cloud_providers/registry_factory.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/cloud_providers/storage/__init__.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/cloud_providers/storage/base.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/cloud_providers/storage/s3_provider_config.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/cloud_providers/storage/s3_storage.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/cloud_providers/storage/sftp_storage.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/cloud_providers/storage/smb_storage.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/cloud_providers/types.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/cloud_sync_config_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/command_execution/__init__.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/command_execution/command_executor_factory.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/command_execution/linux_command_executor.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/command_execution/wsl_command_executor.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/configuration_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/cron_description_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/debug_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/encryption_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/files/file_service_factory.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/files/linux_file_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/files/wsl_file_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/hooks/__init__.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/hooks/hook_config.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/hooks/hook_execution_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/jobs/broadcaster/event_type.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/jobs/broadcaster/job_event.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/jobs/broadcaster/job_event_broadcaster.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/jobs/job_database_manager.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/jobs/job_executor.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/jobs/job_manager.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/jobs/job_manager_factory.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/jobs/job_models.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/jobs/job_output_manager.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/jobs/job_queue_manager.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/jobs/job_render_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/jobs/job_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/jobs/job_stream_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/jobs/task_executors/__init__.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/jobs/task_executors/backup_task_executor.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/jobs/task_executors/check_task_executor.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/jobs/task_executors/cloud_sync_task_executor.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/jobs/task_executors/compact_task_executor.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/jobs/task_executors/notification_task_executor.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/jobs/task_executors/prune_task_executor.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/migrations/__init__.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/migrations/migration_factory.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/migrations/migration_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/notifications/__init__.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/notifications/config_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/notifications/providers/__init__.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/notifications/providers/base.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/notifications/providers/discord_provider.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/notifications/providers/pushover_provider.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/notifications/providers/telegram_provider.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/notifications/registry.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/notifications/registry_factory.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/notifications/service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/notifications/types.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/package_manager_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/path/__init__.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/path/path_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/path/path_service_factory.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/path/platform_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/prune_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/rclone_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/rclone_types.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/recovery_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/repositories/repository_check_config_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/repositories/repository_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/repositories/repository_stats_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/scheduling/hook_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/scheduling/pattern_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/scheduling/schedule_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/simple_command_runner.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/startup/package_restoration_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/system/__init__.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/system/system_operations.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/task_definition_builder.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/upcoming_backups_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/volumes/file_system_interface.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/volumes/os_file_system.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/static/css/modern-components.css +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/static/css/tailwind-input.css +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/static/favicon/android-chrome-192x192.png +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/static/favicon/android-chrome-512x512.png +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/static/favicon/apple-touch-icon.png +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/static/favicon/favicon-16x16.png +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/static/favicon/favicon-32x32.png +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/static/favicon/favicon.ico +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/static/favicon/site.webmanifest +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/static/js/app.js +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/static/js/components/jobs.js +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/static/js/components/navigation.js +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/static/vendor/chart.min.js +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/static/vendor/htmx-ext-json-enc.js +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/static/vendor/htmx-ext-sse.js +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/static/vendor/htmx.min.js +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/base.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/index.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/login.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/macros/datetime.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/archives/contents_modal.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/archives/directory_contents.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/archives/directory_loading_state.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/archives/directory_loading_with_trigger.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/archives/empty_state.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/archives/error_message.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/archives/list_content.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/archives/loading_state.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/archives/loading_with_trigger.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/archives/repository_selector.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/archives/tab.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/auth/login_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/auth/login_form_active.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/auth/login_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/auth/register_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/auth/register_form_active.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/auth/register_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/backups/manual_form.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/backups/operations.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/backups/tab.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/cloud_sync/action_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/cloud_sync/action_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/cloud_sync/config_list_content.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/cloud_sync/create_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/cloud_sync/create_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/cloud_sync/form.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/cloud_sync/list.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/cloud_sync/provider_fields.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/cloud_sync/providers/s3/s3_endpoint_field.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/cloud_sync/providers/s3/s3_fields.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/cloud_sync/providers/s3/s3_provider_options.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/cloud_sync/providers/s3/s3_region_options.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/cloud_sync/providers/s3/s3_storage_class_options.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/cloud_sync/providers/sftp/sftp_fields.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/cloud_sync/providers/sftp/sftp_fields_edit.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/cloud_sync/providers/smb/smb_fields.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/cloud_sync/providers/smb/smb_fields_edit.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/cloud_sync/tab.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/cloud_sync/test_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/cloud_sync/test_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/cloud_sync/test_warning.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/cloud_sync/update_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/cloud_sync/update_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/common/error_message.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/debug/debug_panel.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/debug/tab.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/jobs/backup_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/jobs/backup_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/jobs/current_jobs_list.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/jobs/empty_state.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/jobs/error_state.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/jobs/job_details_static.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/jobs/job_details_streaming.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/jobs/job_item.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/jobs/job_stop_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/jobs/job_stop_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/jobs/tab.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/jobs/task_item_static.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/jobs/task_item_streaming.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/navigation.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/navigation_nav.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/notifications/action_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/notifications/action_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/notifications/add_form.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/notifications/config_list_content.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/notifications/create_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/notifications/create_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/notifications/edit_form.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/notifications/list.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/notifications/providers/discord_fields.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/notifications/providers/pushover_fields.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/notifications/providers/telegram_fields.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/notifications/tab.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/notifications/test_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/notifications/test_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/notifications/update_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/notifications/update_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/packages/empty_search.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/packages/error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/packages/install_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/packages/install_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/packages/installed_list.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/packages/package_manager.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/packages/remove_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/packages/remove_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/packages/search_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/packages/search_results.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/packages/selected_packages.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/packages/tab.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/prune/action_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/prune/action_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/prune/config_form.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/prune/config_form_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/prune/config_form_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/prune/config_list_content.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/prune/create_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/prune/create_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/prune/delete_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/prune/delete_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/prune/form.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/prune/policies.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/prune/prune_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/prune/prune_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/prune/retention_fields.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/prune/strategy_fields.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/prune/tab.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/prune/update_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/prune/update_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/repositories/create/form_create.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/repositories/create/form_create_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/repositories/create/form_create_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/repositories/create/form_update_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/repositories/create/form_update_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/repositories/create/passphrase_field.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/repositories/delete_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/repositories/import/encryption_fields.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/repositories/import/form_import.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/repositories/import/form_import_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/repositories/import/form_import_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/repositories/list.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/repositories/list_content.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/repositories/modal/borg_info.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/repositories/modal/break_lock_button.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/repositories/modal/break_lock_button_modal.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/repositories/modal/details_modal.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/repositories/modal/lock_status.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/repositories/tab.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/repository_check/action_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/repository_check/action_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/repository_check/check_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/repository_check/check_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/repository_check/config_list_content.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/repository_check/create_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/repository_check/create_form.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/repository_check/create_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/repository_check/custom_options.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/repository_check/delete_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/repository_check/delete_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/repository_check/dynamic_options.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/repository_check/edit_form.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/repository_check/form.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/repository_check/tab.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/repository_check/update_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/repository_check/update_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/repository_stats/stats_panel.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/schedules/create_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/schedules/create_form.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/schedules/create_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/schedules/cron_description.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/schedules/cron_expression_form.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/schedules/delete_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/schedules/delete_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/schedules/edit_form.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/schedules/hooks/hook_field_modal.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/schedules/hooks/hooks_container.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/schedules/hooks/hooks_edit_content.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/schedules/hooks/hooks_modal.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/schedules/hooks/hooks_save_response.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/schedules/hooks/hooks_validation_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/schedules/list.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/schedules/patterns/pattern_field_modal.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/schedules/patterns/pattern_validation_result.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/schedules/patterns/patterns_container.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/schedules/patterns/patterns_modal.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/schedules/patterns/patterns_save_response.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/schedules/patterns/patterns_validation_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/schedules/patterns/patterns_validation_results.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/schedules/run_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/schedules/schedule_list_content.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/schedules/tab.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/schedules/upcoming.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/schedules/upcoming_backups_content.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/schedules/update_error.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/schedules/update_success.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/shared/notification.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/shared/package_autocomplete.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/shared/path_autocomplete.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/shared/path_autocomplete_dropdown.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/shared/path_autocomplete_loading.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/statistics/empty_state.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/statistics/loading_state.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/statistics/repository_selector.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/templates/partials/statistics/tab.html +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/utils/__init__.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/utils/datetime_utils.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/utils/path_prefix.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/utils/secure_path.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/utils/security.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/utils/template_paths.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/utils/template_responses.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/__init__.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/archives/test_archive_browser_htmx.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/archives/test_archive_manager.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/archives/test_archive_manager_caching.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/auth/test_auth_htmx.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/auth/test_auth_redirect_flow.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/auth/test_main_login_page.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/borg/test_borg_service_core.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/cloud_providers/__init__.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/cloud_providers/test_display_details.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/cloud_providers/test_orchestration.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/cloud_providers/test_provider_validation.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/cloud_providers/test_registry.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/cloud_providers/test_registry_integration.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/cloud_providers/test_s3_provider_config.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/cloud_providers/test_schema_validation.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/cloud_providers/test_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/cloud_providers/test_smb_storage.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/cloud_providers/test_storage.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/cloud_providers/test_types.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/cloud_sync/test_cloud_sync_api.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/cloud_sync/test_s3_api.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/command_execution/test_linux_command_executor.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/command_execution/test_wsl_command_executor.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/conftest.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/factories/__init__.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/factories/test_service_factory.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/fixtures/__init__.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/fixtures/job_fixtures.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/fixtures/registry_fixtures.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/hooks/__init__.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/hooks/test_api_critical_hooks.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/hooks/test_composite_job_critical_failure.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/hooks/test_critical_hook_config.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/hooks/test_critical_hook_execution.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/hooks/test_hook_config.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/hooks/test_notification_messages_hooks.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/hooks/test_task_definition_integration.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/integration/__init__.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/integration/conftest.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/integration/test_app_startup.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/integration/test_basic_endpoints.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/jobs/conftest.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/jobs/test_compact_task_executor.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/jobs/test_database_integration.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/jobs/test_ignore_lock_functionality.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/jobs/test_job_database_manager.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/jobs/test_job_event_broadcaster.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/jobs/test_job_executor.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/jobs/test_job_executor_comprehensive.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/jobs/test_job_manager.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/jobs/test_job_manager_comprehensive.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/jobs/test_job_manager_factory.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/jobs/test_job_manager_stop.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/jobs/test_job_manager_task_execution.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/jobs/test_job_output_manager.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/jobs/test_job_render_service_coverage.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/jobs/test_job_render_service_new_architecture.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/jobs/test_job_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/jobs/test_job_stop_api_simple.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/jobs/test_job_stop_functionality.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/jobs/test_job_stop_integration.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/jobs/test_job_stop_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/jobs/test_job_stream_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/jobs/test_jobs_api_sse.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/jobs/test_sse_multiline_formatting.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/notifications/test_discord_provider.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/notifications/test_notification_config_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/notifications/test_notification_configs_api.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/notifications/test_notification_edit_integration.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/notifications/test_pushover_provider.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/notifications/test_telegram_provider.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/packages/test_package_database_integration.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/packages/test_package_manager_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/packages/test_package_selection_endpoints.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/protocols/__init__.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/protocols/protocol_testing_utils.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/protocols/test_protocol_compliance.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/protocols/test_simple_command_runner_protocol.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/repositories/test_repositories_api.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/repositories/test_repository_check_config_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/repositories/test_repository_check_configs_api.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/repositories/test_repository_management_api.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/repositories/test_repository_management_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/repositories/test_repository_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/repositories/test_repository_stats_html.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/repositories/test_repository_stats_service_unit.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/schedules/test_cron_description_api.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/schedules/test_cron_description_htmx_api.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/schedules/test_manual_run_apscheduler.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/schedules/test_schedule_creation_api.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/schedules/test_schedule_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/schedules/test_schedule_validation_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/schedules/test_scheduler_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/schedules/test_schedules_api.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/schedules/test_schedules_hooks_api.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/schedules/test_schedules_patterns_api.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/schedules/test_validate_patterns_json.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/scheduling/test_hook_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/scheduling/test_pattern_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/services/__init__.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/services/migrations/__init__.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/services/migrations/test_migration_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/services/test_borg_pattern_validation_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/templates/test_current_jobs_template.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/test_backups_api.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/test_basic.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/test_cache_dir_functionality.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/test_cache_dir_normalization.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/test_cron_description_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/test_database_models.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/test_datetime_utils.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/test_debug_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/test_dependencies.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/test_di_testing_infrastructure.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/test_job_manager_proper_di.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/test_jobs_api.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/test_path_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/test_prune_api.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/test_prune_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/test_recovery_service.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/test_repository_archives_navigation.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/test_retention_constants.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/test_secure_path_comprehensive.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/test_simple_command_runner.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/test_streaming_edge_cases.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/test_streaming_fixes.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/test_tabs_api.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/test_task_definition_builder.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/utils/__init__.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/tests/utils/di_testing.py +0 -0
- {borgitory-2.7.0 → borgitory-2.7.1}/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.1
|
|
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
|
|
@@ -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.1"
|
|
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"}
|
|
@@ -114,7 +114,7 @@ line-length = 88
|
|
|
114
114
|
indent-width = 4
|
|
115
115
|
|
|
116
116
|
# Assume Python 3.14+.
|
|
117
|
-
target-version = "2.7.
|
|
117
|
+
target-version = "2.7.1"
|
|
118
118
|
|
|
119
119
|
[tool.ruff.lint]
|
|
120
120
|
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
|
|
@@ -181,7 +181,7 @@ exclude_lines = [
|
|
|
181
181
|
|
|
182
182
|
[tool.mypy]
|
|
183
183
|
# Basic settings
|
|
184
|
-
python_version = "2.7.
|
|
184
|
+
python_version = "2.7.1"
|
|
185
185
|
strict = true
|
|
186
186
|
|
|
187
187
|
# Display options
|
|
@@ -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)}")
|
|
@@ -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"
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
import uuid
|
|
2
|
+
from datetime import UTC, timezone, timedelta
|
|
3
|
+
from unittest.mock import Mock, AsyncMock, MagicMock, patch
|
|
4
|
+
|
|
5
|
+
import pytest
|
|
6
|
+
|
|
7
|
+
from borgitory.models.database import Schedule
|
|
8
|
+
from borgitory.models.job_results import JobCreationResult
|
|
9
|
+
from borgitory.utils.datetime_utils import now_utc
|
|
10
|
+
from borgitory.services.scheduling.scheduler_service import (
|
|
11
|
+
SchedulerService,
|
|
12
|
+
execute_scheduled_backup,
|
|
13
|
+
)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class TestNextRunUpdatedAfterExecution:
|
|
17
|
+
"""execute_scheduled_backup must update next_run so it doesn't go stale."""
|
|
18
|
+
|
|
19
|
+
@pytest.fixture
|
|
20
|
+
def mock_schedule(self) -> Mock:
|
|
21
|
+
schedule = Mock(spec=Schedule)
|
|
22
|
+
schedule.id = 1
|
|
23
|
+
schedule.name = "Test Schedule"
|
|
24
|
+
schedule.repository_id = 10
|
|
25
|
+
schedule.source_path = "/data/backup"
|
|
26
|
+
schedule.cloud_sync_config_id = None
|
|
27
|
+
schedule.prune_config_id = None
|
|
28
|
+
schedule.check_config_id = None
|
|
29
|
+
schedule.notification_config_id = None
|
|
30
|
+
schedule.pre_job_hooks = None
|
|
31
|
+
schedule.post_job_hooks = None
|
|
32
|
+
schedule.patterns = None
|
|
33
|
+
schedule.last_run = None
|
|
34
|
+
schedule.next_run = now_utc() - timedelta(days=4)
|
|
35
|
+
return schedule
|
|
36
|
+
|
|
37
|
+
@pytest.fixture
|
|
38
|
+
def mock_repository(self) -> Mock:
|
|
39
|
+
repo = Mock()
|
|
40
|
+
repo.id = 10
|
|
41
|
+
repo.name = "test_repo"
|
|
42
|
+
return repo
|
|
43
|
+
|
|
44
|
+
def _make_mock_db_session(self, schedule_or_none: Mock | None) -> Mock:
|
|
45
|
+
mock_result = Mock()
|
|
46
|
+
mock_result.scalar_one_or_none.return_value = schedule_or_none
|
|
47
|
+
mock_db = Mock()
|
|
48
|
+
mock_db.execute = AsyncMock(return_value=mock_result)
|
|
49
|
+
mock_db.commit = AsyncMock()
|
|
50
|
+
mock_db.__aenter__ = AsyncMock(return_value=mock_db)
|
|
51
|
+
mock_db.__aexit__ = AsyncMock(return_value=None)
|
|
52
|
+
return mock_db
|
|
53
|
+
|
|
54
|
+
@pytest.mark.asyncio
|
|
55
|
+
async def test_next_run_is_updated_after_backup_execution(
|
|
56
|
+
self,
|
|
57
|
+
mock_schedule: Mock,
|
|
58
|
+
mock_repository: Mock,
|
|
59
|
+
) -> None:
|
|
60
|
+
"""After a scheduled backup executes, next_run must advance past last_run.
|
|
61
|
+
|
|
62
|
+
Currently fails because execute_scheduled_backup only sets last_run
|
|
63
|
+
and never updates next_run from the APScheduler job.
|
|
64
|
+
"""
|
|
65
|
+
mock_schedule.repository = mock_repository
|
|
66
|
+
old_next_run = mock_schedule.next_run
|
|
67
|
+
mock_db = self._make_mock_db_session(mock_schedule)
|
|
68
|
+
|
|
69
|
+
job_id = uuid.uuid4()
|
|
70
|
+
mock_job_service = Mock()
|
|
71
|
+
mock_job_service.create_backup_job = AsyncMock(
|
|
72
|
+
return_value=JobCreationResult(job_id=job_id, status="started")
|
|
73
|
+
)
|
|
74
|
+
|
|
75
|
+
fixed_now = now_utc()
|
|
76
|
+
future_next_run = fixed_now + timedelta(days=1)
|
|
77
|
+
mock_apscheduler_job = Mock()
|
|
78
|
+
mock_apscheduler_job.next_run_time = future_next_run
|
|
79
|
+
|
|
80
|
+
mock_scheduler_svc = Mock()
|
|
81
|
+
mock_scheduler_svc.job_service = mock_job_service
|
|
82
|
+
mock_scheduler_svc.scheduler = Mock()
|
|
83
|
+
mock_scheduler_svc.scheduler.get_job.return_value = mock_apscheduler_job
|
|
84
|
+
|
|
85
|
+
with (
|
|
86
|
+
patch(
|
|
87
|
+
"borgitory.dependencies.get_scheduler_service_singleton",
|
|
88
|
+
return_value=mock_scheduler_svc,
|
|
89
|
+
),
|
|
90
|
+
patch(
|
|
91
|
+
"borgitory.models.database.async_session_maker",
|
|
92
|
+
) as mock_session_maker,
|
|
93
|
+
patch(
|
|
94
|
+
"borgitory.services.scheduling.scheduler_service.now_utc",
|
|
95
|
+
return_value=fixed_now,
|
|
96
|
+
),
|
|
97
|
+
):
|
|
98
|
+
mock_session_maker.return_value = mock_db
|
|
99
|
+
await execute_scheduled_backup(1)
|
|
100
|
+
|
|
101
|
+
assert mock_schedule.last_run == fixed_now, "last_run should be updated"
|
|
102
|
+
assert mock_schedule.next_run != old_next_run, (
|
|
103
|
+
"next_run should have been updated after execution"
|
|
104
|
+
)
|
|
105
|
+
assert mock_schedule.next_run > mock_schedule.last_run, (
|
|
106
|
+
f"next_run ({mock_schedule.next_run}) must be after "
|
|
107
|
+
f"last_run ({mock_schedule.last_run})"
|
|
108
|
+
)
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
class TestReloadSchedulesUpdatesNextRun:
|
|
112
|
+
"""_reload_schedules must refresh stale next_run values in the database."""
|
|
113
|
+
|
|
114
|
+
def setup_method(self) -> None:
|
|
115
|
+
mock_job_manager = Mock()
|
|
116
|
+
mock_job_service = Mock()
|
|
117
|
+
self.scheduler_service = SchedulerService(
|
|
118
|
+
job_manager=mock_job_manager, job_service=mock_job_service
|
|
119
|
+
)
|
|
120
|
+
|
|
121
|
+
@pytest.mark.asyncio
|
|
122
|
+
async def test_reload_schedules_persists_next_run(self) -> None:
|
|
123
|
+
"""On startup, _reload_schedules should update next_run in the database.
|
|
124
|
+
|
|
125
|
+
Currently fails because _reload_schedules passes persist=False,
|
|
126
|
+
which skips _update_next_run_time entirely.
|
|
127
|
+
"""
|
|
128
|
+
mock_schedule = Mock()
|
|
129
|
+
mock_schedule.id = 1
|
|
130
|
+
mock_schedule.name = "Schedule 1"
|
|
131
|
+
mock_schedule.cron_expression = "0 14 1-31 1-12 *"
|
|
132
|
+
|
|
133
|
+
mock_scalars = MagicMock()
|
|
134
|
+
mock_scalars.all.return_value = [mock_schedule]
|
|
135
|
+
mock_result = Mock()
|
|
136
|
+
mock_result.scalars.return_value = mock_scalars
|
|
137
|
+
|
|
138
|
+
mock_db = Mock()
|
|
139
|
+
mock_db.execute = AsyncMock(return_value=mock_result)
|
|
140
|
+
mock_db.__aenter__ = AsyncMock(return_value=mock_db)
|
|
141
|
+
mock_db.__aexit__ = AsyncMock(return_value=None)
|
|
142
|
+
|
|
143
|
+
with (
|
|
144
|
+
patch(
|
|
145
|
+
"borgitory.models.database.async_session_maker"
|
|
146
|
+
) as mock_session_maker,
|
|
147
|
+
patch.object(
|
|
148
|
+
self.scheduler_service,
|
|
149
|
+
"_add_schedule_internal",
|
|
150
|
+
new_callable=AsyncMock,
|
|
151
|
+
) as mock_add,
|
|
152
|
+
patch.object(
|
|
153
|
+
self.scheduler_service,
|
|
154
|
+
"_update_next_run_time",
|
|
155
|
+
new_callable=AsyncMock,
|
|
156
|
+
) as mock_update_next_run,
|
|
157
|
+
):
|
|
158
|
+
mock_session_maker.return_value = mock_db
|
|
159
|
+
mock_add.return_value = "backup_schedule_1"
|
|
160
|
+
|
|
161
|
+
await self.scheduler_service._reload_schedules()
|
|
162
|
+
|
|
163
|
+
mock_add.assert_called_once()
|
|
164
|
+
mock_update_next_run.assert_called_once_with(1, "backup_schedule_1")
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
class TestNextRunTimezoneNormalization:
|
|
168
|
+
"""_update_next_run_time must store UTC-normalized datetimes."""
|
|
169
|
+
|
|
170
|
+
def setup_method(self) -> None:
|
|
171
|
+
mock_job_manager = Mock()
|
|
172
|
+
mock_job_service = Mock()
|
|
173
|
+
self.scheduler_service = SchedulerService(
|
|
174
|
+
job_manager=mock_job_manager, job_service=mock_job_service
|
|
175
|
+
)
|
|
176
|
+
|
|
177
|
+
@pytest.mark.asyncio
|
|
178
|
+
async def test_next_run_stored_as_utc(self) -> None:
|
|
179
|
+
"""next_run must be stored as UTC regardless of APScheduler's timezone."""
|
|
180
|
+
|
|
181
|
+
schedule_id = 1
|
|
182
|
+
job_id = "backup_schedule_1"
|
|
183
|
+
|
|
184
|
+
eastern = timezone(timedelta(hours=-5))
|
|
185
|
+
base_utc = now_utc().replace(microsecond=0) + timedelta(days=1)
|
|
186
|
+
eastern_time = base_utc.astimezone(eastern)
|
|
187
|
+
expected_utc = base_utc
|
|
188
|
+
|
|
189
|
+
mock_job = Mock()
|
|
190
|
+
mock_job.next_run_time = eastern_time
|
|
191
|
+
|
|
192
|
+
mock_schedule = Mock()
|
|
193
|
+
mock_result = Mock()
|
|
194
|
+
mock_result.scalar_one_or_none.return_value = mock_schedule
|
|
195
|
+
|
|
196
|
+
mock_db = Mock()
|
|
197
|
+
mock_db.execute = AsyncMock(return_value=mock_result)
|
|
198
|
+
mock_db.__aenter__ = AsyncMock(return_value=mock_db)
|
|
199
|
+
mock_db.__aexit__ = AsyncMock(return_value=None)
|
|
200
|
+
|
|
201
|
+
with (
|
|
202
|
+
patch.object(
|
|
203
|
+
self.scheduler_service.scheduler, "get_job"
|
|
204
|
+
) as mock_get_job,
|
|
205
|
+
patch(
|
|
206
|
+
"borgitory.models.database.async_session_maker"
|
|
207
|
+
) as mock_session_maker,
|
|
208
|
+
):
|
|
209
|
+
mock_get_job.return_value = mock_job
|
|
210
|
+
mock_session_maker.return_value = mock_db
|
|
211
|
+
|
|
212
|
+
await self.scheduler_service._update_next_run_time(schedule_id, job_id)
|
|
213
|
+
|
|
214
|
+
stored_value = mock_schedule.next_run
|
|
215
|
+
if stored_value.tzinfo is not None:
|
|
216
|
+
stored_utc = stored_value.astimezone(UTC)
|
|
217
|
+
else:
|
|
218
|
+
stored_utc = stored_value.replace(tzinfo=UTC)
|
|
219
|
+
|
|
220
|
+
assert stored_utc == expected_utc, (
|
|
221
|
+
f"Expected UTC time {expected_utc}, but got {stored_value}. "
|
|
222
|
+
f"The value should be normalized to UTC before storage."
|
|
223
|
+
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/protocols/job_database_manager_protocol.py
RENAMED
|
File without changes
|
{borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/protocols/job_event_broadcaster_protocol.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/borg/borg_pattern_validation_service.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/cloud_providers/cloud_sync_service.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/cloud_providers/registry_factory.py
RENAMED
|
File without changes
|
{borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/cloud_providers/storage/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/cloud_providers/storage/s3_storage.py
RENAMED
|
File without changes
|
{borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/cloud_providers/storage/sftp_storage.py
RENAMED
|
File without changes
|
{borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/cloud_providers/storage/smb_storage.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{borgitory-2.7.0 → borgitory-2.7.1}/src/borgitory/services/command_execution/wsl_command_executor.py
RENAMED
|
File without changes
|
|
File without changes
|