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
89710418
Commit
89710418
authored
Mar 31, 2020
by
Doug Stull
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Track buy more ci minutes click
- metrics for data analysis
parent
adb7969e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
+14
-3
ee/app/views/namespaces/pipelines_quota/_list.haml
ee/app/views/namespaces/pipelines_quota/_list.haml
+6
-1
ee/spec/features/groups/usage_quotas_spec.rb
ee/spec/features/groups/usage_quotas_spec.rb
+8
-2
No files found.
ee/app/views/namespaces/pipelines_quota/_list.haml
View file @
89710418
...
...
@@ -4,7 +4,12 @@
.pipeline-quota.container-fluid
.row
.col-sm-6.offset-sm-6
=
link_to
s_
(
'UsageQuota|Buy additional minutes'
),
EE
::
SUBSCRIPTIONS_PLANS_URL
,
target:
'_blank'
,
class:
'btn btn-inverted btn-success float-right'
if
::
Gitlab
.
com?
-
if
::
Gitlab
.
com?
=
link_to
s_
(
'UsageQuota|Buy additional minutes'
),
EE
::
SUBSCRIPTIONS_PLANS_URL
,
target:
'_blank'
,
class:
'btn btn-inverted btn-success float-right'
,
data:
{
track_event:
'click_buy_ci_minutes'
,
track_label:
namespace
.
actual_plan_name
,
track_property:
'pipeline_quota_page'
}
.row
.col-sm-6
...
...
ee/spec/features/groups/usage_quotas_spec.rb
View file @
89710418
...
...
@@ -3,7 +3,7 @@
require
'spec_helper'
describe
'Groups > Usage Quotas'
do
let
(
:user
)
{
create
(
:user
)
}
let
_it_be
(
:user
)
{
create
(
:user
)
}
let
(
:group
)
{
create
(
:group
)
}
let!
(
:project
)
{
create
(
:project
,
namespace:
group
,
shared_runners_enabled:
true
)
}
let
(
:gitlab_dot_com
)
{
true
}
...
...
@@ -126,7 +126,7 @@ describe 'Groups > Usage Quotas' do
end
end
it
'shows correct group quota and projects info'
do
it
'
has correct tracking setup and
shows correct group quota and projects info'
do
visit_pipeline_quota_page
expect
(
page
).
to
have_content
(
'Buy additional minutes'
)
...
...
@@ -141,6 +141,12 @@ describe 'Groups > Usage Quotas' do
expect
(
page
).
to
have_content
(
project
.
full_name
)
expect
(
page
).
not_to
have_content
(
other_project
.
full_name
)
end
link
=
page
.
find
(
'a'
,
text:
'Buy additional minutes'
)
expect
(
link
[
'data-track-event'
]).
to
eq
(
'click_buy_ci_minutes'
)
expect
(
link
[
'data-track-label'
]).
to
eq
(
group
.
actual_plan_name
)
expect
(
link
[
'data-track-property'
]).
to
eq
(
'pipeline_quota_page'
)
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