Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-07-20Add latest changes from gitlab-org/gitlab@13-2-stable-eeGitLab Bot
2020-05-20Add latest changes from gitlab-org/gitlab@13-0-stable-eeGitLab Bot
2019-08-28Make performance bar enabled checks consistentSean McGivern
Previously, we called the `peek_enabled?` method like so: prepend_before_action :set_peek_request_id, if: :peek_enabled? Now we don't have a `set_peek_request_id` method, so we don't need that line. However, the `peek_enabled?` part had a side-effect: it would also populate the request store cache for whether the performance bar was enabled for the current request or not. This commit makes that side-effect explicit, and replaces all uses of `peek_enabled?` with the more explicit `Gitlab::PerformanceBar.enabled_for_request?`. There is one spec that still sets `SafeRequestStore[:peek_enabled]` directly, because it is contrasting behaviour with and without a request store enabled. The upshot is: 1. We still set the value in one place. We make it more explicit that that's what we're doing. 2. Reading that value uses a consistent method so it's easier to find in future.
2019-08-22Add frozen_string_literal to lib part 2Thong Kuah
Using the sed script from https://gitlab.com/gitlab-org/gitlab-ce/issues/59758
2019-07-25Remove code related to object hierarchy in MySQLHeinrich Lee Yu
These are not required because MySQL is not supported anymore
2019-07-03Cache PerformanceBar.allowed_user_ids list locally and in RedisRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-04-02Always allow the performance bar to be enabled for adminsRobert Speicher
2017-07-11Support multiple Redis instances based on queue typePaul Charlton
2017-07-07Don't use Flipper for the Performance BarRémy Coutable
The implementation now simply rely on the `performance_bar_allowed_group_id` Application Setting. Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-07-06Allow to enable the Performance Bar for a group from the admin areaRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-07-06Use Rails.cache instead of Redis directlyRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-07-06Cache the allowed user IDs for the performance bar, in Redis for 10 minutesRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-07-06Improve feature flag check for the performance barRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-07-06Hide 'peek' by using 'performance bar' insteadRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-07-06Cache PerformanceBar data using RequestStoreRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-07-06Allow to enable the performance bar per user or Flipper groupRémy Coutable
A `performance_team` Flipper group has been created. By default this group is nil but this can be customized in `gitlab.yml` via the performance_bar.allowed_group setting. Signed-off-by: Rémy Coutable <remy@rymai.me>