[GODRIVER-2681] Replace "primitive.CompareTimestamp" with methods "Before", "After", and "Equal" Created: 10/Dec/22 Updated: 28/Oct/23 Resolved: 17/Feb/23 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | BSON |
| Affects Version/s: | None |
| Fix Version/s: | 1.12.0 |
| Type: | Improvement | Priority: | Unknown |
| Reporter: | Matt Dale | Assignee: | Matt Dale |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||
| Epic Link: | Go Driver 2.0 Prep | ||||||||||||||||||||||||
| Quarter: | FY24Q1 | ||||||||||||||||||||||||
| Documentation Changes: | Not Needed | ||||||||||||||||||||||||
| Documentation Changes Summary: | 1. What would you like to communicate to the user about this feature? |
||||||||||||||||||||||||
| Description |
|
The primitive.CompareTimestamp function is not an idiomatic API. Replace it with Timestamp methods Before, After, and Compare (inspired by Go's time.Time API). Deprecate primitive.CompareTimestamp and suggest using the new API. Definition of done:
|
| Comments |
| Comment by Githook User [ 17/Feb/23 ] |
|
Author: {'name': 'Matt Dale', 'email': '9760375+matthewdale@users.noreply.github.com', 'username': 'matthewdale'}Message: Co-authored-by: Preston Vasquez <prestonvasquez@icloud.com> |
| Comment by Matt Dale [ 14/Feb/23 ] |