Setting the expiry through the setter instead of the constructor for KV mutations results in an ArgumentError

Description

Utils::Time.extract_expiry_time(expiry) transforms the expiry to the format expected by the wrapper C++ backend. Currently it is called in the constructor, which means that if expiry is set through the setter, it is not being called and the expiry is sent to the backend in the incorrect format resulting in an ArgumentError.
 
To resolve this, extract_expiry_time should be called in the #to_backend method instead

Environment

None

Release Notes Description

None

Activity

Show:
Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Fix versions

Sprint

Story Points

Components

Priority

Instabug

Open Instabug

Sentry

Zendesk Support

Created November 7, 2023 at 4:37 PM
Updated November 8, 2023 at 9:21 AM
Resolved November 8, 2023 at 9:21 AM
Instabug