Skip to content

Conversation

@ghiculescu
Copy link
Member

#163 introduced these errors into Rails CI: https://buildkite.com/rails/rails/builds/99322#018a5d7e-f556-4966-a32d-904737c65eeb

They are occuring on classes that include GlobalID::Identification but are not Active Record subclasses.

There is no explicit GlobalID API identified, but as far as I can tell, the only methods you need to implement are self.find, self.where, and id. So this PR ensures that we don't break support for classes that don't implement primary_key.

Copy link
Contributor

@adrianna-chang-shopify adrianna-chang-shopify left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @ghiculescu , this definitely seems like a fairer compromise 🙇‍♀️

cc @rafaelfranca @eileencodes

@eileencodes eileencodes merged commit 626a342 into rails:main Sep 5, 2023
@ghiculescu ghiculescu deleted the handle-no-primary-key branch September 5, 2023 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants