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
2018-04-02Always allow the performance bar to be enabled for adminsRobert Speicher
2018-02-02use Gitlab::UserSettings directly as a singleton instead of ↵Mario de la Ossa
including/extending it
2018-01-17In development, allow the toggling of the performance barRémy Coutable
The performance bar is still displayed by default in development. Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-08-31`current_application_settings` belongs on `Gitlab::CurrentSettings`Sean McGivern
The initializers including this were doing so at the top level, so every object loaded after them had a `current_application_settings` method. However, if someone had rack-attack enabled (which was loaded before these initializers), it would try to load the API, and fail, because `Gitlab::CurrentSettings` didn't have that method. To fix this: 1. Don't include `Gitlab::CurrentSettings` at the top level. We do not need `Object.new.current_application_settings` to work. 2. Make `Gitlab::CurrentSettings` explicitly `extend self`, as we already use it like that in several places. 3. Change the initializers to use that new form.
2017-07-17Expire cached user IDs that can see the performance after 5 minutesRémy Coutable
If we don't expire the cached user IDs, the list of IDs would become outdated when a new member is added, or when a member ios removed from the allowed group. Signed-off-by: Rémy Coutable <remy@rymai.me>
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>
2017-06-09Fix spec failures and add a feature flag for the performance barRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-06-09New performance bar that can be enabled with the `p b` shortcutRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>