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
328780bd
Commit
328780bd
authored
May 11, 2017
by
kushalpandya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix conflicts for CE to EE merge
parent
bb10d783
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
0 additions
and
236 deletions
+0
-236
app/assets/javascripts/pipelines/components/stage.js
app/assets/javascripts/pipelines/components/stage.js
+0
-56
app/assets/javascripts/pipelines/components/stage.vue
app/assets/javascripts/pipelines/components/stage.vue
+0
-8
app/assets/javascripts/vue_merge_request_widget/components/mr_widget_deployment.js
...e_merge_request_widget/components/mr_widget_deployment.js
+0
-5
app/assets/javascripts/vue_merge_request_widget/components/mr_widget_memory_usage.js
...merge_request_widget/components/mr_widget_memory_usage.js
+0
-78
app/assets/javascripts/vue_shared/components/memory_graph.js
app/assets/javascripts/vue_shared/components/memory_graph.js
+0
-27
app/assets/stylesheets/framework/memory_graph.scss
app/assets/stylesheets/framework/memory_graph.scss
+0
-10
app/assets/stylesheets/pages/merge_requests.scss
app/assets/stylesheets/pages/merge_requests.scss
+0
-40
spec/javascripts/vue_mr_widget/components/mr_widget_deployment_spec.js
...pts/vue_mr_widget/components/mr_widget_deployment_spec.js
+0
-12
No files found.
app/assets/javascripts/pipelines/components/stage.js
View file @
328780bd
/* global Flash */
/* global Flash */
<<<<<<<
HEAD
import
{
statusClassToSvgMap
}
from
'
../../vue_shared/pipeline_svg_icons
'
;
export
default
{
props
:
{
stage
:
{
type
:
Object
,
required
:
true
,
},
},
=======
import
{
borderlessStatusIconEntityMap
}
from
'
../../vue_shared/ci_status_icons
'
;
import
{
borderlessStatusIconEntityMap
}
from
'
../../vue_shared/ci_status_icons
'
;
export
default
{
export
default
{
>>>>>>>
upstream
/
master
data
()
{
data
()
{
return
{
return
{
builds
:
''
,
builds
:
''
,
...
@@ -22,8 +9,6 @@ export default {
...
@@ -22,8 +9,6 @@ export default {
};
};
},
},
<<<<<<<
HEAD
=======
props
:
{
props
:
{
stage
:
{
stage
:
{
type
:
Object
,
type
:
Object
,
...
@@ -31,7 +16,6 @@ export default {
...
@@ -31,7 +16,6 @@ export default {
},
},
},
},
>>>>>>>
upstream
/
master
updated
()
{
updated
()
{
if
(
this
.
builds
)
{
if
(
this
.
builds
)
{
this
.
stopDropdownClickPropagation
();
this
.
stopDropdownClickPropagation
();
...
@@ -47,17 +31,7 @@ export default {
...
@@ -47,17 +31,7 @@ export default {
return
this
.
$http
.
get
(
this
.
stage
.
dropdown_path
)
return
this
.
$http
.
get
(
this
.
stage
.
dropdown_path
)
.
then
((
response
)
=>
{
.
then
((
response
)
=>
{
this
.
builds
=
JSON
.
parse
(
response
.
body
).
html
;
this
.
builds
=
JSON
.
parse
(
response
.
body
).
html
;
<<<<<<<
HEAD
})
.
catch
(()
=>
{
// If dropdown is opened we'll close it.
if
(
this
.
$el
.
classList
.
contains
(
'
open
'
))
{
$
(
this
.
$refs
.
dropdown
).
dropdown
(
'
toggle
'
);
}
=======
},
()
=>
{
},
()
=>
{
>>>>>>>
upstream
/
master
const
flash
=
new
Flash
(
'
Something went wrong on our end.
'
);
const
flash
=
new
Flash
(
'
Something went wrong on our end.
'
);
return
flash
;
return
flash
;
});
});
...
@@ -72,16 +46,9 @@ export default {
...
@@ -72,16 +46,9 @@ export default {
* target the click event of this component.
* target the click event of this component.
*/
*/
stopDropdownClickPropagation
()
{
stopDropdownClickPropagation
()
{
<<<<<<<
HEAD
$
(
this
.
$el
.
querySelectorAll
(
'
.js-builds-dropdown-list a.mini-pipeline-graph-dropdown-item
'
))
.
on
(
'
click
'
,
(
e
)
=>
{
e
.
stopPropagation
();
});
=======
$
(
this
.
$el
.
querySelectorAll
(
'
.js-builds-dropdown-list a.mini-pipeline-graph-dropdown-item
'
)).
on
(
'
click
'
,
(
e
)
=>
{
$
(
this
.
$el
.
querySelectorAll
(
'
.js-builds-dropdown-list a.mini-pipeline-graph-dropdown-item
'
)).
on
(
'
click
'
,
(
e
)
=>
{
e
.
stopPropagation
();
e
.
stopPropagation
();
});
});
>>>>>>>
upstream
/
master
},
},
},
},
computed
:
{
computed
:
{
...
@@ -102,11 +69,7 @@ export default {
...
@@ -102,11 +69,7 @@ export default {
return
`mini-pipeline-graph-dropdown-toggle has-tooltip js-builds-dropdown-button ci-status-icon-
${
this
.
stage
.
status
.
group
}
`
;
return
`mini-pipeline-graph-dropdown-toggle has-tooltip js-builds-dropdown-button ci-status-icon-
${
this
.
stage
.
status
.
group
}
`
;
},
},
svgHTML
()
{
svgHTML
()
{
<<<<<<<
HEAD
return
statusClassToSvgMap
[
this
.
stage
.
status
.
icon
];
=======
return
borderlessStatusIconEntityMap
[
this
.
stage
.
status
.
icon
];
return
borderlessStatusIconEntityMap
[
this
.
stage
.
status
.
icon
];
>>>>>>>
upstream
/
master
},
},
},
},
watch
:
{
watch
:
{
...
@@ -123,24 +86,6 @@ export default {
...
@@ -123,24 +86,6 @@ export default {
data-placement="top"
data-placement="top"
data-toggle="dropdown"
data-toggle="dropdown"
type="button"
type="button"
<<<<<<< HEAD
:aria-label="stage.title"
ref="dropdown">
<span
v-html="svgHTML"
aria-hidden="true">
</span>
<i
class="fa fa-caret-down"
aria-hidden="true" />
</button>
<ul
ref="dropdown-content"
class="dropdown-menu mini-pipeline-graph-dropdown-menu js-builds-dropdown-container">
<div
class="arrow-up"
aria-hidden="true"></div>
=======
ref="button"
ref="button"
:aria-label="stage.title">
:aria-label="stage.title">
<span v-html="svgHTML" aria-hidden="true"></span>
<span v-html="svgHTML" aria-hidden="true"></span>
...
@@ -148,7 +93,6 @@ export default {
...
@@ -148,7 +93,6 @@ export default {
</button>
</button>
<ul class="dropdown-menu mini-pipeline-graph-dropdown-menu js-builds-dropdown-container">
<ul class="dropdown-menu mini-pipeline-graph-dropdown-menu js-builds-dropdown-container">
<div class="arrow-up" aria-hidden="true"></div>
<div class="arrow-up" aria-hidden="true"></div>
>>>>>>> upstream/master
<div
<div
:class="dropdownClass"
:class="dropdownClass"
class="js-builds-dropdown-list scrollable-menu"
class="js-builds-dropdown-list scrollable-menu"
...
...
app/assets/javascripts/pipelines/components/stage.vue
View file @
328780bd
...
@@ -14,11 +14,7 @@
...
@@ -14,11 +14,7 @@
*/
*/
/* global Flash */
/* global Flash */
<<<<<<<
HEAD
import
{
statusClassToSvgMap
}
from
'
../../vue_shared/pipeline_svg_icons
'
;
=======
import
{
borderlessStatusIconEntityMap
}
from
'
../../vue_shared/ci_status_icons
'
;
import
{
borderlessStatusIconEntityMap
}
from
'
../../vue_shared/ci_status_icons
'
;
>>>>>>>
upstream
/
master
export
default
{
export
default
{
props
:
{
props
:
{
...
@@ -117,11 +113,7 @@ export default {
...
@@ -117,11 +113,7 @@ export default {
},
},
svgIcon
()
{
svgIcon
()
{
<<<<<<<
HEAD
return
statusClassToSvgMap
[
this
.
stage
.
status
.
icon
];
=======
return
borderlessStatusIconEntityMap
[
this
.
stage
.
status
.
icon
];
return
borderlessStatusIconEntityMap
[
this
.
stage
.
status
.
icon
];
>>>>>>>
upstream
/
master
},
},
},
},
};
};
...
...
app/assets/javascripts/vue_merge_request_widget/components/mr_widget_deployment.js
View file @
328780bd
...
@@ -108,11 +108,6 @@ export default {
...
@@ -108,11 +108,6 @@ export default {
</div>
</div>
<mr-widget-memory-usage
<mr-widget-memory-usage
v-if="deployment.metrics_url"
v-if="deployment.metrics_url"
<<<<<<< HEAD
:mr="mr"
:service="service"
=======
>>>>>>> upstream/master
:metricsUrl="deployment.metrics_url"
:metricsUrl="deployment.metrics_url"
/>
/>
</div>
</div>
...
...
app/assets/javascripts/vue_merge_request_widget/components/mr_widget_memory_usage.js
View file @
328780bd
...
@@ -5,11 +5,6 @@ import MRWidgetService from '../services/mr_widget_service';
...
@@ -5,11 +5,6 @@ import MRWidgetService from '../services/mr_widget_service';
export
default
{
export
default
{
name
:
'
MemoryUsage
'
,
name
:
'
MemoryUsage
'
,
props
:
{
props
:
{
<<<<<<<
HEAD
mr
:
{
type
:
Object
,
required
:
true
},
service
:
{
type
:
Object
,
required
:
true
},
=======
>>>>>>>
upstream
/
master
metricsUrl
:
{
type
:
String
,
required
:
true
},
metricsUrl
:
{
type
:
String
,
required
:
true
},
},
},
data
()
{
data
()
{
...
@@ -17,10 +12,7 @@ export default {
...
@@ -17,10 +12,7 @@ export default {
// memoryFrom: 0,
// memoryFrom: 0,
// memoryTo: 0,
// memoryTo: 0,
memoryMetrics
:
[],
memoryMetrics
:
[],
<<<<<<<
HEAD
=======
deploymentTime
:
0
,
deploymentTime
:
0
,
>>>>>>>
upstream
/
master
hasMetrics
:
false
,
hasMetrics
:
false
,
loadFailed
:
false
,
loadFailed
:
false
,
loadingMetrics
:
true
,
loadingMetrics
:
true
,
...
@@ -30,10 +22,6 @@ export default {
...
@@ -30,10 +22,6 @@ export default {
components
:
{
components
:
{
'
mr-memory-graph
'
:
MemoryGraph
,
'
mr-memory-graph
'
:
MemoryGraph
,
},
},
<<<<<<<
HEAD
methods
:
{
computeGraphData
(
metrics
)
{
=======
computed
:
{
computed
:
{
shouldShowLoading
()
{
shouldShowLoading
()
{
return
this
.
loadingMetrics
&&
!
this
.
hasMetrics
&&
!
this
.
loadFailed
;
return
this
.
loadingMetrics
&&
!
this
.
hasMetrics
&&
!
this
.
loadFailed
;
...
@@ -50,7 +38,6 @@ export default {
...
@@ -50,7 +38,6 @@ export default {
},
},
methods
:
{
methods
:
{
computeGraphData
(
metrics
,
deploymentTime
)
{
computeGraphData
(
metrics
,
deploymentTime
)
{
>>>>>>>
upstream
/
master
this
.
loadingMetrics
=
false
;
this
.
loadingMetrics
=
false
;
const
{
memory_values
}
=
metrics
;
const
{
memory_values
}
=
metrics
;
// if (memory_previous.length > 0) {
// if (memory_previous.length > 0) {
...
@@ -64,50 +51,6 @@ export default {
...
@@ -64,50 +51,6 @@ export default {
if
(
memory_values
.
length
>
0
)
{
if
(
memory_values
.
length
>
0
)
{
this
.
hasMetrics
=
true
;
this
.
hasMetrics
=
true
;
this
.
memoryMetrics
=
memory_values
[
0
].
values
;
this
.
memoryMetrics
=
memory_values
[
0
].
values
;
<<<<<<<
HEAD
}
},
},
mounted
()
{
this
.
$props
.
loadingMetrics
=
true
;
gl
.
utils
.
backOff
((
next
,
stop
)
=>
{
MRWidgetService
.
fetchMetrics
(
this
.
$props
.
metricsUrl
)
.
then
((
res
)
=>
{
if
(
res
.
status
===
statusCodes
.
NO_CONTENT
)
{
this
.
backOffRequestCounter
=
this
.
backOffRequestCounter
+=
1
;
if
(
this
.
backOffRequestCounter
<
3
)
{
next
();
}
else
{
stop
(
res
);
}
}
else
{
stop
(
res
);
}
})
.
catch
(
stop
);
})
.
then
((
res
)
=>
{
if
(
res
.
status
===
statusCodes
.
NO_CONTENT
)
{
return
res
;
}
return
res
.
json
();
})
.
then
((
res
)
=>
{
this
.
computeGraphData
(
res
.
metrics
);
return
res
;
})
.
catch
(()
=>
{
this
.
$props
.
loadFailed
=
true
;
});
},
template
:
`
<div class="mr-info-list mr-memory-usage">
<div class="legend"></div>
<p
v-if="loadingMetrics"
class="usage-info usage-info-loading">
=======
this
.
deploymentTime
=
deploymentTime
;
this
.
deploymentTime
=
deploymentTime
;
}
}
},
},
...
@@ -152,31 +95,11 @@ export default {
...
@@ -152,31 +95,11 @@ export default {
<p
<p
v-if="shouldShowLoading"
v-if="shouldShowLoading"
class="usage-info js-usage-info usage-info-loading">
class="usage-info js-usage-info usage-info-loading">
>>>>>>>
upstream
/
master
<i
<i
class="fa fa-spinner fa-spin usage-info-load-spinner"
class="fa fa-spinner fa-spin usage-info-load-spinner"
aria-hidden="true" />Loading deployment statistics.
aria-hidden="true" />Loading deployment statistics.
</p>
</p>
<p
<p
<<<<<<<
HEAD
v
-
if
=
"
!hasMetrics && !loadingMetrics
"
class
=
"
usage-info usage-info-loading
"
>
Deployment
statistics
are
not
available
currently
.
<
/p
>
<
p
v
-
if
=
"
hasMetrics
"
class
=
"
usage-info
"
>
Deployment
memory
usage
:
<
/p
>
<
p
v
-
if
=
"
loadFailed
"
class
=
"
usage-info
"
>
Failed
to
load
deployment
statistics
.
<
/p
>
<
mr
-
memory
-
graph
v
-
if
=
"
hasMetrics
"
:
metrics
=
"
memoryMetrics
"
=======
v-if="shouldShowMemoryGraph"
v-if="shouldShowMemoryGraph"
class="usage-info js-usage-info">
class="usage-info js-usage-info">
Deployment memory usage:
Deployment memory usage:
...
@@ -195,7 +118,6 @@ export default {
...
@@ -195,7 +118,6 @@ export default {
v-if="shouldShowMemoryGraph"
v-if="shouldShowMemoryGraph"
:metrics="memoryMetrics"
:metrics="memoryMetrics"
:deploymentTime="deploymentTime"
:deploymentTime="deploymentTime"
>>>>>>>
upstream
/
master
height="25"
height="25"
width="100" />
width="100" />
</div>
</div>
...
...
app/assets/javascripts/vue_shared/components/memory_graph.js
View file @
328780bd
...
@@ -2,10 +2,7 @@ export default {
...
@@ -2,10 +2,7 @@ export default {
name
:
'
MemoryGraph
'
,
name
:
'
MemoryGraph
'
,
props
:
{
props
:
{
metrics
:
{
type
:
Array
,
required
:
true
},
metrics
:
{
type
:
Array
,
required
:
true
},
<<<<<<<
HEAD
=======
deploymentTime
:
{
type
:
Number
,
required
:
true
},
deploymentTime
:
{
type
:
Number
,
required
:
true
},
>>>>>>>
upstream
/
master
width
:
{
type
:
String
,
required
:
true
},
width
:
{
type
:
String
,
required
:
true
},
height
:
{
type
:
String
,
required
:
true
},
height
:
{
type
:
String
,
required
:
true
},
},
},
...
@@ -13,29 +10,6 @@ export default {
...
@@ -13,29 +10,6 @@ export default {
return
{
return
{
pathD
:
''
,
pathD
:
''
,
pathViewBox
:
''
,
pathViewBox
:
''
,
<<<<<<<
HEAD
// dotX: '',
// dotY: '',
};
},
mounted
()
{
const
renderData
=
this
.
$props
.
metrics
.
map
(
v
=>
v
[
1
]);
const
maxMemory
=
Math
.
max
.
apply
(
null
,
renderData
);
const
minMemory
=
Math
.
min
.
apply
(
null
,
renderData
);
const
diff
=
maxMemory
-
minMemory
;
// const cx = 0;
// const cy = 0;
const
lineWidth
=
renderData
.
length
;
const
linePath
=
renderData
.
map
((
y
,
x
)
=>
`
${
x
}
${
maxMemory
-
y
}
`
);
this
.
pathD
=
`M
${
linePath
}
`
;
this
.
pathViewBox
=
`0 0
${
lineWidth
}
${
diff
}
`
;
},
template
:
`
<div class="memory-graph-container">
<svg :width="width" :height="height" xmlns="http://www.w3.org/2000/svg">
<path :d="pathD" :viewBox="pathViewBox" />
<!--<circle r="0.8" :cx="dotX" :cy="dotY" tranform="translate(0 -1)" /> -->
=======
dotX
:
''
,
dotX
:
''
,
dotY
:
''
,
dotY
:
''
,
};
};
...
@@ -135,7 +109,6 @@ export default {
...
@@ -135,7 +109,6 @@ export default {
<svg class="has-tooltip" :title="getFormattedMedian" :width="width" :height="height" xmlns="http://www.w3.org/2000/svg">
<svg class="has-tooltip" :title="getFormattedMedian" :width="width" :height="height" xmlns="http://www.w3.org/2000/svg">
<path :d="pathD" :viewBox="pathViewBox" />
<path :d="pathD" :viewBox="pathViewBox" />
<circle r="1.5" :cx="dotX" :cy="dotY" tranform="translate(0 -1)" />
<circle r="1.5" :cx="dotX" :cy="dotY" tranform="translate(0 -1)" />
>>>>>>>
upstream
/
master
</svg>
</svg>
</div>
</div>
`
,
`
,
...
...
app/assets/stylesheets/framework/memory_graph.scss
View file @
328780bd
.memory-graph-container
{
.memory-graph-container
{
svg
{
svg
{
background
:
$white-light
;
background
:
$white-light
;
<<<<<<<
HEAD
=======
cursor
:
pointer
;
cursor
:
pointer
;
&
:hover
{
&
:hover
{
box-shadow
:
0
0
4px
$gray-darkest
inset
;
box-shadow
:
0
0
4px
$gray-darkest
inset
;
}
}
>>>>>>>
upstream
/
master
}
}
path
{
path
{
fill
:
none
;
fill
:
none
;
stroke
:
$blue-500
;
stroke
:
$blue-500
;
<<<<<<<
HEAD
stroke-width
:
1px
;
=======
stroke-width
:
2px
;
stroke-width
:
2px
;
>>>>>>>
upstream
/
master
}
}
circle
{
circle
{
stroke
:
$blue-700
;
stroke
:
$blue-700
;
fill
:
$blue-700
;
fill
:
$blue-700
;
<<<<<<<
HEAD
=======
stroke-width
:
4px
;
stroke-width
:
4px
;
>>>>>>>
upstream
/
master
}
}
}
}
app/assets/stylesheets/pages/merge_requests.scss
View file @
328780bd
...
@@ -176,12 +176,7 @@
...
@@ -176,12 +176,7 @@
}
}
&
.mr-memory-usage
{
&
.mr-memory-usage
{
<<<<<<<
HEAD
margin-top
:
10px
;
margin-bottom
:
10px
;
=======
margin
:
5px
0
10px
25px
;
margin
:
5px
0
10px
25px
;
>>>>>>>
upstream
/
master
}
}
}
}
...
@@ -504,32 +499,9 @@
...
@@ -504,32 +499,9 @@
background
:
$border-color
;
background
:
$border-color
;
position
:
absolute
;
position
:
absolute
;
top
:
-5px
;
top
:
-5px
;
<<<<<<<
HEAD
}
}
}
}
.mr-info-list.mr-memory-usage
{
.legend
{
height
:
75%
;
=======
>>>>>>>
upstream
/
master
}
}
<<<<<<<
HEAD
p
{
float
:
left
;
padding-left
:
20px
;
&
:
:
before
{
top
:
13px
;
}
}
.memory-graph-container
{
float
:
left
;
margin-left
:
5px
;
=======
.mr-info-list.mr-memory-usage
{
.mr-info-list.mr-memory-usage
{
.legend
{
.legend
{
height
:
65%
;
height
:
65%
;
...
@@ -547,7 +519,6 @@
...
@@ -547,7 +519,6 @@
&
:
:
before
{
&
:
:
before
{
top
:
13px
;
top
:
13px
;
}
}
>>>>>>>
upstream
/
master
}
}
.memory-graph-container
{
.memory-graph-container
{
...
@@ -757,7 +728,6 @@
...
@@ -757,7 +728,6 @@
}
}
}
}
<<<<<<<
HEAD
#merge-request-widget-app
.loading
{
#merge-request-widget-app
.loading
{
padding-top
:
5px
;
padding-top
:
5px
;
border-top
:
1px
solid
$well-inner-border
;
border-top
:
1px
solid
$well-inner-border
;
...
@@ -851,15 +821,6 @@
...
@@ -851,15 +821,6 @@
}
}
}
}
.mr-memory-usage
{
p
.usage-info-loading
{
margin-bottom
:
6px
;
.usage-info-load-spinner
{
margin-right
:
10px
;
font-size
:
16px
;
}
=======
.mr-memory-usage
{
.mr-memory-usage
{
p
.usage-info-loading
,
p
.usage-info-loading
,
p
.usage-info-unavailable
,
p
.usage-info-unavailable
,
...
@@ -870,7 +831,6 @@
...
@@ -870,7 +831,6 @@
p
.usage-info-loading
.usage-info-load-spinner
{
p
.usage-info-loading
.usage-info-load-spinner
{
margin-right
:
10px
;
margin-right
:
10px
;
font-size
:
16px
;
font-size
:
16px
;
>>>>>>>
upstream
/
master
}
}
@media
(
max-width
:
$screen-md-min
)
{
@media
(
max-width
:
$screen-md-min
)
{
...
...
spec/javascripts/vue_mr_widget/components/mr_widget_deployment_spec.js
View file @
328780bd
...
@@ -9,10 +9,7 @@ const deploymentMockData = [
...
@@ -9,10 +9,7 @@ const deploymentMockData = [
name
:
'
review/diplo
'
,
name
:
'
review/diplo
'
,
url
:
'
/root/acets-review-apps/environments/15
'
,
url
:
'
/root/acets-review-apps/environments/15
'
,
stop_url
:
'
/root/acets-review-apps/environments/15/stop
'
,
stop_url
:
'
/root/acets-review-apps/environments/15/stop
'
,
<<<<<<<
HEAD
=======
metrics_url
:
'
/root/acets-review-apps/environments/15/deployments/1/metrics
'
,
metrics_url
:
'
/root/acets-review-apps/environments/15/deployments/1/metrics
'
,
>>>>>>>
upstream
/
master
external_url
:
'
http://diplo.
'
,
external_url
:
'
http://diplo.
'
,
external_url_formatted
:
'
diplo.
'
,
external_url_formatted
:
'
diplo.
'
,
deployed_at
:
'
2017-03-22T22:44:42.258Z
'
,
deployed_at
:
'
2017-03-22T22:44:42.258Z
'
,
...
@@ -160,10 +157,7 @@ describe('MRWidgetDeployment', () => {
...
@@ -160,10 +157,7 @@ describe('MRWidgetDeployment', () => {
expect
(
el
.
querySelector
(
'
.js-deploy-url
'
).
getAttribute
(
'
href
'
)).
toEqual
(
deployment
.
external_url
);
expect
(
el
.
querySelector
(
'
.js-deploy-url
'
).
getAttribute
(
'
href
'
)).
toEqual
(
deployment
.
external_url
);
expect
(
el
.
querySelector
(
'
.js-deploy-url
'
).
innerText
).
toContain
(
deployment
.
external_url_formatted
);
expect
(
el
.
querySelector
(
'
.js-deploy-url
'
).
innerText
).
toContain
(
deployment
.
external_url_formatted
);
expect
(
el
.
querySelector
(
'
.js-deploy-time
'
).
innerText
).
toContain
(
vm
.
formatDate
(
deployment
.
deployed_at
));
expect
(
el
.
querySelector
(
'
.js-deploy-time
'
).
innerText
).
toContain
(
vm
.
formatDate
(
deployment
.
deployed_at
));
<<<<<<<
HEAD
=======
expect
(
el
.
querySelector
(
'
.js-mr-memory-usage
'
)).
toBeDefined
();
expect
(
el
.
querySelector
(
'
.js-mr-memory-usage
'
)).
toBeDefined
();
>>>>>>>
upstream
/
master
expect
(
el
.
querySelector
(
'
button
'
)).
toBeDefined
();
expect
(
el
.
querySelector
(
'
button
'
)).
toBeDefined
();
});
});
...
@@ -173,10 +167,7 @@ describe('MRWidgetDeployment', () => {
...
@@ -173,10 +167,7 @@ describe('MRWidgetDeployment', () => {
Vue
.
nextTick
(()
=>
{
Vue
.
nextTick
(()
=>
{
expect
(
el
.
querySelectorAll
(
'
.ci-widget
'
).
length
).
toEqual
(
3
);
expect
(
el
.
querySelectorAll
(
'
.ci-widget
'
).
length
).
toEqual
(
3
);
<<<<<<<
HEAD
=======
expect
(
el
.
querySelectorAll
(
'
.js-mr-memory-usage
'
).
length
).
toEqual
(
3
);
expect
(
el
.
querySelectorAll
(
'
.js-mr-memory-usage
'
).
length
).
toEqual
(
3
);
>>>>>>>
upstream
/
master
done
();
done
();
});
});
});
});
...
@@ -188,10 +179,7 @@ describe('MRWidgetDeployment', () => {
...
@@ -188,10 +179,7 @@ describe('MRWidgetDeployment', () => {
expect
(
el
.
querySelectorAll
(
'
.js-deploy-meta
'
).
length
).
toEqual
(
0
);
expect
(
el
.
querySelectorAll
(
'
.js-deploy-meta
'
).
length
).
toEqual
(
0
);
expect
(
el
.
querySelectorAll
(
'
.js-deploy-url
'
).
length
).
toEqual
(
0
);
expect
(
el
.
querySelectorAll
(
'
.js-deploy-url
'
).
length
).
toEqual
(
0
);
expect
(
el
.
querySelectorAll
(
'
.js-deploy-time
'
).
length
).
toEqual
(
0
);
expect
(
el
.
querySelectorAll
(
'
.js-deploy-time
'
).
length
).
toEqual
(
0
);
<<<<<<<
HEAD
=======
expect
(
el
.
querySelectorAll
(
'
.js-mr-memory-usage
'
).
length
).
toEqual
(
0
);
expect
(
el
.
querySelectorAll
(
'
.js-mr-memory-usage
'
).
length
).
toEqual
(
0
);
>>>>>>>
upstream
/
master
expect
(
el
.
querySelectorAll
(
'
.button
'
).
length
).
toEqual
(
0
);
expect
(
el
.
querySelectorAll
(
'
.button
'
).
length
).
toEqual
(
0
);
done
();
done
();
});
});
...
...
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