Skip to content

Conversation

@DemetrisChr
Copy link
Contributor

Motivation

Utils::Time.extract_expiry_time(expiry) transforms the expiry to the format expected by the 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.
 

Modification

Call extract_expiry_time in the #to_backend method instead, so it is always called irrespective of whether expiry was set through the setter or the constructor

Results

This was causing tests in FIT's ExpiryTest to fail (the performer was using the setter). Now these tests pass.

@DemetrisChr DemetrisChr requested a review from avsej November 7, 2023 16:47
@cb-sdk-robot
Copy link
Collaborator

Can one of the admins verify this patch?

@DemetrisChr DemetrisChr merged commit cc7140b into couchbase:main Nov 8, 2023
@DemetrisChr DemetrisChr deleted the RCBC-461-expiry-setter branch November 8, 2023 09:21
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.

3 participants