Commit graph

8 commits

Author SHA1 Message Date
GitLab Bot
de8e5077c3 Add latest changes from gitlab-org/gitlab@master 2021-06-07 12:10:00 +00:00
GitLab Bot
6aab18704a Add latest changes from gitlab-org/gitlab@master 2020-07-02 09:09:00 +00:00
Rémy Coutable
2ad01c5ab0
Ensure Flipper memoizer is used in Sidekiq's context
Also, don't use the provided Middleware, which isn't thread-safe, and
instantiate a new Flipper instance per thread instead.

Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-05-18 12:25:54 +02:00
Yorick Peterse
ef99a3c8bc
Increase feature flag cache TTL to one hour
Flipper already takes care of flushing cache entries when
enabling/disabling features so it should be safe to increase the TTL.
This in turn should drastically reduce the number of Flipper queries
executed.

Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/40854
2018-02-19 14:28:22 +01:00
Rémy Coutable
b51e6d6ddc
Update flipper to 0.11.0 and take advantage of the new features
- Added an ActiveSupport (using Rails.cache) caching adapter
- Overview of the new features can be found at https://johnnunemaker.com/flippin-features-at-runtime/
- Full Changelog can be found at https://github.com/jnunemaker/flipper/blob/v0.11.0/Changelog.md

Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-12-14 02:11:11 +01:00
Rémy Coutable
a7d65aeaf2
Re-add Feature.register_feature_groups which is already documented
This is a follow-up for !12362 where this was documented but the code
was removed in the last iteration. Since this can still be useful and
this is already supported by the API, I think re-adding the code was
the best course of action.

Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-07-10 15:56:23 +02:00
Stan Hu
416c67541f Disable Flipper memoizer in tests to avoid transient failures
Closes #34278
2017-07-05 07:42:17 -07:00
Rémy Coutable
b8a7b59d82 Add the Flipper::Middleware::Memoizer middleware
This ensures we make maximum one call per feature per request.

See
https://github.com/jnunemaker/flipper/blob/v0.10.2/docs/Optimization.md#memoizing-middleware

Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-06-21 17:35:29 +02:00