fix: coerce string timespan in converttimeunit - #41773
Conversation
|
Looks like this PR is not ready to merge, because of the following issues:
Please fix the issues and try again If you have any trouble, please check the PR guidelines |
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
fixes #41761
editroominfo calls mstotimeunit with the retention ttl from usesetting. on some installs that value comes back as a string like 63072000000.0, which made isfinitetimespan fail and the channel settings form crash.
normalize timespan with number() before validation in converttimeunit. added a unit test for the reported string value.