Skip to content
Snippets Groups Projects
Commit ccf37fd3 authored by GitLab Bot's avatar GitLab Bot
Browse files

Add latest changes from gitlab-org/gitlab@master

parent 79d62647
No related branches found
No related tags found
No related merge requests found
Showing
with 143 additions and 20 deletions
Loading
Loading
@@ -51,7 +51,6 @@ rules:
no-jquery/no-animate-toggle: off
no-jquery/no-event-shorthand: off
no-jquery/no-serialize: error
no-jquery/no-sizzle: off
promise/always-return: off
promise/no-callback-in-promise: off
overrides:
Loading
Loading
Loading
Loading
@@ -1359,7 +1359,8 @@ export default class Notes {
const $systemNote = $(systemNote);
const headerMessage = $systemNote
.find('.note-text')
.find('p:first')
.find('p')
.first()
.text()
.replace(':', '');
 
Loading
Loading
Loading
Loading
@@ -11,7 +11,9 @@ export default function notificationsDropdown() {
}
 
const notificationLevel = $(this).data('notificationLevel');
const form = $(this).parents('.notification-form:first');
const form = $(this)
.parents('.notification-form')
.first();
 
form.find('.js-notification-loading').toggleClass('fa-bell fa-spin fa-spinner');
if (form.hasClass('no-label')) {
Loading
Loading
Loading
Loading
@@ -31,7 +31,7 @@ export default class NotificationsForm {
}
 
saveEvent($checkbox, $parent) {
const form = $parent.parents('form:first');
const form = $parent.parents('form').first();
 
this.showCheckboxLoadingSpinner($parent);
 
Loading
Loading
<script>
import GetSnippetQuery from '../queries/snippet.query.graphql';
import SnippetHeader from './snippet_header.vue';
import SnippetTitle from './snippet_title.vue';
import { GlLoadingIcon } from '@gitlab/ui';
 
export default {
components: {
SnippetHeader,
SnippetTitle,
GlLoadingIcon,
},
apollo: {
Loading
Loading
@@ -45,6 +47,9 @@ export default {
:size="2"
class="loading-animation prepend-top-20 append-bottom-20"
/>
<snippet-header v-else :snippet="snippet" />
<template v-else>
<snippet-header :snippet="snippet" />
<snippet-title :snippet="snippet" />
</template>
</div>
</template>
<script>
import TimeAgoTooltip from '~/vue_shared/components/time_ago_tooltip.vue';
import { GlSprintf } from '@gitlab/ui';
export default {
components: {
TimeAgoTooltip,
GlSprintf,
},
props: {
snippet: {
type: Object,
required: true,
},
},
};
</script>
<template>
<div class="snippet-header limited-header-width">
<h2 class="snippet-title prepend-top-0 mb-3" data-qa-selector="snippet_title">
{{ snippet.title }}
</h2>
<div v-if="snippet.description" class="description" data-qa-selector="snippet_description">
<div class="md">{{ snippet.description }}</div>
</div>
<small v-if="snippet.updatedAt !== snippet.createdAt" class="edited-text">
<gl-sprintf message="Edited %{timeago}">
<template #timeago>
<time-ago-tooltip :time="snippet.updatedAt" tooltip-placement="bottom" />
</template>
</gl-sprintf>
</small>
</div>
</template>
Loading
Loading
@@ -21,7 +21,9 @@ export default class TreeView {
}
});
// Show the "Loading commit data" for only the first element
$('span.log_loading:first').removeClass('hide');
$('span.log_loading')
.first()
.removeClass('hide');
}
 
initKeyNav() {
Loading
Loading
Loading
Loading
@@ -625,7 +625,7 @@ Note: It is recommended to log into the `git` user using `sudo -i -u git` or `su
 
## GitLab.com
 
We've also detailed [our architecture of GitLab.com](https://about.gitlab.com/handbook/engineering/infrastructure/production-architecture/) but this is probably over the top unless you have millions of users.
We've also detailed [our architecture of GitLab.com](https://about.gitlab.com/handbook/engineering/infrastructure/production/architecture/) but this is probably over the top unless you have millions of users.
 
[alertmanager-omnibus]: https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/files/gitlab-config-template/gitlab.rb.template
[alertmanager-charts]: https://github.com/helm/charts/tree/master/stable/prometheus
Loading
Loading
Loading
Loading
@@ -58,6 +58,7 @@ are very appreciative of the work done by translators and proofreaders!
- Japanese
- Hiroyuki Sato - [GitLab](https://gitlab.com/hiroponz), [Crowdin](https://crowdin.com/profile/hiroponz)
- Tomo Dote - [GitLab](https://gitlab.com/fu7mu4), [Crowdin](https://crowdin.com/profile/fu7mu4)
- Hiromi Nozawa - [GitLab](https://gitlab.com/hir0mi), [Crowdin](https://crowdin.com/profile/hir0mi)
- Korean
- Chang-Ho Cha - [GitLab](https://gitlab.com/changho-cha), [Crowdin](https://crowdin.com/profile/zzazang)
- Ji Hun Oh - [GitLab](https://gitlab.com/Baw-Appie), [Crowdin](https://crowdin.com/profile/BawAppie)
Loading
Loading
doc/user/project/releases/img/custom_notifications_dropdown_v12_5.png

29.5 KiB

doc/user/project/releases/img/custom_notifications_new_release_v12_4.png

64.4 KiB

doc/user/project/releases/img/custom_notifications_new_release_v12_5.png

45 KiB

doc/user/project/releases/img/new_tag_12_5.png

41.4 KiB | W: 1225px | H: 998px

doc/user/project/releases/img/new_tag_12_5.png

40.2 KiB | W: 1275px | H: 995px

doc/user/project/releases/img/new_tag_12_5.png
doc/user/project/releases/img/new_tag_12_5.png
doc/user/project/releases/img/new_tag_12_5.png
doc/user/project/releases/img/new_tag_12_5.png
  • 2-up
  • Swipe
  • Onion skin
doc/user/project/releases/img/tags_12_5.png

43.6 KiB | W: 1225px | H: 998px

doc/user/project/releases/img/tags_12_5.png

30.8 KiB | W: 1275px | H: 541px

doc/user/project/releases/img/tags_12_5.png
doc/user/project/releases/img/tags_12_5.png
doc/user/project/releases/img/tags_12_5.png
doc/user/project/releases/img/tags_12_5.png
  • 2-up
  • Swipe
  • Onion skin
Loading
Loading
@@ -6,7 +6,7 @@ type: reference, howto
 
> [Introduced](https://gitlab.com/gitlab-org/gitlab-foss/issues/41766) in GitLab 11.7.
 
It's typical to create a [Git tag](../../../university/training/topics/tags.md) at
It is typical to create a [Git tag](../../../university/training/topics/tags.md) at
the moment of release to introduce a checkpoint in your source code
history, but in most cases your users will need compiled objects or other
assets output by your CI system to use them, not just the raw source
Loading
Loading
@@ -38,7 +38,7 @@ Release descriptions are unrelated. Description supports [Markdown](../../markdo
 
You can currently add the following types of assets to each Release:
 
- [Source code](#source-code): state of the repo at the time of the Release
- [Source code](#source-code): state of the repository at the time of the Release
- [Links](#links): to content such as built binaries or documentation
 
GitLab will support more asset types in the future, including objects such
Loading
Loading
@@ -117,11 +117,14 @@ of GitLab.
 
You can be notified by email when a new Release is created for your project.
 
To subscribe to these notifications, navigate to your **Project**'s landing page, then click on the
bell icon. Choose **Custom** from the dropdown menu. The
following modal window will be then displayed, from which you can select **New release** to complete your subscription to new Releases notifications.
To subscribe to Release notifications:
 
![Custom notification - New release](img/custom_notifications_new_release_v12_4.png)
1. Navigate to your **Project**'s landing page.
1. Click the bell icon (**Notification setting**).
1. Select **Custom** from the dropdown menu.
![Custom notification - Dropdown menu](img/custom_notifications_dropdown_v12_5.png)
1. Select **New release**.
![Custom notification - New release](img/custom_notifications_new_release_v12_5.png)
 
## Add release notes to Git tags
 
Loading
Loading
@@ -145,7 +148,7 @@ You can also edit an existing tag to add release notes:
 
![tags](img/tags_12_5.png "Addition of note to an existing tag")
 
## Release Evidence
## Release evidence
 
> [Introduced](https://gitlab.com/gitlab-org/gitlab/issues/26019) in GitLab 12.6.
 
Loading
Loading
@@ -154,11 +157,11 @@ parallel. This dataset will be a snapshot this new release (including linked
milestones and issues) at moment of creation. Such collection of data will
provide a chain of custody and facilitate processes like external audits, for example.
 
The gathered Evidence data is stored in the database upon creation of a new
The gathered evidence data is stored in the database upon creation of a new
release as a JSON object. In GitLab 12.6, a link to
the Evidence data is provided for [each Release](#releases-list).
the evidence data is provided for [each Release](#releases-list).
 
Here's what this object can look like:
Here is what this object can look like:
 
```json
{
Loading
Loading
Loading
Loading
@@ -88,6 +88,7 @@ module Gitlab
end
 
def shas_eql?(sha1, sha2)
return true if sha1.nil? && sha2.nil?
return false if sha1.nil? || sha2.nil?
return false unless sha1.class == sha2.class
 
Loading
Loading
Loading
Loading
@@ -117,7 +117,7 @@ module Gitlab
def format_time(timestamp)
return timestamp if timestamp.is_a?(String)
 
Time.at(timestamp).utc.iso8601(6)
Time.at(timestamp).utc.iso8601(3)
end
 
def limited_job_args(args)
Loading
Loading
Loading
Loading
@@ -50,7 +50,8 @@ module QA
end
end
 
describe 'Auto DevOps support', :orchestrated, :kubernetes do
# Failure issue: https://gitlab.com/gitlab-org/gitlab/issues/118481
describe 'Auto DevOps support', :orchestrated, :kubernetes, :quarantine do
context 'when rbac is enabled' do
before(:all) do
@cluster = Service::KubernetesCluster.new.create!
Loading
Loading
import SnippetTitle from '~/snippets/components/snippet_title.vue';
import { GlSprintf } from '@gitlab/ui';
import { shallowMount } from '@vue/test-utils';
describe('Snippet header component', () => {
let wrapper;
const title = 'The property of Thor';
const description = 'Do not touch this hammer';
const snippet = {
snippet: {
title,
description,
},
};
function createComponent({ props = snippet } = {}) {
const defaultProps = Object.assign({}, props);
wrapper = shallowMount(SnippetTitle, {
sync: false,
propsData: {
...defaultProps,
},
});
}
afterEach(() => {
wrapper.destroy();
});
it('renders itself', () => {
createComponent();
expect(wrapper.find('.snippet-header').exists()).toBe(true);
});
it('renders snippets title and description', () => {
createComponent();
expect(wrapper.text().trim()).toContain(title);
expect(wrapper.text().trim()).toContain(description);
});
it('does not render recent changes time stamp if there were no updates', () => {
createComponent();
expect(wrapper.find(GlSprintf).exists()).toBe(false);
});
it('does not render recent changes time stamp if the time for creation and updates match', () => {
const props = Object.assign(snippet, {
snippet: {
...snippet.snippet,
createdAt: '2019-12-16T21:45:36Z',
updatedAt: '2019-12-16T21:45:36Z',
},
});
createComponent({ props });
expect(wrapper.find(GlSprintf).exists()).toBe(false);
});
it('renders translated string with most recent changes timestamp if changes were made', () => {
const props = Object.assign(snippet, {
snippet: {
...snippet.snippet,
createdAt: '2019-12-16T21:45:36Z',
updatedAt: '2019-15-16T21:45:36Z',
},
});
createComponent({ props });
expect(wrapper.find(GlSprintf).exists()).toBe(true);
});
});
Loading
Loading
@@ -73,7 +73,8 @@ describe Gitlab::Git do
[sha, short_sha, true],
[sha, sha.reverse, false],
[sha, too_short_sha, false],
[sha, nil, false]
[sha, nil, false],
[nil, nil, true]
]
end
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment