Skip to content

Reject disabling enableTimestampEpoch in CelOptions. - #1529

Merged
copybara-service[bot] merged 1 commit into
mainfrom
test_1035805687
Dec 4, 2026
Merged

copybara-service[bot] merged 1 commit into
mainfrom
test_1035805687

Conversation

@copybara-service

Copy link
Copy Markdown
Contributor

Reject disabling enableTimestampEpoch in CelOptions.

CelOptions.current().enableTimestampEpoch(false) previously disabled
timestamp(int) (int64_to_timestamp) in the type-checker and legacy runtime,
and now throws IllegalArgumentException in favor of subsetting
CelStandardDeclarations and CelStandardFunctions. enableTimestampEpoch()
now always returns true, while enableTimestampEpoch(true) remains a
deprecated no-op so existing callers keep working without migration breakage.

@copybara-service
copybara-service Bot force-pushed the test_1035805687 branch 2 times, most recently from 5a85379 to c55cdca Compare December 4, 2026 01:43
`CelOptions.current().enableTimestampEpoch(false)` previously disabled
`timestamp(int)` (`int64_to_timestamp`) in the type-checker and legacy runtime,
and now throws `IllegalArgumentException` in favor of subsetting
`CelStandardDeclarations` and `CelStandardFunctions`. `enableTimestampEpoch()`
now always returns `true`, while `enableTimestampEpoch(true)` remains a
deprecated no-op so existing callers keep working without migration breakage.

PiperOrigin-RevId: 1035881472
@copybara-service
copybara-service Bot merged commit d8bc713 into main Dec 4, 2026
6 checks passed
@copybara-service
copybara-service Bot deleted the test_1035805687 branch December 4, 2026 01:54
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