Skip to content

Fix replication_deletion_strategy overriding server default#160

Merged
jfrancoa merged 1 commit intomainfrom
jose/fix-defaults
Mar 12, 2026
Merged

Fix replication_deletion_strategy overriding server default#160
jfrancoa merged 1 commit intomainfrom
jose/fix-defaults

Conversation

@jfrancoa
Copy link
Collaborator

@jfrancoa jfrancoa commented Mar 12, 2026

Summary

  • Changed CreateCollectionDefaults.replication_deletion_strategy from "no_automated_resolution" to None
  • When the user doesn't pass --replication_deletion_strategy, the CLI now defers to the Weaviate server default (time_based_resolution) instead of always sending no_automated_resolution
  • Audited all other create collection parameters — no other parameter has this issue (flags are explicit opt-in, numeric/string defaults are guarded by conditionals or match server defaults)

Test plan

  • All 256 unit tests pass
  • Verify create collection without --replication_deletion_strategy uses server default
  • Verify create collection --replication_deletion_strategy delete_on_conflict still works

🤖 Generated with Claude Code

The CLI hardcoded "no_automated_resolution" as the default for
replication_deletion_strategy, which always overrode the Weaviate
server default. Now defaults to None so the server-side default
(time_based_resolution) is used when the user doesn't explicitly
set the flag.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link

@orca-security-eu orca-security-eu bot left a comment

Choose a reason for hiding this comment

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

Orca Security Scan Summary

Status Check Issues by priority
Passed Passed Secrets high 0   medium 0   low 0   info 0 View in Orca

@jfrancoa jfrancoa changed the base branch from master to main March 12, 2026 14:40
@jfrancoa jfrancoa merged commit 7734fe3 into main Mar 12, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant