Skip to content
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

Upgrade solid cache to address NoMethodError #207

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

rossta
Copy link
Contributor

@rossta rossta commented Sep 3, 2024

SolidCache is raising errors in production following Rails 7.2 upgrade.

NoMethodError - undefined method `model' for class SolidCache::Entry

Same as reported here:
rails/solid_cache#189

The error was not captured in specs because we have been using the NullStore for caching in tests.

This error can be reproduced by setting SolidCacheStore in tests. I don’t want to enable this as the backend right now but may reconsider if I continue to see issues across upgrades. One alternative idea would be to add a CI job that boots the app with production or development settings and checks for responses on root and some health check endpoints for sanity.

SolidCache is raising errors in production following Rails 7.2 upgrade.

NoMethodError - undefined method `model' for class SolidCache::Entry

Same as reported here:
rails/solid_cache#189

The error was not captured in specs because we have been using the
NullStore for caching in tests.

This error can be reproduced by setting SolidCacheStore in tests. I
don’t want to enable this as the backend right now but may reconsider if
we continue to see issues across upgrades.
Copy link

codecov bot commented Sep 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

@rossta rossta merged commit afcc745 into main Sep 3, 2024
9 checks passed
@rossta rossta deleted the chore/upgrade-solid-cache branch September 3, 2024 17:59
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.

1 participant