Commit 3edfab87 authored by GitLab Bot's avatar GitLab Bot

Automatic merge of gitlab-org/gitlab master

parents 1e09abac 0226a822
...@@ -5,7 +5,6 @@ module Pages ...@@ -5,7 +5,6 @@ module Pages
include Gitlab::Utils::StrongMemoize include Gitlab::Utils::StrongMemoize
LegacyStorageDisabledError = Class.new(::StandardError) LegacyStorageDisabledError = Class.new(::StandardError)
MIGRATED_FILE_NAME = "_migrated.zip"
def initialize(project, trim_prefix: nil, domain: nil) def initialize(project, trim_prefix: nil, domain: nil)
@project = project @project = project
...@@ -55,7 +54,7 @@ module Pages ...@@ -55,7 +54,7 @@ module Pages
return if deployment.file.file_storage? && !Feature.enabled?(:pages_serve_with_zip_file_protocol, project) return if deployment.file.file_storage? && !Feature.enabled?(:pages_serve_with_zip_file_protocol, project)
return if deployment.file.filename == MIGRATED_FILE_NAME && !Feature.enabled?(:pages_serve_from_migrated_zip, project) return if deployment.migrated? && !Feature.enabled?(:pages_serve_from_migrated_zip, project)
global_id = ::Gitlab::GlobalId.build(deployment, id: deployment.id).to_s global_id = ::Gitlab::GlobalId.build(deployment, id: deployment.id).to_s
......
...@@ -4,12 +4,15 @@ ...@@ -4,12 +4,15 @@
class PagesDeployment < ApplicationRecord class PagesDeployment < ApplicationRecord
include FileStoreMounter include FileStoreMounter
MIGRATED_FILE_NAME = "_migrated.zip"
attribute :file_store, :integer, default: -> { ::Pages::DeploymentUploader.default_store } attribute :file_store, :integer, default: -> { ::Pages::DeploymentUploader.default_store }
belongs_to :project, optional: false belongs_to :project, optional: false
belongs_to :ci_build, class_name: 'Ci::Build', optional: true belongs_to :ci_build, class_name: 'Ci::Build', optional: true
scope :older_than, -> (id) { where('id < ?', id) } scope :older_than, -> (id) { where('id < ?', id) }
scope :migrated_from_legacy_storage, -> { where(file: MIGRATED_FILE_NAME) }
validates :file, presence: true validates :file, presence: true
validates :file_store, presence: true, inclusion: { in: ObjectStorage::SUPPORTED_STORES } validates :file_store, presence: true, inclusion: { in: ObjectStorage::SUPPORTED_STORES }
...@@ -25,6 +28,10 @@ class PagesDeployment < ApplicationRecord ...@@ -25,6 +28,10 @@ class PagesDeployment < ApplicationRecord
# this is to be adressed in https://gitlab.com/groups/gitlab-org/-/epics/589 # this is to be adressed in https://gitlab.com/groups/gitlab-org/-/epics/589
end end
def migrated?
file.filename == MIGRATED_FILE_NAME
end
private private
def set_size def set_size
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
- can_edit = can?(current_user, :admin_project, @project) - can_edit = can?(current_user, :admin_project, @project)
.dropdown.btn-group .dropdown.btn-group
%button.btn.gl-button.rounded-right.text-center{ class: ('has-tooltip' if type == :icon), title: (_('Import issues') if type == :icon), %button.btn.gl-button.btn-default.rounded-right.text-center{ class: ('has-tooltip' if type == :icon), title: (_('Import issues') if type == :icon),
data: { toggle: 'dropdown', qa_selector: 'import_issues_button' }, 'aria-label' => _('Import issues'), 'aria-haspopup' => 'true', 'aria-expanded' => 'false' } data: { toggle: 'dropdown', qa_selector: 'import_issues_button' }, 'aria-label' => _('Import issues'), 'aria-haspopup' => 'true', 'aria-expanded' => 'false' }
- if type == :icon - if type == :icon
= sprite_icon('import') = sprite_icon('import')
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
- if project_select_button - if project_select_button
= render 'shared/new_project_item_select', path: 'issues/new', label: _('New issue'), type: :issues, with_feature_enabled: 'issues' = render 'shared/new_project_item_select', path: 'issues/new', label: _('New issue'), type: :issues, with_feature_enabled: 'issues'
- else - else
= link_to _('New issue'), button_path, class: 'btn btn-success', id: 'new_issue_link' = link_to _('New issue'), button_path, class: 'btn gl-button btn-success', id: 'new_issue_link'
- if show_import_button - if show_import_button
= render 'projects/issues/import_csv/button', type: :text = render 'projects/issues/import_csv/button', type: :text
......
---
title: Apply new GitLab UI for buttons in empty issue placeholder
merge_request: 53554
author: Yogi (@yo)
type: other
...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated ...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated
type: reference type: reference
--- ---
# File hooks # File hooks **(FREE)**
> - Introduced in GitLab 10.6. > - Introduced in GitLab 10.6.
> - Until GitLab 12.8, the feature name was Plugins. > - Until GitLab 12.8, the feature name was Plugins.
......
...@@ -6,7 +6,7 @@ type: reference ...@@ -6,7 +6,7 @@ type: reference
description: "Set and configure Git protocol v2" description: "Set and configure Git protocol v2"
--- ---
# Configuring Git Protocol v2 # Configuring Git Protocol v2 **(FREE)**
> - [Introduced](https://gitlab.com/gitlab-org/gitlab-foss/-/issues/46555) in GitLab 11.4. > - [Introduced](https://gitlab.com/gitlab-org/gitlab-foss/-/issues/46555) in GitLab 11.4.
> - [Temporarily disabled](https://gitlab.com/gitlab-org/gitlab-foss/-/issues/55769) in GitLab 11.5.8, 11.6.6, 11.7.1, and 11.8+. > - [Temporarily disabled](https://gitlab.com/gitlab-org/gitlab-foss/-/issues/55769) in GitLab 11.5.8, 11.6.6, 11.7.1, and 11.8+.
......
...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated ...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated
type: reference, howto type: reference, howto
--- ---
# PlantUML & GitLab # PlantUML & GitLab **(FREE)**
> [Introduced](https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/8537) in GitLab 8.16. > [Introduced](https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/8537) in GitLab 8.16.
......
...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated ...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated
type: reference type: reference
--- ---
# Invalidate Markdown Cache # Invalidate Markdown Cache **(FREE)**
For performance reasons, GitLab caches the HTML version of Markdown text For performance reasons, GitLab caches the HTML version of Markdown text
in fields like comments, issue descriptions, and merge request descriptions. These in fields like comments, issue descriptions, and merge request descriptions. These
......
...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated ...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated
type: reference, api type: reference, api
--- ---
# Branches API # Branches API **(FREE)**
This API operates on [repository branches](../user/project/repository/branches/index.md). This API operates on [repository branches](../user/project/repository/branches/index.md).
......
...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated ...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated
type: reference, api type: reference, api
--- ---
# Commits API # Commits API **(FREE)**
## List repository commits ## List repository commits
......
...@@ -5,7 +5,7 @@ info: To determine the technical writer assigned to the Stage/Group associated w ...@@ -5,7 +5,7 @@ info: To determine the technical writer assigned to the Stage/Group associated w
type: reference, api type: reference, api
--- ---
# Discussions API # Discussions API **(FREE)**
Discussions are a set of related notes on: Discussions are a set of related notes on:
......
...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated ...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated
type: reference, api type: reference, api
--- ---
# Keys API # Keys API **(FREE)**
## Get SSH key with user by ID of an SSH key ## Get SSH key with user by ID of an SSH key
......
...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated ...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated
type: reference, api type: reference, api
--- ---
# Markdown API # Markdown API **(FREE)**
> [Introduced](https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/18926) in GitLab 11.0. > [Introduced](https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/18926) in GitLab 11.0.
......
...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated ...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated
type: reference, api type: reference, api
--- ---
# Merge request context commits API # Merge request context commits API **(FREE)**
## List MR context commits ## List MR context commits
......
...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated ...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated
type: reference, api type: reference, api
--- ---
# Merge requests API # Merge requests API **(FREE)**
> - `author_id`, `author_username`, and `assignee_id` were [introduced](https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/13060) in GitLab 9.5. > - `author_id`, `author_username`, and `assignee_id` were [introduced](https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/13060) in GitLab 9.5.
> - `my_reaction_emoji` was [introduced](https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/14016) in GitLab 10.0. > - `my_reaction_emoji` was [introduced](https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/14016) in GitLab 10.0.
......
...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated ...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated
type: reference, api type: reference, api
--- ---
# Project badges API # Project badges API **(FREE)**
> [Introduced](https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/17082) in GitLab 10.6. > [Introduced](https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/17082) in GitLab 10.6.
......
...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated ...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated
type: reference, api type: reference, api
--- ---
# Project import/export API # Project import/export API **(FREE)**
> [Introduced](https://gitlab.com/gitlab-org/gitlab-foss/-/issues/41899) in GitLab 10.6. > [Introduced](https://gitlab.com/gitlab-org/gitlab-foss/-/issues/41899) in GitLab 10.6.
......
...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated ...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated
type: reference, api type: reference, api
--- ---
# Project statistics API # Project statistics API **(FREE)**
Every API call to [project](../user/project/index.md) statistics must be authenticated. Every API call to [project](../user/project/index.md) statistics must be authenticated.
......
...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated ...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated
type: reference, api type: reference, api
--- ---
# Project templates API # Project templates API **(FREE)**
This API is a project-specific version of these endpoints: This API is a project-specific version of these endpoints:
......
...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated ...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated
type: reference, api type: reference, api
--- ---
# Protected branches API # Protected branches API **(FREE)**
> Introduced in GitLab 9.5. > Introduced in GitLab 9.5.
......
...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated ...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated
type: reference, api type: reference, api
--- ---
# Protected tags API # Protected tags API **(FREE)**
> Introduced in GitLab 11.3. > Introduced in GitLab 11.3.
......
...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated ...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated
type: reference, api type: reference, api
--- ---
# Project remote mirrors API # Project remote mirrors API **(FREE)**
[Push mirrors](../user/project/repository/repository_mirroring.md#pushing-to-a-remote-repository) [Push mirrors](../user/project/repository/repository_mirroring.md#pushing-to-a-remote-repository)
defined on a project's repository settings are called "remote mirrors", and the defined on a project's repository settings are called "remote mirrors", and the
......
...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated ...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated
type: reference, api type: reference, api
--- ---
# Repository files API # Repository files API **(FREE)**
**CRUD for repository files** **CRUD for repository files**
......
...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated ...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated
type: reference, api type: reference, api
--- ---
# Repository submodules API # Repository submodules API **(FREE)**
> [Introduced](https://gitlab.com/gitlab-org/gitlab-foss/-/issues/41213) in GitLab 11.5 > [Introduced](https://gitlab.com/gitlab-org/gitlab-foss/-/issues/41213) in GitLab 11.5
......
...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated ...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated
type: reference, api type: reference, api
--- ---
# Search API # Search API **(FREE)**
> - [Introduced](https://gitlab.com/gitlab-org/gitlab-foss/-/issues/41763) in GitLab 10.5. > - [Introduced](https://gitlab.com/gitlab-org/gitlab-foss/-/issues/41763) in GitLab 10.5.
> - [Feature flag `search_filter_by_confidential` removed](https://gitlab.com/gitlab-org/gitlab/-/issues/244923) in GitLab 13.6. > - [Feature flag `search_filter_by_confidential` removed](https://gitlab.com/gitlab-org/gitlab/-/issues/244923) in GitLab 13.6.
......
...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated ...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated
type: reference, api type: reference, api
--- ---
# Suggest Changes API # Suggest Changes API **(FREE)**
Every API call to suggestions must be authenticated. Every API call to suggestions must be authenticated.
......
...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated ...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated
type: reference, api type: reference, api
--- ---
# Tags API # Tags API **(FREE)**
## List project repository tags ## List project repository tags
......
...@@ -4,7 +4,7 @@ group: Source Code ...@@ -4,7 +4,7 @@ group: Source Code
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments
--- ---
# Approval Rules development guide # Approval Rules development guide **(FREE)**
This document explains the backend design and flow of all related functionality This document explains the backend design and flow of all related functionality
about [merge request approval rules](../user/project/merge_requests/merge_request_approvals.md). about [merge request approval rules](../user/project/merge_requests/merge_request_approvals.md).
......
...@@ -4,7 +4,7 @@ group: Source Code ...@@ -4,7 +4,7 @@ group: Source Code
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments
--- ---
# Code Intelligence # Code Intelligence **(FREE)**
> [Introduced](https://gitlab.com/groups/gitlab-org/-/epics/1576) in GitLab 13.1. > [Introduced](https://gitlab.com/groups/gitlab-org/-/epics/1576) in GitLab 13.1.
......
...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated ...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated
type: reference, api type: reference, api
--- ---
# Internal API # Internal API **(FREE)**
The internal API is used by different GitLab components, it can not be The internal API is used by different GitLab components, it can not be
used by other consumers. This documentation is intended for people used by other consumers. This documentation is intended for people
......
...@@ -4,7 +4,7 @@ group: Source Code ...@@ -4,7 +4,7 @@ group: Source Code
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments
--- ---
# Git LFS # Git LFS **(FREE)**
## Deep Dive ## Deep Dive
......
...@@ -4,7 +4,7 @@ group: Source Code ...@@ -4,7 +4,7 @@ group: Source Code
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments
--- ---
# Merge request widget extensions # Merge request widget extensions **(FREE)**
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/44616) in GitLab 13.6. > [Introduced](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/44616) in GitLab 13.6.
......
...@@ -6,7 +6,7 @@ comments: false ...@@ -6,7 +6,7 @@ comments: false
type: index type: index
--- ---
# GitLab basics guides # GitLab basics guides **(FREE)**
This section provides resources to help you start working with GitLab and Git by focusing This section provides resources to help you start working with GitLab and Git by focusing
on the basic features that you will need to use. on the basic features that you will need to use.
......
...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated ...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated
type: howto type: howto
--- ---
# Add a file to a repository # Add a file to a repository **(FREE)**
Adding files to a repository is a small, but key task. Bringing files in to a repository, Adding files to a repository is a small, but key task. Bringing files in to a repository,
such as code, images, or documents, allows them to be tracked by Git, even though they such as code, images, or documents, allows them to be tracked by Git, even though they
......
...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated ...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated
type: howto, reference type: howto, reference
--- ---
# Edit files through the command line # Edit files through the command line **(FREE)**
When [working with Git from the command line](start-using-git.md), you need to When [working with Git from the command line](start-using-git.md), you need to
use more than just the Git commands. There are several basic commands that you should use more than just the Git commands. There are several basic commands that you should
......
...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated ...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated
type: howto type: howto
--- ---
# How to create a branch # How to create a branch **(FREE)**
A branch is an independent line of development in a [project](../user/project/index.md). A branch is an independent line of development in a [project](../user/project/index.md).
......
...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated ...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated
disqus_identifier: 'https://docs.gitlab.com/ee/workflow/workflow.html' disqus_identifier: 'https://docs.gitlab.com/ee/workflow/workflow.html'
--- ---
# Feature branch workflow # Feature branch workflow **(FREE)**
1. Clone project: 1. Clone project:
......
...@@ -6,7 +6,7 @@ type: howto, tutorial ...@@ -6,7 +6,7 @@ type: howto, tutorial
description: "Introduction to using Git through the command line." description: "Introduction to using Git through the command line."
--- ---
# Start using Git on the command line # Start using Git on the command line **(FREE)**
[Git](https://git-scm.com/) is an open-source distributed version control system designed to [Git](https://git-scm.com/) is an open-source distributed version control system designed to
handle everything from small to very large projects with speed and efficiency. GitLab is built handle everything from small to very large projects with speed and efficiency. GitLab is built
......
...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated ...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated
type: reference, how-to type: reference, how-to
--- ---
# Sourcegraph integration # Sourcegraph integration **(FREE)**
> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/16556) in GitLab 12.5. > - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/16556) in GitLab 12.5.
> - Note that this integration is in BETA and deployed [behind a feature flag](#enable-the-sourcegraph-feature-flag) disabled by default. Self-managed instances can opt to enable it. > - Note that this integration is in BETA and deployed [behind a feature flag](#enable-the-sourcegraph-feature-flag) disabled by default. Self-managed instances can opt to enable it.
......
...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated ...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated
comments: false comments: false
--- ---
# Get started with GitLab # Get started with GitLab **(FREE)**
## Organize ## Organize
......
...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated ...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated
type: how-tos type: how-tos
--- ---
# Develop on a feature branch # Develop on a feature branch **(FREE)**
GitLab values encourage the use of [Minimal Viable Change (MVC)](https://about.gitlab.com/handbook/values/#minimal-viable-change-mvc). GitLab values encourage the use of [Minimal Viable Change (MVC)](https://about.gitlab.com/handbook/values/#minimal-viable-change-mvc).
However, viable changes are not always small. In such cases, it can help to set up a dedicated feature branch. However, viable changes are not always small. In such cases, it can help to set up a dedicated feature branch.
......
...@@ -6,7 +6,7 @@ type: concepts, howto ...@@ -6,7 +6,7 @@ type: concepts, howto
description: "Introduction to Git rebase, force-push, and resolving merge conflicts through the command line." description: "Introduction to Git rebase, force-push, and resolving merge conflicts through the command line."
--- ---
# Introduction to Git rebase, force-push, and merge conflicts # Introduction to Git rebase, force-push, and merge conflicts **(FREE)**
This guide helps you to get started with rebasing, force-pushing, and fixing This guide helps you to get started with rebasing, force-pushing, and fixing
merge conflicts locally. merge conflicts locally.
......
...@@ -6,7 +6,7 @@ description: 'This article describes how to install Git on macOS, Ubuntu Linux a ...@@ -6,7 +6,7 @@ description: 'This article describes how to install Git on macOS, Ubuntu Linux a
type: howto type: howto
--- ---
# Installing Git # Installing Git **(FREE)**
To begin contributing to GitLab projects, To begin contributing to GitLab projects,
you will need to install the Git client on your computer. you will need to install the Git client on your computer.
......
...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated ...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated
type: index type: index
--- ---
# Git # Git **(FREE)**
Git is a [free and open source](https://git-scm.com/about/free-and-open-source) Git is a [free and open source](https://git-scm.com/about/free-and-open-source)
distributed version control system designed to handle everything from small to distributed version control system designed to handle everything from small to
......
...@@ -6,7 +6,7 @@ type: reference, howto ...@@ -6,7 +6,7 @@ type: reference, howto
disqus_identifier: 'https://docs.gitlab.com/ee/workflow/lfs/lfs/index.html' disqus_identifier: 'https://docs.gitlab.com/ee/workflow/lfs/lfs/index.html'
--- ---
# Git Large File Storage (LFS) # Git Large File Storage (LFS) **(FREE)**
Managing large files such as audio, video and graphics files has always been one Managing large files such as audio, video and graphics files has always been one
of the shortcomings of Git. The general recommendation is to not have Git repositories of the shortcomings of Git. The general recommendation is to not have Git repositories
......
...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated ...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated
type: reference, howto type: reference, howto
--- ---
# Migration guide from Git Annex to Git LFS # Migration guide from Git Annex to Git LFS **(FREE)**
WARNING: WARNING:
Git Annex support [has been removed](https://gitlab.com/gitlab-org/gitlab/-/issues/1648) in GitLab Enterprise Git Annex support [has been removed](https://gitlab.com/gitlab-org/gitlab/-/issues/1648) in GitLab Enterprise
......
...@@ -5,7 +5,7 @@ info: To determine the technical writer assigned to the Stage/Group associated w ...@@ -5,7 +5,7 @@ info: To determine the technical writer assigned to the Stage/Group associated w
type: howto type: howto
--- ---
# Numerous undo possibilities in Git # Numerous undo possibilities in Git **(FREE)**
This tutorial shows you different ways of undoing your work in Git. This tutorial shows you different ways of undoing your work in Git.
We assume you have a basic working knowledge of Git. Check the GitLab We assume you have a basic working knowledge of Git. Check the GitLab
......
...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated ...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated
type: reference, howto type: reference, howto
--- ---
# Partial Clone # Partial Clone **(FREE)**
As Git repositories grow in size, they can become cumbersome to work with As Git repositories grow in size, they can become cumbersome to work with
because of the large amount of history that must be downloaded, and the large because of the large amount of history that must be downloaded, and the large
......
...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated ...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated
type: howto type: howto
--- ---
# Troubleshooting Git # Troubleshooting Git **(FREE)**
Sometimes things don't work the way they should or as you might expect when Sometimes things don't work the way they should or as you might expect when
you're using Git. Here are some tips on troubleshooting and resolving issues you're using Git. Here are some tips on troubleshooting and resolving issues
......
...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated ...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated
type: reference type: reference
--- ---
# Useful Git commands # Useful Git commands **(FREE)**
The GitLab support team has collected these commands to help you. You may not The GitLab support team has collected these commands to help you. You may not
need to use them often. need to use them often.
......
...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated ...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated
disqus_identifier: 'https://docs.gitlab.com/ee/workflow/gitlab_flow.html' disqus_identifier: 'https://docs.gitlab.com/ee/workflow/gitlab_flow.html'
--- ---
# Introduction to GitLab Flow # Introduction to GitLab Flow **(FREE)**
![GitLab Flow](img/gitlab_flow.png) ![GitLab Flow](img/gitlab_flow.png)
......
...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated ...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated
type: reference type: reference
--- ---
# Instance template repository **(PREMIUM SELF)** # Instance template repository **(PREMIUM SELF)** **(FREE)**
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/5986) in [GitLab Premium](https://about.gitlab.com/pricing/) 11.3. > [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/5986) in [GitLab Premium](https://about.gitlab.com/pricing/) 11.3.
......
...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated ...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated
type: reference type: reference
--- ---
# Push event activities limit and bulk push events # Push event activities limit and bulk push events **(FREE)**
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/31007) in GitLab 12.4. > [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/31007) in GitLab 12.4.
......
...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated ...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated
type: reference, howto type: reference, howto
--- ---
# AsciiDoc # AsciiDoc **(FREE)**
GitLab uses the [Asciidoctor](https://asciidoctor.org) gem to convert AsciiDoc content to HTML5. GitLab uses the [Asciidoctor](https://asciidoctor.org) gem to convert AsciiDoc content to HTML5.
Consult the [Asciidoctor User Manual](https://asciidoctor.org/docs/user-manual/) for a complete Asciidoctor reference. Consult the [Asciidoctor User Manual](https://asciidoctor.org/docs/user-manual/) for a complete Asciidoctor reference.
......
...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated ...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated
type: reference, howto type: reference, howto
--- ---
# Threads # Threads **(FREE)**
The ability to contribute conversationally is offered throughout GitLab. The ability to contribute conversationally is offered throughout GitLab.
......
...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated ...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated
type: reference, howto type: reference, howto
--- ---
# GitLab Markdown # GitLab Markdown **(FREE)**
This Markdown guide is **valid only for the GitLab internal Markdown rendering system for entries and files**. This Markdown guide is **valid only for the GitLab internal Markdown rendering system for entries and files**.
It is **not** valid for the [GitLab documentation website](https://docs.gitlab.com) It is **not** valid for the [GitLab documentation website](https://docs.gitlab.com)
......
...@@ -37,3 +37,5 @@ Users will be: ...@@ -37,3 +37,5 @@ Users will be:
- Automatically created upon first sign in with the [LDAP integration](../../../administration/auth/ldap/index.md). - Automatically created upon first sign in with the [LDAP integration](../../../administration/auth/ldap/index.md).
- Created when first signing in via an [OmniAuth provider](../../../integration/omniauth.md) if the `allow_single_sign_on` setting is present. - Created when first signing in via an [OmniAuth provider](../../../integration/omniauth.md) if the `allow_single_sign_on` setting is present.
- Created when first signing with [Group SAML](../../group/saml_sso/index.md)
- Automatically created by [SCIM](../../group/saml_sso/scim_setup.md) when the user is created in the identity provider.
...@@ -6,7 +6,7 @@ type: reference ...@@ -6,7 +6,7 @@ type: reference
description: "Autocomplete chars in Markdown fields." description: "Autocomplete chars in Markdown fields."
--- ---
# Autocomplete characters # Autocomplete characters **(FREE)**
The autocomplete characters provide a quick way of entering field values into The autocomplete characters provide a quick way of entering field values into
Markdown fields. When you start typing a word in a Markdown field with one of Markdown fields. When you start typing a word in a Markdown field with one of
......
...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated ...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated
type: reference, howto type: reference, howto
--- ---
# Badges # Badges **(FREE)**
> [Introduced](https://gitlab.com/gitlab-org/gitlab-foss/-/issues/41174) in GitLab 10.7. > [Introduced](https://gitlab.com/gitlab-org/gitlab-foss/-/issues/41174) in GitLab 10.7.
......
...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated ...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated
type: reference type: reference
--- ---
# Code Intelligence # Code Intelligence **(FREE)**
> [Introduced](https://gitlab.com/groups/gitlab-org/-/epics/1576) in GitLab 13.1. > [Introduced](https://gitlab.com/groups/gitlab-org/-/epics/1576) in GitLab 13.1.
......
...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated ...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated
type: reference type: reference
--- ---
# Git Attributes # Git Attributes **(FREE)**
GitLab supports defining custom [Git attributes](https://git-scm.com/docs/gitattributes) such as what GitLab supports defining custom [Git attributes](https://git-scm.com/docs/gitattributes) such as what
files to treat as binary, and what language to use for syntax highlighting files to treat as binary, and what language to use for syntax highlighting
......
...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated ...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated
type: reference type: reference
--- ---
# Syntax Highlighting # Syntax Highlighting **(FREE)**
GitLab provides syntax highlighting on all files through the [Rouge](https://rubygems.org/gems/rouge) Ruby gem. It attempts to guess what language to use based on the file extension, which most of the time is sufficient. GitLab provides syntax highlighting on all files through the [Rouge](https://rubygems.org/gems/rouge) Ruby gem. It attempts to guess what language to use based on the file extension, which most of the time is sufficient.
......
...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated ...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated
type: reference type: reference
--- ---
# Projects # Projects **(FREE)**
In GitLab, you can create projects for hosting In GitLab, you can create projects for hosting
your codebase, use it as an issue tracker, collaborate on code, and continuously your codebase, use it as an issue tracker, collaborate on code, and continuously
......
...@@ -5,7 +5,7 @@ info: To determine the technical writer assigned to the Stage/Group associated w ...@@ -5,7 +5,7 @@ info: To determine the technical writer assigned to the Stage/Group associated w
type: reference, howto type: reference, howto
--- ---
# Allow collaboration on merge requests across forks # Allow collaboration on merge requests across forks **(FREE)**
> [Introduced](https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/17395) in GitLab 10.6. > [Introduced](https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/17395) in GitLab 10.6.
......
...@@ -5,7 +5,7 @@ info: To determine the technical writer assigned to the Stage/Group associated w ...@@ -5,7 +5,7 @@ info: To determine the technical writer assigned to the Stage/Group associated w
type: concepts type: concepts
--- ---
# Authorization for Merge requests # Authorization for Merge requests **(FREE)**
There are two main ways to have a merge request flow with GitLab: There are two main ways to have a merge request flow with GitLab:
......
...@@ -5,7 +5,7 @@ info: To determine the technical writer assigned to the Stage/Group associated w ...@@ -5,7 +5,7 @@ info: To determine the technical writer assigned to the Stage/Group associated w
type: reference, concepts type: reference, concepts
--- ---
# Cherry-pick changes # Cherry-pick changes **(FREE)**
GitLab implements Git's powerful feature to GitLab implements Git's powerful feature to
[cherry-pick any commit](https://git-scm.com/docs/git-cherry-pick "Git cherry-pick documentation") [cherry-pick any commit](https://git-scm.com/docs/git-cherry-pick "Git cherry-pick documentation")
......
...@@ -7,7 +7,7 @@ description: "How to create Merge Requests in GitLab." ...@@ -7,7 +7,7 @@ description: "How to create Merge Requests in GitLab."
disqus_identifier: 'https://docs.gitlab.com/ee/gitlab-basics/add-merge-request.html' disqus_identifier: 'https://docs.gitlab.com/ee/gitlab-basics/add-merge-request.html'
--- ---
# How to create a merge request # How to create a merge request **(FREE)**
Before creating a merge request, read through an Before creating a merge request, read through an
[introduction to Merge Requests](getting_started.md) [introduction to Merge Requests](getting_started.md)
......
...@@ -5,7 +5,7 @@ info: To determine the technical writer assigned to the Stage/Group associated w ...@@ -5,7 +5,7 @@ info: To determine the technical writer assigned to the Stage/Group associated w
type: reference, concepts type: reference, concepts
--- ---
# Fast-forward merge requests # Fast-forward merge requests **(FREE)**
Sometimes, a workflow policy might mandate a clean commit history without Sometimes, a workflow policy might mandate a clean commit history without
merge commits. In such cases, the fast-forward merge is the perfect candidate. merge commits. In such cases, the fast-forward merge is the perfect candidate.
......
...@@ -6,7 +6,7 @@ type: index, reference ...@@ -6,7 +6,7 @@ type: index, reference
description: "Getting started with Merge Requests." description: "Getting started with Merge Requests."
--- ---
# Getting started with Merge Requests # Getting started with Merge Requests **(FREE)**
A Merge Request (**MR**) is the basis of GitLab as a code A Merge Request (**MR**) is the basis of GitLab as a code
collaboration and version control. collaboration and version control.
......
...@@ -5,7 +5,7 @@ info: To determine the technical writer assigned to the Stage/Group associated w ...@@ -5,7 +5,7 @@ info: To determine the technical writer assigned to the Stage/Group associated w
type: index, reference type: index, reference
--- ---
# Merge requests # Merge requests **(FREE)**
A Merge Request (**MR**) is a _request_ to _merge_ one branch into another. A Merge Request (**MR**) is a _request_ to _merge_ one branch into another.
......
...@@ -5,7 +5,7 @@ info: To determine the technical writer assigned to the Stage/Group associated w ...@@ -5,7 +5,7 @@ info: To determine the technical writer assigned to the Stage/Group associated w
type: reference, concepts type: reference, concepts
--- ---
# Merge when pipeline succeeds # Merge when pipeline succeeds **(FREE)**
When reviewing a merge request that looks ready to merge but still has a When reviewing a merge request that looks ready to merge but still has a
pipeline running, you can set it to merge automatically when the pipeline running, you can set it to merge automatically when the
......
...@@ -5,7 +5,7 @@ info: To determine the technical writer assigned to the Stage/Group associated w ...@@ -5,7 +5,7 @@ info: To determine the technical writer assigned to the Stage/Group associated w
type: reference, concepts type: reference, concepts
--- ---
# Merge request conflict resolution # Merge request conflict resolution **(FREE)**
Merge conflicts occur when two branches have different changes that cannot be Merge conflicts occur when two branches have different changes that cannot be
merged automatically. merged automatically.
......
...@@ -5,7 +5,7 @@ info: To determine the technical writer assigned to the Stage/Group associated w ...@@ -5,7 +5,7 @@ info: To determine the technical writer assigned to the Stage/Group associated w
type: reference, concepts type: reference, concepts
--- ---
# Reverting changes # Reverting changes **(FREE)**
You can use Git's powerful feature to [revert any commit](https://git-scm.com/docs/git-revert "Git revert documentation") You can use Git's powerful feature to [revert any commit](https://git-scm.com/docs/git-revert "Git revert documentation")
by clicking the **Revert** button in merge requests and commit details. by clicking the **Revert** button in merge requests and commit details.
......
...@@ -5,7 +5,7 @@ info: To determine the technical writer assigned to the Stage/Group associated w ...@@ -5,7 +5,7 @@ info: To determine the technical writer assigned to the Stage/Group associated w
type: reference, concepts type: reference, concepts
--- ---
# Squash and merge # Squash and merge **(FREE)**
> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/1024) in [GitLab Starter](https://about.gitlab.com/pricing/) 8.17. > - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/1024) in [GitLab Starter](https://about.gitlab.com/pricing/) 8.17.
> - [Moved](https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/18956) from [GitLab Starter](https://about.gitlab.com/pricing/)to GitLab Free in 11.0. > - [Moved](https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/18956) from [GitLab Starter](https://about.gitlab.com/pricing/)to GitLab Free in 11.0.
......
...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated ...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated
type: reference, howto type: reference, howto
--- ---
# Protected branches # Protected branches **(FREE)**
[Permissions](../permissions.md) in GitLab are fundamentally defined around the [Permissions](../permissions.md) in GitLab are fundamentally defined around the
idea of having read or write permission to the repository and branches. To impose idea of having read or write permission to the repository and branches. To impose
......
...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated ...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated
type: reference, howto type: reference, howto
--- ---
# Protected tags # Protected tags **(FREE)**
> [Introduced](https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/10356) in GitLab 9.1. > [Introduced](https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/10356) in GitLab 9.1.
......
...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated ...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated
type: reference, howto type: reference, howto
--- ---
# Push Options # Push Options **(FREE)**
> [Introduced](https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/15643) in GitLab 11.7. > [Introduced](https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/15643) in GitLab 11.7.
......
...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated ...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated
type: concepts, howto type: concepts, howto
--- ---
# Branches # Branches **(FREE)**
A branch is a version of a project's working tree. You create a branch for each A branch is a version of a project's working tree. You create a branch for each
set of related changes you make. This keeps each set of changes separate from set of related changes you make. This keeps each set of changes separate from
......
...@@ -5,7 +5,7 @@ info: To determine the technical writer assigned to the Stage/Group associated w ...@@ -5,7 +5,7 @@ info: To determine the technical writer assigned to the Stage/Group associated w
disqus_identifier: 'https://docs.gitlab.com/ee/workflow/forking_workflow.html' disqus_identifier: 'https://docs.gitlab.com/ee/workflow/forking_workflow.html'
--- ---
# Project forking workflow # Project forking workflow **(FREE)**
Whenever possible, it's recommended to work in a common Git repository and use Whenever possible, it's recommended to work in a common Git repository and use
[branching strategies](../../../topics/gitlab_flow.md) to manage your work. However, [branching strategies](../../../topics/gitlab_flow.md) to manage your work. However,
......
...@@ -6,7 +6,7 @@ type: reference, howto ...@@ -6,7 +6,7 @@ type: reference, howto
description: "Documentation on Git file blame." description: "Documentation on Git file blame."
--- ---
# Git file blame # Git file blame **(FREE)**
> [Introduced](https://gitlab.com/gitlab-org/gitlab-foss/commit/39c657930625ddc3ac8a921f01ffc83acadce68f) in GitLab 2.5. > [Introduced](https://gitlab.com/gitlab-org/gitlab-foss/commit/39c657930625ddc3ac8a921f01ffc83acadce68f) in GitLab 2.5.
......
...@@ -6,7 +6,7 @@ type: reference, howto ...@@ -6,7 +6,7 @@ type: reference, howto
description: "Documentation on Git file history." description: "Documentation on Git file history."
--- ---
# Git file history # Git file history **(FREE)**
> [Introduced](https://gitlab.com/gitlab-org/gitlab/blob/9ba1224867665844b117fa037e1465bb706b3685/app/controllers/commits_controller.rb) in GitLab 0.8.0 > [Introduced](https://gitlab.com/gitlab-org/gitlab/blob/9ba1224867665844b117fa037e1465bb706b3685/app/controllers/commits_controller.rb) in GitLab 0.8.0
......
...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated ...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated
type: concepts, howto type: concepts, howto
--- ---
# Signing commits with GPG # Signing commits with GPG **(FREE)**
> - [Introduced](https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/9546) in GitLab 9.5. > - [Introduced](https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/9546) in GitLab 9.5.
> - Subkeys support was added in GitLab 10.1. > - Subkeys support was added in GitLab 10.1.
......
...@@ -5,7 +5,7 @@ info: To determine the technical writer assigned to the Stage/Group associated w ...@@ -5,7 +5,7 @@ info: To determine the technical writer assigned to the Stage/Group associated w
type: concepts, howto type: concepts, howto
--- ---
# Repository # Repository **(FREE)**
A [repository](https://git-scm.com/book/en/v2/Git-Basics-Getting-a-Git-Repository) A [repository](https://git-scm.com/book/en/v2/Git-Basics-Getting-a-Git-Repository)
is what you use to store your codebase in GitLab and change it with version control. is what you use to store your codebase in GitLab and change it with version control.
......
...@@ -4,7 +4,7 @@ group: Source Code ...@@ -4,7 +4,7 @@ group: Source Code
info: "To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments" info: "To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments"
type: reference type: reference
--- ---
# Jupyter Notebook Files # Jupyter Notebook Files **(FREE)**
> [Introduced](https://gitlab.com/gitlab-org/gitlab-foss/-/issues/2508/) in GitLab 9.1. > [Introduced](https://gitlab.com/gitlab-org/gitlab-foss/-/issues/2508/) in GitLab 9.1.
......
...@@ -5,7 +5,7 @@ info: To determine the technical writer assigned to the Stage/Group associated w ...@@ -5,7 +5,7 @@ info: To determine the technical writer assigned to the Stage/Group associated w
disqus_identifier: 'https://docs.gitlab.com/ee/workflow/repository_mirroring.html' disqus_identifier: 'https://docs.gitlab.com/ee/workflow/repository_mirroring.html'
--- ---
# Repository mirroring # Repository mirroring **(FREE)**
Repository mirroring allows for mirroring of repositories to and from external sources. It can be Repository mirroring allows for mirroring of repositories to and from external sources. It can be
used to mirror branches, tags, and commits between repositories. It is useful when you want to use used to mirror branches, tags, and commits between repositories. It is useful when you want to use
......
...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated ...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated
type: concepts, howto type: concepts, howto
--- ---
# Signing commits and tags with X.509 # Signing commits and tags with X.509 **(FREE)**
[X.509](https://en.wikipedia.org/wiki/X.509) is a standard format for public key [X.509](https://en.wikipedia.org/wiki/X.509) is a standard format for public key
certificates issued by a public or private Public Key Infrastructure (PKI). certificates issued by a public or private Public Key Infrastructure (PKI).
......
...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated ...@@ -5,7 +5,7 @@ info: "To determine the technical writer assigned to the Stage/Group associated
type: reference, index, howto type: reference, index, howto
--- ---
# Project settings # Project settings **(FREE)**
NOTE: NOTE:
Only project maintainers and administrators have the [permissions](../../permissions.md#project-members-permissions) Only project maintainers and administrators have the [permissions](../../permissions.md#project-members-permissions)
......
...@@ -4,7 +4,7 @@ group: Source Code ...@@ -4,7 +4,7 @@ group: Source Code
info: "To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments" info: "To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments"
--- ---
# Working with projects # Working with projects **(FREE)**
Most work in GitLab is done in a [project](../../user/project/index.md). Files and Most work in GitLab is done in a [project](../../user/project/index.md). Files and
code are saved in projects, and most features are in the scope of projects. code are saved in projects, and most features are in the scope of projects.
......
...@@ -64,7 +64,7 @@ module Gitlab ...@@ -64,7 +64,7 @@ module Gitlab
end end
def self.validate_build_dependencies?(project) def self.validate_build_dependencies?(project)
::Feature.enabled?(:ci_validate_build_dependencies, default_enabled: :yaml) && ::Feature.enabled?(:ci_validate_build_dependencies, project, default_enabled: :yaml) &&
::Feature.disabled?(:ci_validate_build_dependencies_override, project) ::Feature.disabled?(:ci_validate_build_dependencies_override, project)
end end
......
...@@ -124,22 +124,12 @@ RSpec.describe Pages::LookupPath do ...@@ -124,22 +124,12 @@ RSpec.describe Pages::LookupPath do
include_examples 'uses disk storage' include_examples 'uses disk storage'
end end
end
context 'when deployment were created during migration' do context 'when deployment were created during migration' do
before do before do
FileUtils.mkdir_p File.join(project.pages_path, "public") allow(deployment).to receive(:migrated?).and_return(true)
File.open(File.join(project.pages_path, "public/index.html"), "w") do |f|
f.write("Hello!")
end
expect(::Pages::MigrateLegacyStorageToDeploymentService.new(project).execute[:status]).to eq(:success)
project.reload
end end
let(:deployment) { project.pages_metadatum.pages_deployment }
it 'uses deployment from object storage' do it 'uses deployment from object storage' do
freeze_time do freeze_time do
expect(source).to( expect(source).to(
...@@ -164,6 +154,7 @@ RSpec.describe Pages::LookupPath do ...@@ -164,6 +154,7 @@ RSpec.describe Pages::LookupPath do
end end
end end
end end
end
describe '#prefix' do describe '#prefix' do
it 'returns "/" for pages group root projects' do it 'returns "/" for pages group root projects' do
......
...@@ -26,6 +26,46 @@ RSpec.describe PagesDeployment do ...@@ -26,6 +26,46 @@ RSpec.describe PagesDeployment do
end end
end end
describe '.migrated_from_legacy_storage' do
it 'only returns migrated deployments' do
project = create(:project)
migrated_deployment = create_migrated_deployment(project)
# create one other deployment
create(:pages_deployment, project: project)
expect(described_class.migrated_from_legacy_storage).to eq([migrated_deployment])
end
end
describe '#migrated?' do
it 'returns false for normal deployment' do
deployment = create(:pages_deployment)
expect(deployment.migrated?).to eq(false)
end
it 'returns true for migrated deployment' do
project = create(:project)
deployment = create_migrated_deployment(project)
expect(deployment.migrated?).to eq(true)
end
end
def create_migrated_deployment(project)
public_path = File.join(project.pages_path, "public")
FileUtils.mkdir_p(public_path)
File.open(File.join(project.pages_path, "public/index.html"), "w") do |f|
f.write("Hello!")
end
expect(::Pages::MigrateLegacyStorageToDeploymentService.new(project).execute[:status]).to eq(:success)
project.reload.pages_metadatum.pages_deployment
ensure
FileUtils.rm_rf(public_path)
end
describe 'default for file_store' do describe 'default for file_store' do
let(:project) { create(:project) } let(:project) { create(:project) }
let(:deployment) do let(:deployment) do
......
...@@ -474,6 +474,22 @@ module Ci ...@@ -474,6 +474,22 @@ module Ci
end end
it_behaves_like 'validation is active' it_behaves_like 'validation is active'
context 'when the main feature flag is enabled for a specific project' do
before do
stub_feature_flags(ci_validate_build_dependencies: pipeline.project)
end
it_behaves_like 'validation is active'
end
context 'when the main feature flag is enabled for a different project' do
before do
stub_feature_flags(ci_validate_build_dependencies: create(:project))
end
it_behaves_like 'validation is not active'
end
end end
context 'when validates for dependencies is disabled' do context 'when validates for dependencies is disabled' do
......
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