Skip to content

fix(config): write object TTL updates under objectTtlConfig - #2181

Open
Kayvan-Zahiri wants to merge 1 commit into
weaviate:mainfrom
Kayvan-Zahiri:fix/object-ttl-update-schema-key
Open

Kayvan-Zahiri wants to merge 1 commit into
weaviate:mainfrom
Kayvan-Zahiri:fix/object-ttl-update-schema-key

Conversation

@Kayvan-Zahiri

Copy link
Copy Markdown

Fixes #2178

collection.config.update(object_ttl_config=...) wrote objectTTLConfig. Create and the server already use objectTtlConfig, and the merge started from {} so existing TTL fields got dropped.

The update field now matches the server key and merges the stored objectTtlConfig block.

pytest -o addopts= test/collection/test_config.py → 208 passed

Made with Cursor

The update path serialized objectTTLConfig while create and the server
use objectTtlConfig, so existing TTL fields were dropped on merge.

Co-authored-by: Cursor <cursoragent@cursor.com>

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

Copy link
Copy Markdown

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 Infrastructure as Code high 0   medium 0   low 0   info 0 View in Orca
Passed Passed SAST high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Secrets high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Vulnerabilities high 0   medium 0   low 0   info 0 View in Orca

@weaviate-git-bot

Copy link
Copy Markdown

To avoid any confusion in the future about your contribution to Weaviate, we work with a Contributor License Agreement. If you agree, you can simply add a comment to this PR that you agree with the CLA so that we can merge.

beep boop - the Weaviate bot 👋🤖

PS:
Are you already a member of the Weaviate Forum?

This branch has not been deployed

No deployments
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.

Object TTL update sends objectTTLConfig, while the server spells it objectTtlConfig

2 participants