Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
1e1a633e
Commit
1e1a633e
authored
May 18, 2021
by
Luis Mejia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add EE deprecated value
parent
d951e0f8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
ee/lib/ee/gitlab/usage_data.rb
ee/lib/ee/gitlab/usage_data.rb
+2
-0
ee/spec/lib/ee/gitlab/usage_data_spec.rb
ee/spec/lib/ee/gitlab/usage_data_spec.rb
+3
-3
No files found.
ee/lib/ee/gitlab/usage_data.rb
View file @
1e1a633e
...
...
@@ -3,6 +3,8 @@
module
EE
module
Gitlab
module
UsageData
DEPRECATED_VALUE
=
-
1000
extend
ActiveSupport
::
Concern
EE_MEMOIZED_VALUES
=
%i(
...
...
ee/spec/lib/ee/gitlab/usage_data_spec.rb
View file @
1e1a633e
...
...
@@ -125,7 +125,7 @@ RSpec.describe Gitlab::UsageData do
network_policy_drops
)
)
expect
(
count_data
[
:projects_with_prometheus_alerts
]).
to
eq
(
DEPRECATED_VALUE
)
expect
(
count_data
[
:projects_with_prometheus_alerts
]).
to
eq
(
EE
::
Gitlab
::
UsageData
::
DEPRECATED_VALUE
)
expect
(
count_data
[
:feature_flags
]).
to
eq
(
1
)
expect
(
count_data
[
:status_page_projects
]).
to
eq
(
1
)
expect
(
count_data
[
:status_page_issues
]).
to
eq
(
1
)
...
...
@@ -268,12 +268,12 @@ RSpec.describe Gitlab::UsageData do
expect
(
described_class
.
usage_activity_by_stage_configure
({})).
to
include
(
projects_slack_notifications_active:
2
,
projects_slack_slash_active:
2
,
projects_with_prometheus_alerts:
DEPRECATED_VALUE
projects_with_prometheus_alerts:
EE
::
Gitlab
::
UsageData
::
DEPRECATED_VALUE
)
expect
(
described_class
.
usage_activity_by_stage_configure
(
described_class
.
last_28_days_time_period
)).
to
include
(
projects_slack_notifications_active:
1
,
projects_slack_slash_active:
1
,
projects_with_prometheus_alerts:
DEPRECATED_VALUE
projects_with_prometheus_alerts:
EE
::
Gitlab
::
UsageData
::
DEPRECATED_VALUE
)
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment