Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
Description
The return type of this method should really be `Instant`, but that would be a breaking change.
Instead, we can deprecate the `expiry()` method and add an `expiryTime()` method that returns an Instant.
Attachments
Issue Links
- mentioned in
-
Page Loading...
Activity
Field | Original Value | New Value |
---|---|---|
Status | New [ 10003 ] | Open [ 1 ] |
Fix Version/s | 3.0.4 [ 17001 ] |
Rank | Ranked higher |
Rank | Ranked higher |
Rank | Ranked higher |
Rank | Ranked higher |
Rank | Ranked higher |
Sprint | SDK32: QueryCollections [ 1104 ] |
Rank | Ranked lower |
Rank | Ranked higher |
Fix Version/s | 3.0.5 [ 17000 ] | |
Fix Version/s | 3.0.4 [ 17001 ] |
Rank | Ranked higher |
Rank | Ranked lower |
Rank | Ranked higher |
Rank | Ranked lower |
Sprint | SDK32: QueryCollections [ 1104 ] | SDK-NET1 [ 890 ] |
Sprint | SDK-NET1 [ 890 ] | SDK32: QueryCollections [ 1104 ] |
Sprint | SDK32: QueryCollections [ 1104 ] |
Rank | Ranked higher |
Fix Version/s | 3.1.0 [ 16771 ] | |
Fix Version/s | 3.0.5 [ 17000 ] |
Sprint | SDK38: SearchFeat/Txns/Docs 2 [ 1213 ] |
Rank | Ranked lower |
Fix Version/s | 3.0.6 [ 17108 ] | |
Fix Version/s | 3.1.0 [ 16771 ] |
Sprint | SDK38: SearchFeat/Txns/Docs 2 [ 1213 ] |
Rank | Ranked higher |
Fix Version/s | 3.1.0 [ 16771 ] | |
Fix Version/s | 3.0.6 [ 17108 ] |
Remote Link | This issue links to "Page (Couchbase, Inc. Wiki)" [ 20921 ] |
Epic Link | CBD-3537 [ 134745 ] | PYCBC-1072 [ 144811 ] |
Rank | Ranked higher |
Fix Version/s | 3.0.7core [ 17228 ] | |
Fix Version/s | 3.1.0 [ 16771 ] |
Rank | Ranked higher |
Assignee | Ellis Breen [ ellis.breen ] | Richard Eilbert [ JIRAUSER25224 ] |
Fix Version/s | .backlog3.x [ 17256 ] | |
Fix Version/s | 3.0.7core [ 17228 ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Resolution | Fixed [ 1 ] | |
Status | In Progress [ 3 ] | Resolved [ 5 ] |
Fix Version/s | 3.0.9 [ 17292 ] | |
Fix Version/s | .backlog3.x [ 17256 ] |
Epic Link | PYCBC-1072 [ 144811 ] | CBD-3537 [ 134745 ] |
Workflow | Couchbase SDK Workflow [ 176388 ] | Couchbase SDK Workflow with Review [ 257465 ] |
Added a 'deprecated' decorator in couchbase_core/supportability.py, akin to the existing @uncommitted, and decorated GetResult.expiry with it.
@deprecated adds "This is a deprecated API, use expiryTime instead." to the GetResult.expiry docstring and also issues a warning to the same effect.
Added new property 'expiryTime' which returns an "instant" i.e. unix timestamp.
Modified uses of the expiry property to use expiryTime in tests_v3/cases/collection_t.py, and added a test that the expiry property still works as before.
Generated the Python API docs and verified that GetResult.expiry is described as deprecated.