-
Notifications
You must be signed in to change notification settings - Fork 38
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
docs: info about migrating to v6 #206
Conversation
Pull Request Test Coverage Report for Build 11054316958Details
💛 - Coveralls |
v6_MIGRATION_GUIDE.md
Outdated
@@ -0,0 +1,39 @@ | |||
# Migrating to Unleash-Client-Ruby 6.0.0 | |||
|
|||
The upgrade the v6.0.0 of the Unleash client should be mostly seamless. There are a few significant changes that may require some changes on the consumer side or that the consumer should be generally aware of. |
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.
The upgrade the v6.0.0 of the Unleash client should be mostly seamless. There are a few significant changes that may require some changes on the consumer side or that the consumer should be generally aware of. | |
The upgrade of Unleash client to v6.0.0 should be mostly seamless. But if you have extended or modified the SDK, there are a few things that may require changes on the consumer side or that the consumer should be aware of. |
v6_MIGRATION_GUIDE.md
Outdated
Secondly, the deprecated `register_custom_strategies` method has now been removed. The only way to register a custom strategy is to use configuration, i.e. | ||
|
||
```ruby | ||
class MyCustomStrategy | ||
def name | ||
'myCustomStrategy' | ||
end | ||
|
||
def is_enabled?(params = {}, context = nil) | ||
true | ||
end | ||
end | ||
|
||
Unleash.configure do |config| | ||
config.strategies.add(MyCustomStrategy.new) | ||
end | ||
``` |
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.
This is the same as our documentation on the readme. I'm thinking if adding the snippet here adds value or if we can just link to the readme. The downside of having the snippet is that people skimming through these docs may think there's a bunch o changes, but actually, we expect users to already be doing this.
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.
v6_MIGRATION_GUIDE.md
Outdated
end | ||
``` | ||
|
||
If you're already using configuration to register your custom strategies and you're not overriding the default strategies, this section doesn't affect you. |
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.
Maybe this should be at the beginning of this section as a bold note.
Co-authored-by: Gastón Fournier <[email protected]>
Migration guide for moving to v6. Turns out evaluations between Yggdrasil base and the Ruby SDK are already identical insofar as I can tell so no changes there
For Discussion
I expected the change set to be a lot larger so I broke this into its own file but now that I'm looking at it, it's less than I expected. Could/should this just be part of the main README?