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
aef3db7e
Commit
aef3db7e
authored
Apr 22, 2021
by
Amit Patel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Contributes to
https://gitlab.com/gitlab-org/gitlab/-/issues/325744
parent
274d048c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
.rubocop_manual_todo.yml
.rubocop_manual_todo.yml
+0
-1
app/models/cycle_analytics/project_level_stage_adapter.rb
app/models/cycle_analytics/project_level_stage_adapter.rb
+3
-1
changelogs/unreleased/rubocop-performance-openstruct-project-level-stage-adapter.yml
...op-performance-openstruct-project-level-stage-adapter.yml
+5
-0
No files found.
.rubocop_manual_todo.yml
View file @
aef3db7e
...
...
@@ -2834,7 +2834,6 @@ Performance/OpenStruct:
-
'
Guardfile'
-
'
app/finders/snippets_finder.rb'
-
'
app/helpers/application_settings_helper.rb'
-
'
app/models/cycle_analytics/project_level_stage_adapter.rb'
-
'
ee/lib/gitlab/graphql/aggregations/epics/epic_node.rb'
-
'
ee/lib/gitlab/graphql/aggregations/epics/epic_node.rb'
-
'
lib/api/wikis.rb'
...
...
app/models/cycle_analytics/project_level_stage_adapter.rb
View file @
aef3db7e
...
...
@@ -4,6 +4,8 @@
# compatible with the old value stream controller actions.
module
CycleAnalytics
class
ProjectLevelStageAdapter
ProjectLevelStage
=
Struct
.
new
(
:title
,
:description
,
:legend
,
:name
,
:project_median
,
keyword_init:
true
)
def
initialize
(
stage
,
options
)
@stage
=
stage
@options
=
options
...
...
@@ -13,7 +15,7 @@ module CycleAnalytics
def
as_json
(
serializer:
AnalyticsStageSerializer
)
presenter
=
Analytics
::
CycleAnalytics
::
StagePresenter
.
new
(
stage
)
serializer
.
new
.
represent
(
OpenStruct
.
new
(
serializer
.
new
.
represent
(
ProjectLevelStage
.
new
(
title:
presenter
.
title
,
description:
presenter
.
description
,
legend:
presenter
.
legend
,
...
...
changelogs/unreleased/rubocop-performance-openstruct-project-level-stage-adapter.yml
0 → 100644
View file @
aef3db7e
---
title
:
Replace OpenStruct with Struct in project_level_stage_adapter.rb
merge_request
:
59956
author
:
Amit Patel @amit.savani
type
:
performance
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