-
Notifications
You must be signed in to change notification settings - Fork 128
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
Bug or breaking change? Model class must now implement .primary_key
#166
Comments
Just saw this, made this PR: #168 |
Just hit this myself. In my book, this is either a bug requiring this fix, or a breaking change requiring a major version bump. |
Hi folks, initially this was an intentional breaking change in order to make sure But @ghiculescu preserves the |
Thanks for the quick fix, folks.
@nvasilevski just to confirm, are you saying you forgot to bump the major version, or are you saying breaking changes in a minor version bump is to be expected from globalid? I don't mean to pass judgement, I just need to understand the versioning scheme of one of my dependencies. Basically: can I continue using a pessimistic operator, or should I be pinning globalid? |
So since release management is a core team's responsibility I couldn't tell whether a breaking change was supposed to be released under a major version. But I wanted to clarify that it was a deliberate decision to require |
@rafaelfranca would you mind speaking to the versioning strategy, here? |
There isn't any breaking change. |
But if there was a intentional breaking change I'd be bumping the major version, not the minor. |
I think this means that not bumping the major version was a mistake. Which is just fine, mistakes happen. But then:
This makes me doubt. Do you not look at what happened as a breaking change? Haha, I'm a smidge confused now. @rafaelfranca, to clarify, v1.2.0 made |
I noticed a recent change now requires any class that has
include GlobalID::Identification
must now also respond to.primary_key
. I think it came from #163I'm not sure if GlobalId is intended to be used on only Active Record / Active Model, but that's what I've been doing. The readme says:
If model in this sense means generically "a domain model" than I think this is a bug or breaking change. And if not, the readme needs to be updated to say both
.find
and.primary_key
.The text was updated successfully, but these errors were encountered: