-
Notifications
You must be signed in to change notification settings - Fork 12
Handle cache failures #16
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
base: master
Are you sure you want to change the base?
Conversation
8801dfd to
8ad3b32
Compare
8ad3b32 to
f239104
Compare
78ab837 to
f33f858
Compare
f33f858 to
ff8f75d
Compare
| end | ||
|
|
||
| def write(key, value) | ||
| def write(key, value, _options = nil) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated these to match signatures of Activesupport::Cache::Store
| describe ::ActiveRemote::Cached::ArgumentKeys do | ||
| it "does not mutate a string by default" do | ||
| ::ActiveRemote::Cached::ArgumentKeys.new("hello", {}).cache_key.must_equal("hello") | ||
| _(::ActiveRemote::Cached::ArgumentKeys.new("hello", {}).cache_key).must_equal("hello") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These types of changes were made due to deprecation warnings from Minitest about calling methods like must_equal directly on objects.
|
As a note, I'd definitely prefer to publish a release candidate version of this first to do extra validation. Things worked as I expected testing locally, but abundance of caution and all that. |
|
LGTM |
film42
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
28d02f1 to
ca09ddf
Compare
Fixes warnings and specs, adds handling for upstream cache failure by falling back to RPC call. Also sets up github workflow to automatically run pipelines for multiple ruby / activesupport versions.