Commit 46e49809 authored by GitLab Bot's avatar GitLab Bot

Automatic merge of gitlab-org/gitlab-ce master

parents 11b00d09 3077c356
......@@ -73,15 +73,14 @@ export default {
},
renderBlock() {
return (
this.job.merge_request ||
this.job.duration ||
this.job.finished_data ||
this.job.finished_at ||
this.job.erased_at ||
this.job.queued ||
this.hasTimeout ||
this.job.runner ||
this.job.coverage ||
this.job.tags.length ||
this.job.cancel_path
this.job.tags.length
);
},
hasArtifact() {
......@@ -160,7 +159,7 @@ export default {
</gl-link>
</div>
<div :class="{ block: renderBlock }">
<div v-if="renderBlock" class="block">
<detail-row
v-if="job.duration"
:value="duration"
......
---
title: Remove blank block from job sidebar
merge_request: 30754
author:
type: fixed
......@@ -3,8 +3,8 @@
We need to create a user in Jira which will have access to all projects that
need to integrate with GitLab.
As an example, we'll create a user named `gitlab` and add it to the `Jira-developers`
group.
As an example, we'll create a user named `gitlab` and add it to a new group
named `gitlab-developers`.
NOTE: **Note**
It is important that the Jira user created for the integration is given 'write'
......
......@@ -35,11 +35,11 @@ You can see GitLab's keyboard shortcuts by using <kbd>shift</kbd> + <kbd>?</kbd>
| Keyboard Shortcut | Description |
| ----------------- | ----------- |
| <kbd>g</kbd> + <kbd>a</kbd> | Go to the activity feed |
| <kbd>g</kbd> + <kbd>p</kbd> | Go to projects |
| <kbd>g</kbd> + <kbd>i</kbd> | Go to issues |
| <kbd>g</kbd> + <kbd>m</kbd> | Go to merge requests |
| <kbd>g</kbd> + <kbd>t</kbd> | Go to todos |
| <kbd>Shift</kbd> + <kbd>a</kbd> | Go to the activity feed |
| <kbd>Shift</kbd> + <kbd>p</kbd> | Go to projects |
| <kbd>Shift</kbd> + <kbd>i</kbd> | Go to issues |
| <kbd>Shift</kbd> + <kbd>m</kbd> | Go to merge requests |
| <kbd>Shift</kbd> + <kbd>t</kbd> | Go to todos |
## Project
......
......@@ -486,6 +486,31 @@ describe('Job App ', () => {
});
});
});
describe('sidebar', () => {
it('has no blank blocks', done => {
mock.onGet(props.endpoint).replyOnce(
200,
Object.assign({}, job, {
duration: null,
finished_at: null,
erased_at: null,
queued: null,
runner: null,
coverage: null,
tags: [],
cancel_path: null,
}),
);
vm.$nextTick(() => {
vm.$el.querySelectorAll('.blocks-container > *').forEach(block => {
expect(block.textContent.trim()).not.toBe('');
});
done();
});
});
});
});
describe('archived job', () => {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment