-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document and check resource comparability #6272
Conversation
Ensure backwards compatibility by adding a compile-time check that the Resource remains comparable. Document the shortcomings of direct comparison of a Resource.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6272 +/- ##
=====================================
Coverage 81.8% 81.8%
=====================================
Files 283 283
Lines 24892 24892
=====================================
Hits 20379 20379
Misses 4109 4109
Partials 404 404 |
Model it after time.Time
How about making a changelog entry for this so that we give more chance for users to proactively change their codebases? |
What do you suggest? |
Something like: Document the pitfalls of using Resource as a comparable type. Favor its Equal and Equivalent methods instead. |
Updated PTAL. |
Ensure backwards compatibility by adding a compile-time check that the Resource remains comparable.
Document the shortcomings of direct comparison of a Resource.