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
85c448d7
Commit
85c448d7
authored
Oct 28, 2016
by
James Lopez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix specs
parent
f9fd0ff1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
lib/gitlab/cycle_analytics/events_fetcher.rb
lib/gitlab/cycle_analytics/events_fetcher.rb
+1
-3
lib/gitlab/cycle_analytics/query_config.rb
lib/gitlab/cycle_analytics/query_config.rb
+1
-3
No files found.
lib/gitlab/cycle_analytics/events_fetcher.rb
View file @
85c448d7
...
...
@@ -11,12 +11,10 @@ module Gitlab
custom_query
=
"
#{
stage
}
_custom_query"
.
to_sym
@query
.
execute
(
stage
)
do
|
base_query
|
send
(
custom_query
,
base_query
)
if
self
.
respond_to?
(
custom_query
)
public_
send
(
custom_query
,
base_query
)
if
self
.
respond_to?
(
custom_query
)
end
end
private
def
issue_custom_query
(
base_query
)
base_query
.
join
(
user_table
).
on
(
issue_table
[
:author_id
].
eq
(
user_table
[
:id
]))
end
...
...
lib/gitlab/cycle_analytics/query_config.rb
View file @
85c448d7
...
...
@@ -12,11 +12,9 @@ module Gitlab
end
def
get
send
(
@stage
).
freeze
if
self
.
respond_to?
(
@stage
)
public_
send
(
@stage
).
freeze
if
self
.
respond_to?
(
@stage
)
end
private
def
issue
{
start_time_attrs:
issue_table
[
:created_at
],
end_time_attrs:
[
issue_metrics_table
[
:first_associated_with_milestone_at
],
...
...
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