Skip to content

Conversation

sighphyre
Copy link
Member

@sighphyre sighphyre commented Sep 25, 2024

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?

@coveralls
Copy link

coveralls commented Sep 25, 2024

Pull Request Test Coverage Report for Build 11054316958

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 95.57%

Totals Coverage Status
Change from base Build 11032291815: 0.0%
Covered Lines: 453
Relevant Lines: 474

💛 - Coveralls

@@ -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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.

Comment on lines 11 to 27
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
```
Copy link
Contributor

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.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.
Copy link
Contributor

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.

@sighphyre sighphyre merged commit bcc8bbe into main Sep 26, 2024
39 checks passed
@sighphyre sighphyre deleted the docs/v6-migration-guide branch September 26, 2024 14:34
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.

4 participants