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
1bc1f557
Commit
1bc1f557
authored
Oct 22, 2021
by
Albert Salim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecessary re-exports
parent
97dad2e3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
8 deletions
+4
-8
spec/frontend/cycle_analytics/mock_data.js
spec/frontend/cycle_analytics/mock_data.js
+1
-6
spec/frontend/cycle_analytics/utils_spec.js
spec/frontend/cycle_analytics/utils_spec.js
+1
-1
spec/frontend/cycle_analytics/value_stream_metrics_spec.js
spec/frontend/cycle_analytics/value_stream_metrics_spec.js
+2
-1
No files found.
spec/frontend/cycle_analytics/mock_data.js
View file @
1bc1f557
import
valueStreamAnalyticsStages
from
'
test_fixtures/projects/analytics/value_stream_analytics/stages.json
'
;
import
valueStreamAnalyticsSummary
from
'
test_fixtures/projects/analytics/value_stream_analytics/summary.json
'
;
import
issueStageFixtures
from
'
test_fixtures/projects/analytics/value_stream_analytics/events/issue.json
'
;
import
planStageFixtures
from
'
test_fixtures/projects/analytics/value_stream_analytics/events/plan.json
'
;
import
reviewStageFixtures
from
'
test_fixtures/projects/analytics/value_stream_analytics/events/review.json
'
;
...
...
@@ -26,10 +25,6 @@ export const deepCamelCase = (obj) => convertObjectPropsToCamelCase(obj, { deep:
export
const
getStageByTitle
=
(
stages
,
title
)
=>
stages
.
find
((
stage
)
=>
stage
.
title
&&
stage
.
title
.
toLowerCase
().
trim
()
===
title
)
||
{};
export
const
metricsData
=
valueStreamAnalyticsSummary
;
export
const
customizableStagesAndEvents
=
valueStreamAnalyticsStages
;
export
const
defaultStages
=
[
'
issue
'
,
'
plan
'
,
'
review
'
,
'
code
'
,
'
test
'
,
'
staging
'
];
const
stageFixtures
=
{
...
...
@@ -258,7 +253,7 @@ export const selectedProjects = [
},
];
export
const
rawValueStreamStages
=
customizableStagesAndEvent
s
.
stages
;
export
const
rawValueStreamStages
=
valueStreamAnalyticsStage
s
.
stages
;
export
const
valueStreamStages
=
rawValueStreamStages
.
map
((
s
)
=>
convertObjectPropsToCamelCase
(
s
,
{
deep
:
true
}),
...
...
spec/frontend/cycle_analytics/utils_spec.js
View file @
1bc1f557
import
metricsData
from
'
test_fixtures/projects/analytics/value_stream_analytics/summary.json
'
;
import
{
useFakeDate
}
from
'
helpers/fake_date
'
;
import
{
transformStagesForPathNavigation
,
...
...
@@ -14,7 +15,6 @@ import {
stageMedians
,
pathNavIssueMetric
,
rawStageMedians
,
metricsData
,
}
from
'
./mock_data
'
;
describe
(
'
Value stream analytics utils
'
,
()
=>
{
...
...
spec/frontend/cycle_analytics/value_stream_metrics_spec.js
View file @
1bc1f557
import
{
GlDeprecatedSkeletonLoading
as
GlSkeletonLoading
}
from
'
@gitlab/ui
'
;
import
{
GlSingleStat
}
from
'
@gitlab/ui/dist/charts
'
;
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
metricsData
from
'
test_fixtures/projects/analytics/value_stream_analytics/summary.json
'
;
import
waitForPromises
from
'
helpers/wait_for_promises
'
;
import
{
METRIC_TYPE_SUMMARY
}
from
'
~/api/analytics_api
'
;
import
ValueStreamMetrics
from
'
~/cycle_analytics/components/value_stream_metrics.vue
'
;
import
createFlash
from
'
~/flash
'
;
import
{
group
,
metricsData
}
from
'
./mock_data
'
;
import
{
group
}
from
'
./mock_data
'
;
jest
.
mock
(
'
~/flash
'
);
...
...
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