Release gitlab-experiment version 0.7.0
Updating gitlab-experiment to version 0.7.0.
-
Complete 0.7.0 diff: gitlab-org/ruby/gems/gitlab-experiment@v0.6.5...release-0.7.0
-
Release merge request: gitlab-org/ruby/gems/gitlab-experiment!153 (merged)
-
Checklist before merging:
-
Diff link is up-to-date and working. -
Release notes are accurate. -
Gitlab project has been updated and CI is passing.
-
This MR is generated by an automated release process. If you'd like to add additional information to the MR description, please do, but keep your changes to the area above the changelog, as that can be replaced by the automation process.
We've opened an issue to address the deprecation warnings in a few phases.
0.7.0 Changelog
Added
- Add an improved "run" callback interface with
before_run
,after_run
andaround_run
- Add a configuration for strict experiment registration (disallow anonymous experiments without being backed by a class definition)
- Add class level interface for defining the experiment behaviors
- Add initial capability for rollout strategies to assign control
- Add
register_behavior
rspec matcher
Fixed
- Fixed compatibility for ruby 2.6.x
- Fixed issues with stubbing and the
track
rspec matcher
Changed
- Allow
publish
to be called without a result argument
Deprecated
- The use of
use { }
andtry { }
has been deprecated, instead usecontrol { }
,candidate { }
andvariant(:named_variant) { }
- Passing a named variant argument to
candidate { }
(ortry { }
) has been deprecated, instead usevariant(:named_variant) { }
- Calling
variant
(as invariant.name
to get, orvariant(:assigned_variant)
to set) has been deprecated, instead useassigned
(as inassigned.name
to get the variant that has been assigned, andassigned(:assigned_variant)
to manually set one) - Using public
*_behavior
methods has been deprecated, instead declare the experiment in the class usingcontrol
,candidate
andvariant(:variant_name)
registration methods - Configuration of
context_hash_strategy
has been deprecated, instead usecontext_key_secret
andcontext_key_bit_length
configuration options - Configuration
variant_resolver
, andinclusion_resolver
options have been deprecated, instead put this logic into custom rollout strategies - The
experiment_group?
method has been deprecated, which may have been overridden in subclasses, instead put this logic into custom rollout strategies - The
flipper_id
andsession_id
methods have been deprecated, which may have been overridden in subclasses, instead put this logic into custom rollout strategies
Removed
- Removed scientist as a gem dependency
Other
- Project has been moved to https://gitlab.com/gitlab-org/ruby/gems/gitlab-experiment
Edited by Jeremy Jackson