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

Remove assert_written_to_cache #2691

Merged
merged 2 commits into from
Apr 11, 2018

Conversation

jhawthorn
Copy link
Contributor

This is error prone and breaks in Rails 5.2, since the key being logged is an array.

The key we see from AS::Notifications is now an array and has additional hashes on the template names (I assume russian doll caching related). It's too hard to predict where these values come from, so we can't continue testing this.

We should have most of the benefit and testing of this by just counting the number of cache writes (which we were doing already).

These weren't accessible and served no purpose
This is error prone and breaks in Rails 5.2, since the key being logged
is an array.

The key we see from AS::Notifications is now an array and has additional
hashes on the template names (I assume russian doll caching related).
It's too hard to predict where these values come from, so we can't
continue testing this.

We should have most of the benefit and testing of this by just counting
the number of cache writes (which we were doing already).
@jhawthorn jhawthorn merged commit fb9c66e into solidusio:master Apr 11, 2018
@jhawthorn
Copy link
Contributor Author

I'd like to avoid removing even testing related methods in a SemVer minor release, but I think it's unlikely this is widely used, and it would break for everyone in Rails 5.2 regardless.

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