Skip to content

Remove the squeel gem#296

Merged
bagedevimo merged 3 commits intomasterfrom
remove-squeel
May 22, 2025
Merged

Remove the squeel gem#296
bagedevimo merged 3 commits intomasterfrom
remove-squeel

Conversation

@bagedevimo
Copy link
Contributor

This gem isn't supported on Rails >= 5, and also fully deprecated.

This was referenced May 9, 2025
Copy link
Contributor Author

bagedevimo commented May 9, 2025

@bagedevimo bagedevimo changed the base branch from formats-and-routes to graphite-base/296 May 9, 2025 20:26
@bagedevimo bagedevimo force-pushed the graphite-base/296 branch from 61b8521 to 4ce2ff0 Compare May 9, 2025 20:26
@bagedevimo bagedevimo changed the base branch from graphite-base/296 to write-out-fixtures-spec-helper May 9, 2025 20:26
@bagedevimo bagedevimo force-pushed the write-out-fixtures-spec-helper branch from 4ce2ff0 to 8a3725d Compare May 9, 2025 21:00
@bagedevimo bagedevimo force-pushed the write-out-fixtures-spec-helper branch from 8a3725d to f4e1438 Compare May 9, 2025 21:40
@bagedevimo bagedevimo force-pushed the remove-squeel branch 2 times, most recently from aaa6a82 to d48919d Compare May 9, 2025 23:17
@bagedevimo bagedevimo force-pushed the write-out-fixtures-spec-helper branch from f4e1438 to 41073c0 Compare May 9, 2025 23:17
@bagedevimo bagedevimo changed the title WIP: Remove the squeel gem Remove the squeel gem May 9, 2025
@bagedevimo bagedevimo marked this pull request as ready for review May 13, 2025 09:11
@coveralls
Copy link

coveralls commented May 14, 2025

Coverage Status

coverage: 37.71% (+0.2%) from 37.513%
when pulling 86ff613 on remove-squeel
into a036d7a on master.

Copy link
Member

@Holmes98 Holmes98 left a comment

Choose a reason for hiding this comment

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

Nice. I've tried to test most of this since our coverage isn't great, just found a few things.

@bagedevimo bagedevimo changed the base branch from write-out-fixtures-spec-helper to graphite-base/296 May 16, 2025 23:08
@bagedevimo bagedevimo force-pushed the graphite-base/296 branch from 41073c0 to f6ff75b Compare May 16, 2025 23:41
@bagedevimo bagedevimo changed the base branch from graphite-base/296 to write-out-fixtures-spec-helper May 16, 2025 23:41
@bagedevimo bagedevimo force-pushed the write-out-fixtures-spec-helper branch 2 times, most recently from 9078bba to b48f347 Compare May 18, 2025 13:08
Base automatically changed from write-out-fixtures-spec-helper to master May 21, 2025 07:04
@bagedevimo bagedevimo force-pushed the remove-squeel branch 2 times, most recently from 20499c8 to b20200c Compare May 22, 2025 07:12
This gem isn't supported on Rails >= 5, and also fully deprecated. I've
replaced all usages of it with the equivalent Rails 4.2 code which isn't
necessarily the most ergonomic nor the most performance, in some cases,
but should be fine for our cases.

I also had to repair one migration that was added back in 2013 and will
never be run again, and could theoretically just be commented out, but
the fix was trivial.
One of the trickier Squeel removals, so a small spec seemed warranted.
The first attempt to rewrite this had a bunch of issues I missed, too.
It's not a huge amount of coverage, but enough to exercise some
interesting cases in the policies and controllers.
Copy link
Member

@Holmes98 Holmes98 left a comment

Choose a reason for hiding this comment

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

Looks good to me. There are a few other places using Relation#merge that I think could be removed (in app/controllers/groups/members_controller.rb and app/models/request.rb), but I guess it doesn't really matter.

@bagedevimo bagedevimo merged commit 912e0b2 into master May 22, 2025
7 checks passed
Copy link
Contributor Author

Merge activity

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