Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions weaviate/backup/async_.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class _BackupAsync(_BackupExecutor[ConnectionAsync]):
backend: BackupStorage,
include_collections: Union[List[str], str, None] = None,
exclude_collections: Union[List[str], str, None] = None,
base_backup_id: Optional[str] = None,
wait_for_completion: bool = False,
config: Optional[BackupConfigCreate] = None,
backup_location: Optional[BackupLocationType] = None,
Expand Down
2 changes: 2 additions & 0 deletions weaviate/backup/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def create(
backend: BackupStorage,
include_collections: Union[List[str], str, None] = None,
exclude_collections: Union[List[str], str, None] = None,
base_backup_id: Optional[str] = None,
Copy link

Copilot AI Jan 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The docstring for the create method is missing documentation for the new base_backup_id parameter. The docstring should include a description of this parameter in the Args section to explain its purpose for incremental backups.

Copilot uses AI. Check for mistakes.
Copy link

Copilot AI Jan 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new base_backup_id parameter lacks test coverage. Since the test file integration/test_backup_v4.py contains comprehensive backup tests, there should be at least one test case that verifies incremental backup functionality using this new parameter.

Copilot uses AI. Check for mistakes.
Copy link

Copilot AI Jan 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a naming inconsistency between the parameter name base_backup_id and the payload key incremental_backup_base_id. Consider renaming the parameter to incremental_backup_base_id for better clarity and consistency with the API payload, or if brevity is preferred, ensure this mapping is well-documented.

Copilot uses AI. Check for mistakes.
wait_for_completion: bool = False,
config: Optional[BackupConfigCreate] = None,
backup_location: Optional[BackupLocationType] = None,
Expand Down Expand Up @@ -89,6 +90,7 @@ def create(
"id": backup_id,
"include": include_collections,
"exclude": exclude_collections,
"incremental_backup_base_id": base_backup_id,
}

if config is not None:
Expand Down
1 change: 1 addition & 0 deletions weaviate/backup/sync.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class _Backup(_BackupExecutor[ConnectionSync]):
backend: BackupStorage,
include_collections: Union[List[str], str, None] = None,
exclude_collections: Union[List[str], str, None] = None,
base_backup_id: Optional[str] = None,
wait_for_completion: bool = False,
config: Optional[BackupConfigCreate] = None,
backup_location: Optional[BackupLocationType] = None,
Expand Down
Loading