Skip to content

Object TTL#380

Merged
bevzzz merged 7 commits intomainfrom
feat/object-ttl
Dec 30, 2025
Merged

Object TTL#380
bevzzz merged 7 commits intomainfrom
feat/object-ttl

Conversation

@bevzzz
Copy link
Collaborator

@bevzzz bevzzz commented Dec 29, 2025

This PR adds support for Object TTL configuration in collections.

@bevzzz bevzzz requested a review from a team as a code owner December 29, 2025 20:05
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 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

enabled?: boolean;
deleteOn?: string;
deleteOnCreatedTime?: boolean;
deleteOnUpdateTime?: boolean;
Copy link
Collaborator

Choose a reason for hiding this comment

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

This could be confusing as you can only choose one of these options. Eg you either delete on a property OR on creation time OR on update time. That's why the other clients have the factory methods to select one of these with different options (defaultTTLSeconds is required for creation time + update time but not property)

};
},
objectTTL: (options?: {
enabled?: boolean;
Copy link
Collaborator

Choose a reason for hiding this comment

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

I also would not add enabled as an option here. If you set TTL for creation it is enabled

@bevzzz
Copy link
Collaborator Author

bevzzz commented Dec 30, 2025

collections/journey.test.ts integration test is failing due to current maintenance and testing in WCD dev clusters

@bevzzz bevzzz merged commit 8c3d8d0 into main Dec 30, 2025
6 of 18 checks passed
@bevzzz bevzzz deleted the feat/object-ttl branch December 30, 2025 11:47
@tsmith023 tsmith023 restored the feat/object-ttl branch January 26, 2026 10:30
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.

2 participants