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
2090b217
Commit
2090b217
authored
Oct 12, 2018
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'upstream/master' into ce-to-ee-2018-10-12
parents
d05e0ae3
e6a6e15e
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
49 additions
and
5 deletions
+49
-5
app/assets/javascripts/jobs/components/job_log_controllers.vue
...ssets/javascripts/jobs/components/job_log_controllers.vue
+1
-1
app/assets/javascripts/jobs/components/sidebar.vue
app/assets/javascripts/jobs/components/sidebar.vue
+1
-1
app/assets/javascripts/jobs/job_details_bundle.js
app/assets/javascripts/jobs/job_details_bundle.js
+4
-2
changelogs/unreleased/52608-sidebar.yml
changelogs/unreleased/52608-sidebar.yml
+5
-0
spec/features/projects/jobs_spec.rb
spec/features/projects/jobs_spec.rb
+38
-1
No files found.
app/assets/javascripts/jobs/components/job_log_controllers.vue
View file @
2090b217
...
...
@@ -65,7 +65,7 @@ export default {
};
</
script
>
<
template
>
<div
class=
"top-bar"
>
<div
class=
"top-bar
affix js-top-bar
"
>
<!-- truncate information -->
<div
class=
"js-truncated-info truncated-info d-none d-sm-block float-left"
>
<template
v-if=
"isTraceSizeVisible"
>
...
...
app/assets/javascripts/jobs/components/sidebar.vue
View file @
2090b217
...
...
@@ -110,7 +110,7 @@ export default {
</
script
>
<
template
>
<aside
class=
"right-sidebar right-sidebar-expanded build-sidebar"
class=
"
js-build-sidebar
right-sidebar right-sidebar-expanded build-sidebar"
data-offset-top=
"101"
data-spy=
"affix"
>
...
...
app/assets/javascripts/jobs/job_details_bundle.js
View file @
2090b217
...
...
@@ -9,8 +9,7 @@ import createStore from './store';
export
default
()
=>
{
const
{
dataset
}
=
document
.
getElementById
(
'
js-job-details-vue
'
);
// eslint-disable-next-line no-new
new
Job
();
const
store
=
createStore
();
store
.
dispatch
(
'
setJobEndpoint
'
,
dataset
.
endpoint
);
...
...
@@ -71,4 +70,7 @@ export default () => {
});
},
});
// eslint-disable-next-line no-new
new
Job
();
};
changelogs/unreleased/52608-sidebar.yml
0 → 100644
View file @
2090b217
---
title
:
Hides sidebar for job page in mobile
merge_request
:
author
:
type
:
fixed
spec/features/projects/jobs_spec.rb
View file @
2090b217
...
...
@@ -667,7 +667,7 @@ describe 'Jobs', :clean_gitlab_redis_shared_state do
context
'with erased job'
,
:js
do
let
(
:job
)
{
create
(
:ci_build
,
:erased
,
pipeline:
pipeline
)
}
it
'renders erased job warning'
do
it
'renders erased job warning'
do
visit
project_job_path
(
project
,
job
)
wait_for_requests
...
...
@@ -676,6 +676,43 @@ describe 'Jobs', :clean_gitlab_redis_shared_state do
end
end
end
context
'without erased job'
,
:js
do
let
(
:job
)
{
create
(
:ci_build
,
pipeline:
pipeline
)
}
it
'does not render erased job warning'
do
visit
project_job_path
(
project
,
job
)
wait_for_requests
expect
(
page
).
not_to
have_css
(
'.js-job-erased-block'
)
end
end
context
'on mobile'
,
:js
do
let
(
:job
)
{
create
(
:ci_build
,
pipeline:
pipeline
)
}
it
'renders collpased sidebar'
do
page
.
current_window
.
resize_to
(
600
,
800
)
visit
project_job_path
(
project
,
job
)
wait_for_requests
expect
(
page
).
to
have_css
(
'.js-build-sidebar.right-sidebar-collapsed'
,
visible:
false
)
expect
(
page
).
not_to
have_css
(
'.js-build-sidebar.right-sidebar-expanded'
,
visible:
false
)
end
end
context
'on desktop'
,
:js
do
let
(
:job
)
{
create
(
:ci_build
,
pipeline:
pipeline
)
}
it
'renders expanded sidebar'
do
visit
project_job_path
(
project
,
job
)
wait_for_requests
expect
(
page
).
to
have_css
(
'.js-build-sidebar.right-sidebar-expanded'
)
expect
(
page
).
not_to
have_css
(
'.js-build-sidebar.right-sidebar-collpased'
)
end
end
end
describe
"POST /:project/jobs/:id/cancel"
,
:js
do
...
...
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