Add latest changes from gitlab-org/gitlab@master
This commit is contained in:
parent
491783d804
commit
b03a2c6d75
8 changed files with 8 additions and 104 deletions
|
@ -28,13 +28,11 @@ module Gitlab
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
def unmigrated_counters
|
def unmigrated_counters
|
||||||
# we are using the #counters method instead of the COUNTERS const
|
self::COUNTERS
|
||||||
# to make sure it's working correctly for `ee` version of UsageDataCounters
|
|
||||||
counters - self::COUNTERS_MIGRATED_TO_INSTRUMENTATION_CLASSES
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def counters
|
def counters
|
||||||
self::COUNTERS + self::COUNTERS_MIGRATED_TO_INSTRUMENTATION_CLASSES
|
unmigrated_counters + migrated_counters
|
||||||
end
|
end
|
||||||
|
|
||||||
def count(event_name)
|
def count(event_name)
|
||||||
|
@ -46,6 +44,12 @@ module Gitlab
|
||||||
|
|
||||||
raise UnknownEvent, "Cannot find counter for event #{event_name}"
|
raise UnknownEvent, "Cannot find counter for event #{event_name}"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
|
def migrated_counters
|
||||||
|
COUNTERS_MIGRATED_TO_INSTRUMENTATION_CLASSES
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,16 +0,0 @@
|
||||||
---
|
|
||||||
stage: Create
|
|
||||||
group: Source Code
|
|
||||||
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/product/ux/technical-writing/#assignments
|
|
||||||
redirect_to: '../../../doc/development/backend/create_source_code_be/workhorse/channel.md'
|
|
||||||
remove_date: '2022-07-01'
|
|
||||||
---
|
|
||||||
|
|
||||||
# Websocket channel support
|
|
||||||
|
|
||||||
This document was moved to [another location](../../../doc/development/workhorse/channel.md).
|
|
||||||
|
|
||||||
<!-- This redirect file can be deleted after <2022-07-01>. -->
|
|
||||||
<!-- Redirects that point to other docs in the same project expire in three months. -->
|
|
||||||
<!-- Redirects that point to docs in a different project or site (for example, link is not relative and starts with `https:`) expire in one year. -->
|
|
||||||
<!-- Before deletion, see: https://docs.gitlab.com/ee/development/documentation/redirects.html -->
|
|
|
@ -1,14 +0,0 @@
|
||||||
---
|
|
||||||
stage: Create
|
|
||||||
group: Source Code
|
|
||||||
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/product/ux/technical-writing/#assignments
|
|
||||||
---
|
|
||||||
|
|
||||||
# Features that rely on Workhorse
|
|
||||||
|
|
||||||
This document was moved to [another location](../../../doc/development/workhorse/gitlab_features.md).
|
|
||||||
|
|
||||||
<!-- This redirect file can be deleted after <2022-07-01>. -->
|
|
||||||
<!-- Redirects that point to other docs in the same project expire in three months. -->
|
|
||||||
<!-- Redirects that point to docs in a different project or site (for example, link is not relative and starts with `https:`) expire in one year. -->
|
|
||||||
<!-- Before deletion, see: https://docs.gitlab.com/ee/development/documentation/redirects.html -->
|
|
|
@ -1,14 +0,0 @@
|
||||||
---
|
|
||||||
stage: Create
|
|
||||||
group: Source Code
|
|
||||||
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/product/ux/technical-writing/#assignments
|
|
||||||
---
|
|
||||||
|
|
||||||
# Websocket channel support
|
|
||||||
|
|
||||||
This document was moved to [another location](../../doc/development/workhorse/channel.md).
|
|
||||||
|
|
||||||
<!-- This redirect file can be deleted after <2022-07-01>. -->
|
|
||||||
<!-- Redirects that point to other docs in the same project expire in three months. -->
|
|
||||||
<!-- Redirects that point to docs in a different project or site (for example, link is not relative and starts with `https:`) expire in one year. -->
|
|
||||||
<!-- Before deletion, see: https://docs.gitlab.com/ee/development/documentation/redirects.html -->
|
|
|
@ -1,14 +0,0 @@
|
||||||
---
|
|
||||||
stage: Create
|
|
||||||
group: Source Code
|
|
||||||
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/product/ux/technical-writing/#assignments
|
|
||||||
---
|
|
||||||
|
|
||||||
# Adding new features to Workhorse
|
|
||||||
|
|
||||||
This document was moved to [another location](../../../doc/development/workhorse/new_features.md).
|
|
||||||
|
|
||||||
<!-- This redirect file can be deleted after <2022-07-01>. -->
|
|
||||||
<!-- Redirects that point to other docs in the same project expire in three months. -->
|
|
||||||
<!-- Redirects that point to docs in a different project or site (for example, link is not relative and starts with `https:`) expire in one year. -->
|
|
||||||
<!-- Before deletion, see: https://docs.gitlab.com/ee/development/documentation/redirects.html -->
|
|
|
@ -1,14 +0,0 @@
|
||||||
---
|
|
||||||
stage: Create
|
|
||||||
group: Source Code
|
|
||||||
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/product/ux/technical-writing/#assignments
|
|
||||||
---
|
|
||||||
|
|
||||||
# Testing your code
|
|
||||||
|
|
||||||
This document was moved to [another location](../../../doc/development/workhorse/index.md).
|
|
||||||
|
|
||||||
<!-- This redirect file can be deleted after <2022-07-01>. -->
|
|
||||||
<!-- Redirects that point to other docs in the same project expire in three months. -->
|
|
||||||
<!-- Redirects that point to docs in a different project or site (for example, link is not relative and starts with `https:`) expire in one year. -->
|
|
||||||
<!-- Before deletion, see: https://docs.gitlab.com/ee/development/documentation/redirects.html -->
|
|
|
@ -1,14 +0,0 @@
|
||||||
---
|
|
||||||
stage: Create
|
|
||||||
group: Source Code
|
|
||||||
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/product/ux/technical-writing/#assignments
|
|
||||||
---
|
|
||||||
|
|
||||||
# Workhorse configuration
|
|
||||||
|
|
||||||
This document was moved to [another location](../../../doc/development/workhorse/configuration.md).
|
|
||||||
|
|
||||||
<!-- This redirect file can be deleted after <2022-07-01>. -->
|
|
||||||
<!-- Redirects that point to other docs in the same project expire in three months. -->
|
|
||||||
<!-- Redirects that point to docs in a different project or site (for example, link is not relative and starts with `https:`) expire in one year. -->
|
|
||||||
<!-- Before deletion, see: https://docs.gitlab.com/ee/development/documentation/redirects.html -->
|
|
|
@ -1,14 +0,0 @@
|
||||||
---
|
|
||||||
stage: Create
|
|
||||||
group: Source Code
|
|
||||||
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/product/ux/technical-writing/#assignments
|
|
||||||
---
|
|
||||||
|
|
||||||
# Installation
|
|
||||||
|
|
||||||
This document was moved to [another location](../../../doc/development/workhorse/index.md).
|
|
||||||
|
|
||||||
<!-- This redirect file can be deleted after <2022-07-01>. -->
|
|
||||||
<!-- Redirects that point to other docs in the same project expire in three months. -->
|
|
||||||
<!-- Redirects that point to docs in a different project or site (for example, link is not relative and starts with `https:`) expire in one year. -->
|
|
||||||
<!-- Before deletion, see: https://docs.gitlab.com/ee/development/documentation/redirects.html -->
|
|
Loading…
Reference in a new issue