-
-
Notifications
You must be signed in to change notification settings - Fork 420
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
Add Railties/Engines #506
Add Railties/Engines #506
Conversation
* origin/master: Use #load instead of #require for all adapter specs Use Kernel#load to load adapter in spec Only run specs on pr and push to master Run specs in random order Re-raise connection errors in CI Handle Redis connection failure too Don't skip on CI Remove deprecated DalliStore Skip adapter tests if connection fails Remove flipper-rails references for now README driven development for onboarding improvements
* deprecate_sync_method: Deprecate superflous sync_method setting
Thanks for bringing this up. I thought based these docs in rails/application.rb that the Railtie initializers would run after
However, I tested it in a real app and that was not the case. So I've updated the Railtie to explicitly run after |
Cloud will make an HTTP request to sync, which is not ideal to do boot.
@jnunemaker I tested this in a real app and had to rework configuration a little. Before 2bf2e82, So as a result of cleaning some of that up, I ended up going full circle on the discussion about configuration and moved a few things back to |
This AMAZING. Very excited. I don't want to block shipping this, but some other things that would be nice to wrap up in rails config eventually:
I should be done kicking the tires today. Tested a couple apps. I just want to check all the config with the flipper cloud default rails app to ensure things are working. |
ooh, good call. f81b2ea sets |
This reverts commit 6551193.
Moved set_default to flipper/cloud as i usually require that. flipper-cloud is what bundler auto requires but either way flipper/cloud gets required so it felt better there.
This adds Railties/Engines to remove as much manual configuration as possible when using flipping in a Rails app.
require 'flipper'
sets up middlewarerequire 'flipper-cloud'
configures and mounts appskipping since it needs some kind of authrequire 'flipper-ui
configures and mounts appThis is part of #500 to improve the onboarding experience.