test_data icon indicating copy to clipboard operation
test_data copied to clipboard

Rails 7.1 Support Question

Open thewatts opened this issue 2 years ago • 8 comments

:wave: Hey there!

Love all the OSS work that Test Double does - and all of the thought leadership that comes out of the crew.

I was working with a project to update it to 7.1, and the project uses this gem (and it's very helpful!)

I found the issue at hand, specifically - ActiveRecord::InternalMetadata no longer inherits from ActiveRecord::Base: https://github.com/rails/rails/commit/93ddf338a0763c2e6e81e8c9e64cea5cc891a523

Not a difficult fix - but I suppose I'm curious if this project is still something actively used by the Test Double team.

If this isn't the recommended path anymore - totally fine, and I'd love to know what the team prefers. If it is, however, I'm more than happy to submit a PR.

Thanks again for all you do!

thewatts avatar Oct 13 '23 15:10 thewatts

@thewatts any plans to open PR? I have checked and your update works well for our project. Btw. I'm also enjoying using this gem :muscle:.

simi avatar Nov 01 '23 21:11 simi

Hey @thewatts, I've taken over ownership of this gem. Definitely looking into what it will take to have support for Rails 7.1. The changes to ActiveRecord::InternalMetadata are definitely an issue I've run into as well.

If you'd like to make a PR addressing those changes, that would be greatly appreciated. Otherwise, it's something I'm hoping to take care of soon.

radglob avatar Jan 19 '24 22:01 radglob

PR #12 - 3a1b605 fixes this for 7.1 - but probably won't work with earlier versions.

infews avatar Feb 05 '24 23:02 infews

Hey @thewatts, I've taken over ownership of this gem. Definitely looking into what it will take to have support for Rails 7.1. The changes to ActiveRecord::InternalMetadata are definitely an issue I've run into as well.

If you'd like to make a PR addressing those changes, that would be greatly appreciated. Otherwise, it's something I'm hoping to take care of soon.

Hey there!

Sorry - I didn't see the notification about your message!

I don't mind taking my code and submitting a PR :)

Hold tight

thewatts avatar Feb 06 '24 21:02 thewatts

@infews added here: https://github.com/testdouble/test_data/pull/14

thewatts avatar Feb 06 '24 21:02 thewatts