Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Go defaults to "0"" so in case we want to return #181
Conversation
EntryStatus back to the caller "Expired" cannot be differentiated. Fixing this by default "_" to 0 and incremental RemoveReasons comment was missing for GetWithInfo api so updated that test: ran all unit test cases
I quite like this PR and problem it solves, but I agree this is definitely a 3.0 decision since it could break a lot of downstream configurations when they upgrade. This should definitely go in the release notes. |
@mxplusb this PR can be open until its ready to go in. I kept it here so that I do not forget about this :) |
Great, thanks! |
So, the error |
@flisky good point, we can remove it. But anyway, this PR is for a next major version, so it will be safe to make a breaking change. |
@jgheewala when you get a chance, can you rebase? It would be good to keep this updated to prep for the next major version. |
May I take over of it, @jgheewala & @mxplusb ? Besides these changes, I also want to return the expired entry even when |
@flisky let's create a separate issue for your idea and discuss it there. This will make discussion much more visible and structured, thanks :) |
@mxplusb was super busy will rebase my changes soon |
@mxplusb done with the conflicts. |
@jgheewala there's a new branch, called |
Codecov Report
@@ Coverage Diff @@
## master #181 +/- ##
==========================================
+ Coverage 86.56% 87.01% +0.45%
==========================================
Files 15 15
Lines 640 647 +7
==========================================
+ Hits 554 563 +9
+ Misses 71 68 -3
- Partials 15 16 +1
Continue to review full report at Codecov.
|
Currently all const for RemovedReason are explicitly set to avoid any breaking changes. For v3 migrating the reasons to iota makes code readability and managing addition of more reasons easier in the future. Test: Validated all test cases run successfully.
EntryStatus back to the caller "Expired" cannot be differentiated.
Fixing this by default "_" to 0 and incremental RemoveReasons
comment was missing for GetWithInfo api so updated that
test: ran all unit test cases