Allow multiple actors for Flipper.enabled?. Improves performance of feature flags for multiple actors and simplifies code for users of flipper. This likely breaks things for anyone using Flipper internal classes related to actors, but that isn't likely you so you should be fine.
If you currently use actor.thing in a group, you'll need to change it to actor.actor.
- Flipper.register(:our_group) do |actor|
- actor.thing.is_a?(OurClassName)
- end
+ Flipper.register(:our_group) do |actor|
+ actor.actor.is_a?(OurClassName)
+ end
If you currently use context.thing in a group or elsewhere, you'll need to change it to context.actors.
- Flipper.register(:our_group) do |actor, context|
- context.thing.is_a?(OurClassName)
- end
+ Flipper.register(:our_group) do |actor, context|
+ context.actors.any? { |actor| actor.is_a?(OurClassName) }
+ end
Deprecations
:thing in enabled? instrumentation payload. Use :actors instead.
ActiveSupport::Notifications.subscribe('enabled?.feature_operation.flipper') do |name, start, finish, id, payload|
- payload[:thing]
+ payload[:actors]
end
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps flipper from 0.16.2 to 0.28.2.
Changelog
Sourced from flipper's changelog.
... (truncated)
Commits
aef3275
Release v0.28.2ac7c459
UI: fix path to bundled assets when mapped to a prefixa3cc493
Prepare for 0.28.19d9a6cd
Update changelog8a6b5c9
Merge pull request #736 from natematykiewicz/logger_performanceb6625ed
Improve performance ofcolor_name
function in log subscriber4e31057
Merge pull request #731 from dhruvCW/bundle_bootstrap_poppler50dafc1
Update Changelog.mde9d98a7
Merge pull request #726 from piperswe/rails-7.1-hash-boldfc323eb
remove remote source from CSP.Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)