Add latest changes from gitlab-org/gitlab@master
This commit is contained in:
parent
f50cb4f63f
commit
4c5b7f992f
|
@ -236,7 +236,7 @@
|
|||
- name: postgres:11.6
|
||||
command: ["postgres", "-c", "fsync=off", "-c", "synchronous_commit=off", "-c", "full_page_writes=off"]
|
||||
- name: redis:5.0-alpine
|
||||
- name: elasticsearch:7.11.1
|
||||
- name: elasticsearch:7.14.2
|
||||
command: ["elasticsearch", "-E", "discovery.type=single-node"]
|
||||
variables:
|
||||
POSTGRES_HOST_AUTH_METHOD: trust
|
||||
|
@ -247,7 +247,7 @@
|
|||
- name: postgres:12
|
||||
command: ["postgres", "-c", "fsync=off", "-c", "synchronous_commit=off", "-c", "full_page_writes=off"]
|
||||
- name: redis:5.0-alpine
|
||||
- name: elasticsearch:7.11.1
|
||||
- name: elasticsearch:7.14.2
|
||||
command: ["elasticsearch", "-E", "discovery.type=single-node"]
|
||||
variables:
|
||||
POSTGRES_HOST_AUTH_METHOD: trust
|
||||
|
@ -258,7 +258,7 @@
|
|||
- name: postgres:13
|
||||
command: ["postgres", "-c", "fsync=off", "-c", "synchronous_commit=off", "-c", "full_page_writes=off"]
|
||||
- name: redis:5.0-alpine
|
||||
- name: elasticsearch:7.11.1
|
||||
- name: elasticsearch:7.14.2
|
||||
command: ["elasticsearch", "-E", "discovery.type=single-node"]
|
||||
variables:
|
||||
POSTGRES_HOST_AUTH_METHOD: trust
|
||||
|
|
|
@ -41,7 +41,11 @@ Which tier is this feature available in?
|
|||
|
||||
### Deprecation Milestone
|
||||
|
||||
<!-- In which milestone will this deprecation happen? -->
|
||||
<!-- In which milestone will this deprecation be announced ? -->
|
||||
|
||||
### Planned Removal Milestone
|
||||
|
||||
<!-- In which milestone will the feature or functionality be removed and announced? -->
|
||||
|
||||
### Links
|
||||
|
||||
|
|
10
Dangerfile
10
Dangerfile
|
@ -17,6 +17,14 @@ end
|
|||
|
||||
anything_to_post = status_report.values.any? { |data| data.any? }
|
||||
|
||||
if helper.ci? && anything_to_post
|
||||
return unless helper.ci?
|
||||
|
||||
if project_helper.labels_to_add.any?
|
||||
gitlab.api.update_merge_request(gitlab.mr_json['project_id'],
|
||||
gitlab.mr_json['iid'],
|
||||
add_labels: project_helper.labels_to_add.join(','))
|
||||
end
|
||||
|
||||
if anything_to_post
|
||||
markdown("**If needed, you can retry the [`danger-review` job](#{ENV['CI_JOB_URL']}) that generated this comment.**")
|
||||
end
|
||||
|
|
|
@ -1 +1 @@
|
|||
8e59a9f5d61cceb4ded8b12c02c4b75b48b83f46
|
||||
0697e25f0d30d7d1c005c3fef3130cee001d198c
|
||||
|
|
|
@ -11,7 +11,6 @@ import commitCIFile from '../../graphql/mutations/commit_ci_file.mutation.graphq
|
|||
import updateCurrentBranchMutation from '../../graphql/mutations/update_current_branch.mutation.graphql';
|
||||
import updateLastCommitBranchMutation from '../../graphql/mutations/update_last_commit_branch.mutation.graphql';
|
||||
import getCurrentBranch from '../../graphql/queries/client/current_branch.graphql';
|
||||
import getIsNewCiConfigFile from '../../graphql/queries/client/is_new_ci_config_file.graphql';
|
||||
import getPipelineEtag from '../../graphql/queries/client/pipeline_etag.graphql';
|
||||
|
||||
import CommitForm from './commit_form.vue';
|
||||
|
@ -41,18 +40,19 @@ export default {
|
|||
required: false,
|
||||
default: '',
|
||||
},
|
||||
isNewCiConfigFile: {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
default: false,
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
commit: {},
|
||||
isNewCiConfigFile: false,
|
||||
isSaving: false,
|
||||
};
|
||||
},
|
||||
apollo: {
|
||||
isNewCiConfigFile: {
|
||||
query: getIsNewCiConfigFile,
|
||||
},
|
||||
currentBranch: {
|
||||
query: getCurrentBranch,
|
||||
},
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
mutation updateAppStatus($appStatus: String) {
|
||||
updateAppStatus(appStatus: $appStatus) @client
|
||||
}
|
|
@ -1,3 +0,0 @@
|
|||
query getIsNewCiConfigFile {
|
||||
isNewCiConfigFile @client
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
import produce from 'immer';
|
||||
import axios from '~/lib/utils/axios_utils';
|
||||
import getAppStatus from './queries/client/app_status.graphql';
|
||||
import getCurrentBranchQuery from './queries/client/current_branch.graphql';
|
||||
import getLastCommitBranchQuery from './queries/client/last_commit_branch.query.graphql';
|
||||
|
||||
|
@ -31,20 +31,22 @@ export const resolvers = {
|
|||
__typename: 'CiLintContent',
|
||||
}));
|
||||
},
|
||||
updateAppStatus: (_, { appStatus }, { cache }) => {
|
||||
cache.writeQuery({
|
||||
query: getAppStatus,
|
||||
data: { appStatus },
|
||||
});
|
||||
},
|
||||
updateCurrentBranch: (_, { currentBranch }, { cache }) => {
|
||||
cache.writeQuery({
|
||||
query: getCurrentBranchQuery,
|
||||
data: produce(cache.readQuery({ query: getCurrentBranchQuery }), (draftData) => {
|
||||
draftData.currentBranch = currentBranch;
|
||||
}),
|
||||
data: { currentBranch },
|
||||
});
|
||||
},
|
||||
updateLastCommitBranch: (_, { lastCommitBranch }, { cache }) => {
|
||||
cache.writeQuery({
|
||||
query: getLastCommitBranchQuery,
|
||||
data: produce(cache.readQuery({ query: getLastCommitBranchQuery }), (draftData) => {
|
||||
draftData.lastCommitBranch = lastCommitBranch;
|
||||
}),
|
||||
data: { lastCommitBranch },
|
||||
});
|
||||
},
|
||||
},
|
||||
|
|
|
@ -3,8 +3,10 @@ import Vue from 'vue';
|
|||
import VueApollo from 'vue-apollo';
|
||||
import createDefaultClient from '~/lib/graphql';
|
||||
import { resetServiceWorkersPublicPath } from '../lib/utils/webpack';
|
||||
import { EDITOR_APP_STATUS_LOADING } from './constants';
|
||||
import { CODE_SNIPPET_SOURCE_SETTINGS } from './components/code_snippet_alert/constants';
|
||||
import getCurrentBranch from './graphql/queries/client/current_branch.graphql';
|
||||
import getAppStatus from './graphql/queries/client/app_status.graphql';
|
||||
import getLastCommitBranchQuery from './graphql/queries/client/last_commit_branch.query.graphql';
|
||||
import getPipelineEtag from './graphql/queries/client/pipeline_etag.graphql';
|
||||
import { resolvers } from './graphql/resolvers';
|
||||
|
@ -64,6 +66,13 @@ export const initPipelineEditor = (selector = '#js-pipeline-editor') => {
|
|||
});
|
||||
const { cache } = apolloProvider.clients.defaultClient;
|
||||
|
||||
cache.writeQuery({
|
||||
query: getAppStatus,
|
||||
data: {
|
||||
appStatus: EDITOR_APP_STATUS_LOADING,
|
||||
},
|
||||
});
|
||||
|
||||
cache.writeQuery({
|
||||
query: getCurrentBranch,
|
||||
data: {
|
||||
|
|
|
@ -17,11 +17,11 @@ import {
|
|||
LOAD_FAILURE_UNKNOWN,
|
||||
STARTER_TEMPLATE_NAME,
|
||||
} from './constants';
|
||||
import updateAppStatus from './graphql/mutations/update_app_status.mutation.graphql';
|
||||
import getBlobContent from './graphql/queries/blob_content.graphql';
|
||||
import getCiConfigData from './graphql/queries/ci_config.graphql';
|
||||
import getAppStatus from './graphql/queries/client/app_status.graphql';
|
||||
import getCurrentBranch from './graphql/queries/client/current_branch.graphql';
|
||||
import getIsNewCiConfigFile from './graphql/queries/client/is_new_ci_config_file.graphql';
|
||||
import getTemplate from './graphql/queries/get_starter_template.query.graphql';
|
||||
import getLatestCommitShaQuery from './graphql/queries/latest_commit_sha.query.graphql';
|
||||
import PipelineEditorHome from './pipeline_editor_home.vue';
|
||||
|
@ -44,20 +44,20 @@ export default {
|
|||
},
|
||||
data() {
|
||||
return {
|
||||
starterTemplateName: STARTER_TEMPLATE_NAME,
|
||||
ciConfigData: {},
|
||||
currentCiFileContent: '',
|
||||
failureType: null,
|
||||
failureReasons: [],
|
||||
initialCiFileContent: '',
|
||||
isFetchingCommitSha: false,
|
||||
isNewCiConfigFile: false,
|
||||
lastCommittedContent: '',
|
||||
currentCiFileContent: '',
|
||||
successType: null,
|
||||
showFailure: false,
|
||||
showStartScreen: false,
|
||||
showSuccess: false,
|
||||
showFailure: false,
|
||||
starterTemplate: '',
|
||||
starterTemplateName: STARTER_TEMPLATE_NAME,
|
||||
successType: null,
|
||||
};
|
||||
},
|
||||
|
||||
|
@ -179,9 +179,6 @@ export default {
|
|||
currentBranch: {
|
||||
query: getCurrentBranch,
|
||||
},
|
||||
isNewCiConfigFile: {
|
||||
query: getIsNewCiConfigFile,
|
||||
},
|
||||
starterTemplate: {
|
||||
query: getTemplate,
|
||||
variables() {
|
||||
|
@ -261,12 +258,10 @@ export default {
|
|||
this.currentCiFileContent = this.lastCommittedContent;
|
||||
},
|
||||
setAppStatus(appStatus) {
|
||||
this.$apollo.getClient().writeQuery({ query: getAppStatus, data: { appStatus } });
|
||||
this.$apollo.mutate({ mutation: updateAppStatus, variables: { appStatus } });
|
||||
},
|
||||
setNewEmptyCiConfigFile() {
|
||||
this.$apollo
|
||||
.getClient()
|
||||
.writeQuery({ query: getIsNewCiConfigFile, data: { isNewCiConfigFile: true } });
|
||||
this.isNewCiConfigFile = true;
|
||||
this.showStartScreen = false;
|
||||
},
|
||||
showErrorAlert({ type, reasons = [] }) {
|
||||
|
@ -283,9 +278,7 @@ export default {
|
|||
this.reportSuccess(type);
|
||||
|
||||
if (this.isNewCiConfigFile) {
|
||||
this.$apollo
|
||||
.getClient()
|
||||
.writeQuery({ query: getIsNewCiConfigFile, data: { isNewCiConfigFile: false } });
|
||||
this.isNewCiConfigFile = false;
|
||||
}
|
||||
|
||||
// Keep track of the latest committed content to know
|
||||
|
|
|
@ -125,6 +125,7 @@ export default {
|
|||
:ref="$options.commitSectionRef"
|
||||
:ci-file-content="ciFileContent"
|
||||
:commit-sha="commitSha"
|
||||
:is-new-ci-config-file="isNewCiConfigFile"
|
||||
v-on="$listeners"
|
||||
/>
|
||||
<pipeline-editor-drawer />
|
||||
|
|
|
@ -9,6 +9,7 @@ class Admin::HookLogsController < Admin::ApplicationController
|
|||
respond_to :html
|
||||
|
||||
feature_category :integrations
|
||||
urgency :low, [:retry]
|
||||
|
||||
def show
|
||||
end
|
||||
|
|
|
@ -6,6 +6,7 @@ class Admin::HooksController < Admin::ApplicationController
|
|||
before_action :hook_logs, only: :edit
|
||||
|
||||
feature_category :integrations
|
||||
urgency :low, [:test]
|
||||
|
||||
def index
|
||||
@hooks = SystemHook.all
|
||||
|
|
|
@ -8,6 +8,8 @@ module IntegrationsActions
|
|||
include IntegrationsHelper
|
||||
|
||||
before_action :integration, only: [:edit, :update, :overrides, :test]
|
||||
|
||||
urgency :low, [:test]
|
||||
end
|
||||
|
||||
def edit
|
||||
|
|
|
@ -13,6 +13,7 @@ class Projects::HookLogsController < Projects::ApplicationController
|
|||
layout 'project_settings'
|
||||
|
||||
feature_category :integrations
|
||||
urgency :low, [:retry]
|
||||
|
||||
def show
|
||||
end
|
||||
|
|
|
@ -13,6 +13,7 @@ class Projects::HooksController < Projects::ApplicationController
|
|||
layout "project_settings"
|
||||
|
||||
feature_category :integrations
|
||||
urgency :low, [:test]
|
||||
|
||||
def index
|
||||
@hooks = @project.hooks
|
||||
|
|
|
@ -18,6 +18,7 @@ class Projects::ServicesController < Projects::ApplicationController
|
|||
layout "project_settings"
|
||||
|
||||
feature_category :integrations
|
||||
urgency :low, [:test]
|
||||
|
||||
def edit
|
||||
end
|
||||
|
|
|
@ -8,6 +8,9 @@ module Analytics
|
|||
|
||||
validates(*%i[stage_event_hash_id issue_id group_id project_id start_event_timestamp], presence: true)
|
||||
|
||||
alias_attribute :state, :state_id
|
||||
enum state: Issue.available_states, _suffix: true
|
||||
|
||||
def self.issuable_id_column
|
||||
:issue_id
|
||||
end
|
||||
|
|
|
@ -8,6 +8,9 @@ module Analytics
|
|||
|
||||
validates(*%i[stage_event_hash_id merge_request_id group_id project_id start_event_timestamp], presence: true)
|
||||
|
||||
alias_attribute :state, :state_id
|
||||
enum state: MergeRequest.available_states, _suffix: true
|
||||
|
||||
def self.issuable_id_column
|
||||
:merge_request_id
|
||||
end
|
||||
|
|
|
@ -15,6 +15,7 @@ module Analytics
|
|||
:project_id,
|
||||
:author_id,
|
||||
:milestone_id,
|
||||
:state_id,
|
||||
:start_event_timestamp,
|
||||
:end_event_timestamp
|
||||
)
|
||||
|
@ -31,6 +32,7 @@ module Analytics
|
|||
project_id,
|
||||
milestone_id,
|
||||
author_id,
|
||||
state_id,
|
||||
start_event_timestamp,
|
||||
end_event_timestamp
|
||||
)
|
||||
|
@ -39,10 +41,11 @@ module Analytics
|
|||
DO UPDATE SET
|
||||
group_id = excluded.group_id,
|
||||
project_id = excluded.project_id,
|
||||
start_event_timestamp = excluded.start_event_timestamp,
|
||||
end_event_timestamp = excluded.end_event_timestamp,
|
||||
milestone_id = excluded.milestone_id,
|
||||
author_id = excluded.author_id
|
||||
author_id = excluded.author_id,
|
||||
state_id = excluded.state_id,
|
||||
start_event_timestamp = excluded.start_event_timestamp,
|
||||
end_event_timestamp = excluded.end_event_timestamp
|
||||
SQL
|
||||
|
||||
result = connection.execute(query)
|
||||
|
|
|
@ -6,6 +6,11 @@ class MergeRequestDiffCommit < ApplicationRecord
|
|||
include BulkInsertSafe
|
||||
include ShaAttribute
|
||||
include CachedCommit
|
||||
include IgnorableColumns
|
||||
|
||||
ignore_column %i[author_name author_email committer_name committer_email],
|
||||
remove_with: '14.6',
|
||||
remove_after: '2021-11-22'
|
||||
|
||||
belongs_to :merge_request_diff
|
||||
|
||||
|
@ -51,9 +56,14 @@ class MergeRequestDiffCommit < ApplicationRecord
|
|||
committer =
|
||||
users[[commit_hash[:committer_name], commit_hash[:committer_email]]]
|
||||
|
||||
# These fields are only used to determine the author/committer IDs, we
|
||||
# don't store them in the DB.
|
||||
commit_hash = commit_hash
|
||||
.except(:author_name, :author_email, :committer_name, :committer_email)
|
||||
|
||||
commit_hash.merge(
|
||||
commit_author_id: author&.id,
|
||||
committer_id: committer&.id,
|
||||
commit_author_id: author.id,
|
||||
committer_id: committer.id,
|
||||
merge_request_diff_id: merge_request_diff_id,
|
||||
relative_order: index,
|
||||
sha: Gitlab::Database::ShaAttribute.serialize(sha), # rubocop:disable Cop/ActiveRecordSerialize
|
||||
|
@ -104,18 +114,18 @@ class MergeRequestDiffCommit < ApplicationRecord
|
|||
end
|
||||
|
||||
def author_name
|
||||
commit_author_id ? commit_author.name : super
|
||||
commit_author.name
|
||||
end
|
||||
|
||||
def author_email
|
||||
commit_author_id ? commit_author.email : super
|
||||
commit_author.email
|
||||
end
|
||||
|
||||
def committer_name
|
||||
committer_id ? committer.name : super
|
||||
committer.name
|
||||
end
|
||||
|
||||
def committer_email
|
||||
committer_id ? committer.email : super
|
||||
committer.email
|
||||
end
|
||||
end
|
||||
|
|
|
@ -28,6 +28,7 @@ module Gitlab
|
|||
require_dependency Rails.root.join('lib/gitlab/redis/sessions')
|
||||
require_dependency Rails.root.join('lib/gitlab/current_settings')
|
||||
require_dependency Rails.root.join('lib/gitlab/middleware/read_only')
|
||||
require_dependency Rails.root.join('lib/gitlab/middleware/compressed_json')
|
||||
require_dependency Rails.root.join('lib/gitlab/middleware/basic_health_check')
|
||||
require_dependency Rails.root.join('lib/gitlab/middleware/same_site_cookies')
|
||||
require_dependency Rails.root.join('lib/gitlab/middleware/handle_ip_spoof_attack_error')
|
||||
|
@ -319,6 +320,8 @@ module Gitlab
|
|||
|
||||
config.middleware.insert_after Rack::Sendfile, ::Gitlab::Middleware::RackMultipartTempfileFactory
|
||||
|
||||
config.middleware.insert_before Rack::Runtime, ::Gitlab::Middleware::CompressedJson
|
||||
|
||||
# Allow access to GitLab API from other domains
|
||||
config.middleware.insert_before Warden::Manager, Rack::Cors do
|
||||
headers_to_expose = %w[Link X-Total X-Total-Pages X-Per-Page X-Page X-Next-Page X-Prev-Page X-Gitlab-Blob-Id X-Gitlab-Commit-Id X-Gitlab-Content-Sha256 X-Gitlab-Encoding X-Gitlab-File-Name X-Gitlab-File-Path X-Gitlab-Last-Commit-Id X-Gitlab-Ref X-Gitlab-Size]
|
||||
|
|
|
@ -66,8 +66,6 @@ if gitlab.mr_labels.include?('database') || db_paths_to_review.any?
|
|||
end
|
||||
|
||||
unless helper.has_database_scoped_labels?
|
||||
gitlab.api.update_merge_request(gitlab.mr_json['project_id'],
|
||||
gitlab.mr_json['iid'],
|
||||
add_labels: 'database::review pending')
|
||||
project_helper.labels_to_add << 'database::review pending'
|
||||
end
|
||||
end
|
||||
|
|
|
@ -58,9 +58,7 @@ def message_for_feature_flag_with_group!(feature_flag:, mr_group_label:)
|
|||
return if feature_flag.group_match_mr_label?(mr_group_label)
|
||||
|
||||
if mr_group_label.nil?
|
||||
gitlab.api.update_merge_request(gitlab.mr_json['project_id'],
|
||||
gitlab.mr_json['iid'],
|
||||
add_labels: feature_flag.group)
|
||||
project_helper.labels_to_add << feature_flag.group
|
||||
else
|
||||
fail %(`group` is set to ~"#{feature_flag.group}" in #{gitlab.html_link(feature_flag.path)}, which does not match ~"#{mr_group_label}" set on the MR!)
|
||||
end
|
||||
|
|
|
@ -13,12 +13,10 @@ MSG
|
|||
|
||||
# exit if not matching files or if no product intelligence labels
|
||||
product_intelligence_paths_to_review = project_helper.changes_by_category[:product_intelligence]
|
||||
labels = product_intelligence.missing_labels
|
||||
labels_to_add = product_intelligence.missing_labels
|
||||
|
||||
return if product_intelligence_paths_to_review.empty? || labels.empty?
|
||||
return if product_intelligence_paths_to_review.empty? || labels_to_add.empty?
|
||||
|
||||
warn format(CHANGED_FILES_MESSAGE, changed_files: helper.markdown_list(product_intelligence_paths_to_review))
|
||||
|
||||
gitlab.api.update_merge_request(gitlab.mr_json['project_id'],
|
||||
gitlab.mr_json['iid'],
|
||||
add_labels: labels)
|
||||
project_helper.labels_to_add.concat(labels_to_add)
|
||||
|
|
|
@ -19,8 +19,4 @@ labels_to_add = project_helper.changes_by_category.each_with_object([]) do |(cat
|
|||
memo << label if label && !gitlab.mr_labels.include?(label)
|
||||
end
|
||||
|
||||
if labels_to_add.any?
|
||||
gitlab.api.update_merge_request(gitlab.mr_json['project_id'],
|
||||
gitlab.mr_json['iid'],
|
||||
add_labels: labels_to_add.join(','))
|
||||
end
|
||||
project_helper.labels_to_add.concat(labels_to_add) if labels_to_add.any?
|
||||
|
|
|
@ -18,7 +18,7 @@ if gitlab.mr_body.size < 5
|
|||
fail "Please provide a proper merge request description."
|
||||
end
|
||||
|
||||
if (TYPE_LABELS & gitlab.mr_labels).empty?
|
||||
if (TYPE_LABELS & (gitlab.mr_labels + project_helper.labels_to_add)).empty?
|
||||
warn 'Please add a [merge request type](https://about.gitlab.com/handbook/engineering/metrics/#work-type-classification) to this merge request.'
|
||||
end
|
||||
|
|
@ -0,0 +1,35 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class CleanUpMigrateMergeRequestDiffCommitUsers < Gitlab::Database::Migration[1.0]
|
||||
def up
|
||||
jobs = Gitlab::Database::BackgroundMigrationJob
|
||||
.for_migration_class('MigrateMergeRequestDiffCommitUsers')
|
||||
.pending
|
||||
.to_a
|
||||
|
||||
return if jobs.empty?
|
||||
|
||||
say("#{jobs.length} MigrateMergeRequestDiffCommitUsers are still pending")
|
||||
|
||||
# Normally we don't process background migrations in a regular migration, as
|
||||
# this could take a while to complete and thus block a deployment.
|
||||
#
|
||||
# In this case the jobs have all been processed for GitLab.com at the time
|
||||
# of writing. In addition, it's been a few releases since this migration was
|
||||
# introduced. As a result, self-hosted instances should have their
|
||||
# migrations finished a long time ago.
|
||||
#
|
||||
# For these reasons we clean up any pending jobs (just in case) before
|
||||
# deploying the code. This also allows us to immediately start using the new
|
||||
# setup only, instead of having to support both the old and new approach for
|
||||
# at least one more release.
|
||||
jobs.each do |job|
|
||||
Gitlab::BackgroundMigration::MigrateMergeRequestDiffCommitUsers
|
||||
.new
|
||||
.perform(*job.arguments)
|
||||
end
|
||||
end
|
||||
|
||||
def down
|
||||
end
|
||||
end
|
|
@ -0,0 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddStateIdToVsaIssueStageEvents < Gitlab::Database::Migration[1.0]
|
||||
def change
|
||||
add_column :analytics_cycle_analytics_issue_stage_events, :state_id, :smallint, default: 1, null: false
|
||||
end
|
||||
end
|
|
@ -0,0 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddStateIdToVsaMergeRequestStageEvents < Gitlab::Database::Migration[1.0]
|
||||
def change
|
||||
add_column :analytics_cycle_analytics_merge_request_stage_events, :state_id, :smallint, default: 1, null: false
|
||||
end
|
||||
end
|
|
@ -0,0 +1,13 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class RemoveMergeRequestDiffCommitColumns < Gitlab::Database::Migration[1.0]
|
||||
enable_lock_retries!
|
||||
|
||||
COLUMNS = %i[author_name author_email committer_name committer_email].freeze
|
||||
|
||||
def change
|
||||
COLUMNS.each do |column|
|
||||
remove_column(:merge_request_diff_commits, column, :text)
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1 @@
|
|||
0f2578f0266154ad2790cc808233c71566b3a3ea87c40909feba9ccc5872927c
|
|
@ -0,0 +1 @@
|
|||
2685a534728ab1a50acb49a7a5ac7d9285fdc36ec3610b93a4219e6687c22b06
|
|
@ -0,0 +1 @@
|
|||
56f86f2a20509f2052d0eab918a6d2bbb679d785cf5349916ba695aa92f0609f
|
|
@ -0,0 +1 @@
|
|||
1722382c5141157497f48b209c0fa60c5959fa16c53d09fb6e8e6b2cb6e6ab9b
|
202
db/structure.sql
202
db/structure.sql
|
@ -173,7 +173,8 @@ CREATE TABLE analytics_cycle_analytics_issue_stage_events (
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
)
|
||||
PARTITION BY HASH (stage_event_hash_id);
|
||||
|
||||
|
@ -185,7 +186,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_00 FOR VALUES WITH (modulus 32, remainder 0);
|
||||
|
||||
|
@ -197,7 +199,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_01 FOR VALUES WITH (modulus 32, remainder 1);
|
||||
|
||||
|
@ -209,7 +212,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_02 FOR VALUES WITH (modulus 32, remainder 2);
|
||||
|
||||
|
@ -221,7 +225,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_03 FOR VALUES WITH (modulus 32, remainder 3);
|
||||
|
||||
|
@ -233,7 +238,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_04 FOR VALUES WITH (modulus 32, remainder 4);
|
||||
|
||||
|
@ -245,7 +251,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_05 FOR VALUES WITH (modulus 32, remainder 5);
|
||||
|
||||
|
@ -257,7 +264,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_06 FOR VALUES WITH (modulus 32, remainder 6);
|
||||
|
||||
|
@ -269,7 +277,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_07 FOR VALUES WITH (modulus 32, remainder 7);
|
||||
|
||||
|
@ -281,7 +290,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_08 FOR VALUES WITH (modulus 32, remainder 8);
|
||||
|
||||
|
@ -293,7 +303,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_09 FOR VALUES WITH (modulus 32, remainder 9);
|
||||
|
||||
|
@ -305,7 +316,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_10 FOR VALUES WITH (modulus 32, remainder 10);
|
||||
|
||||
|
@ -317,7 +329,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_11 FOR VALUES WITH (modulus 32, remainder 11);
|
||||
|
||||
|
@ -329,7 +342,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_12 FOR VALUES WITH (modulus 32, remainder 12);
|
||||
|
||||
|
@ -341,7 +355,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_13 FOR VALUES WITH (modulus 32, remainder 13);
|
||||
|
||||
|
@ -353,7 +368,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_14 FOR VALUES WITH (modulus 32, remainder 14);
|
||||
|
||||
|
@ -365,7 +381,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_15 FOR VALUES WITH (modulus 32, remainder 15);
|
||||
|
||||
|
@ -377,7 +394,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_16 FOR VALUES WITH (modulus 32, remainder 16);
|
||||
|
||||
|
@ -389,7 +407,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_17 FOR VALUES WITH (modulus 32, remainder 17);
|
||||
|
||||
|
@ -401,7 +420,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_18 FOR VALUES WITH (modulus 32, remainder 18);
|
||||
|
||||
|
@ -413,7 +433,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_19 FOR VALUES WITH (modulus 32, remainder 19);
|
||||
|
||||
|
@ -425,7 +446,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_20 FOR VALUES WITH (modulus 32, remainder 20);
|
||||
|
||||
|
@ -437,7 +459,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_21 FOR VALUES WITH (modulus 32, remainder 21);
|
||||
|
||||
|
@ -449,7 +472,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_22 FOR VALUES WITH (modulus 32, remainder 22);
|
||||
|
||||
|
@ -461,7 +485,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_23 FOR VALUES WITH (modulus 32, remainder 23);
|
||||
|
||||
|
@ -473,7 +498,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_24 FOR VALUES WITH (modulus 32, remainder 24);
|
||||
|
||||
|
@ -485,7 +511,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_25 FOR VALUES WITH (modulus 32, remainder 25);
|
||||
|
||||
|
@ -497,7 +524,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_26 FOR VALUES WITH (modulus 32, remainder 26);
|
||||
|
||||
|
@ -509,7 +537,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_27 FOR VALUES WITH (modulus 32, remainder 27);
|
||||
|
||||
|
@ -521,7 +550,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_28 FOR VALUES WITH (modulus 32, remainder 28);
|
||||
|
||||
|
@ -533,7 +563,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_29 FOR VALUES WITH (modulus 32, remainder 29);
|
||||
|
||||
|
@ -545,7 +576,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_30 FOR VALUES WITH (modulus 32, remainder 30);
|
||||
|
||||
|
@ -557,7 +589,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_31 FOR VALUES WITH (modulus 32, remainder 31);
|
||||
|
||||
|
@ -569,7 +602,8 @@ CREATE TABLE analytics_cycle_analytics_merge_request_stage_events (
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
)
|
||||
PARTITION BY HASH (stage_event_hash_id);
|
||||
|
||||
|
@ -581,7 +615,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_00 FOR VALUES WITH (modulus 32, remainder 0);
|
||||
|
||||
|
@ -593,7 +628,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_01 FOR VALUES WITH (modulus 32, remainder 1);
|
||||
|
||||
|
@ -605,7 +641,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_02 FOR VALUES WITH (modulus 32, remainder 2);
|
||||
|
||||
|
@ -617,7 +654,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_03 FOR VALUES WITH (modulus 32, remainder 3);
|
||||
|
||||
|
@ -629,7 +667,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_04 FOR VALUES WITH (modulus 32, remainder 4);
|
||||
|
||||
|
@ -641,7 +680,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_05 FOR VALUES WITH (modulus 32, remainder 5);
|
||||
|
||||
|
@ -653,7 +693,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_06 FOR VALUES WITH (modulus 32, remainder 6);
|
||||
|
||||
|
@ -665,7 +706,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_07 FOR VALUES WITH (modulus 32, remainder 7);
|
||||
|
||||
|
@ -677,7 +719,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_08 FOR VALUES WITH (modulus 32, remainder 8);
|
||||
|
||||
|
@ -689,7 +732,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_09 FOR VALUES WITH (modulus 32, remainder 9);
|
||||
|
||||
|
@ -701,7 +745,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_10 FOR VALUES WITH (modulus 32, remainder 10);
|
||||
|
||||
|
@ -713,7 +758,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_11 FOR VALUES WITH (modulus 32, remainder 11);
|
||||
|
||||
|
@ -725,7 +771,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_12 FOR VALUES WITH (modulus 32, remainder 12);
|
||||
|
||||
|
@ -737,7 +784,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_13 FOR VALUES WITH (modulus 32, remainder 13);
|
||||
|
||||
|
@ -749,7 +797,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_14 FOR VALUES WITH (modulus 32, remainder 14);
|
||||
|
||||
|
@ -761,7 +810,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_15 FOR VALUES WITH (modulus 32, remainder 15);
|
||||
|
||||
|
@ -773,7 +823,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_16 FOR VALUES WITH (modulus 32, remainder 16);
|
||||
|
||||
|
@ -785,7 +836,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_17 FOR VALUES WITH (modulus 32, remainder 17);
|
||||
|
||||
|
@ -797,7 +849,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_18 FOR VALUES WITH (modulus 32, remainder 18);
|
||||
|
||||
|
@ -809,7 +862,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_19 FOR VALUES WITH (modulus 32, remainder 19);
|
||||
|
||||
|
@ -821,7 +875,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_20 FOR VALUES WITH (modulus 32, remainder 20);
|
||||
|
||||
|
@ -833,7 +888,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_21 FOR VALUES WITH (modulus 32, remainder 21);
|
||||
|
||||
|
@ -845,7 +901,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_22 FOR VALUES WITH (modulus 32, remainder 22);
|
||||
|
||||
|
@ -857,7 +914,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_23 FOR VALUES WITH (modulus 32, remainder 23);
|
||||
|
||||
|
@ -869,7 +927,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_24 FOR VALUES WITH (modulus 32, remainder 24);
|
||||
|
||||
|
@ -881,7 +940,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_25 FOR VALUES WITH (modulus 32, remainder 25);
|
||||
|
||||
|
@ -893,7 +953,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_26 FOR VALUES WITH (modulus 32, remainder 26);
|
||||
|
||||
|
@ -905,7 +966,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_27 FOR VALUES WITH (modulus 32, remainder 27);
|
||||
|
||||
|
@ -917,7 +979,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_28 FOR VALUES WITH (modulus 32, remainder 28);
|
||||
|
||||
|
@ -929,7 +992,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_29 FOR VALUES WITH (modulus 32, remainder 29);
|
||||
|
||||
|
@ -941,7 +1005,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_30 FOR VALUES WITH (modulus 32, remainder 30);
|
||||
|
||||
|
@ -953,7 +1018,8 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st
|
|||
milestone_id bigint,
|
||||
author_id bigint,
|
||||
start_event_timestamp timestamp with time zone NOT NULL,
|
||||
end_event_timestamp timestamp with time zone
|
||||
end_event_timestamp timestamp with time zone,
|
||||
state_id smallint DEFAULT 1 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_31 FOR VALUES WITH (modulus 32, remainder 31);
|
||||
|
||||
|
@ -15851,10 +15917,6 @@ CREATE TABLE merge_request_diff_commits (
|
|||
merge_request_diff_id integer NOT NULL,
|
||||
relative_order integer NOT NULL,
|
||||
sha bytea NOT NULL,
|
||||
author_name text,
|
||||
author_email text,
|
||||
committer_name text,
|
||||
committer_email text,
|
||||
message text,
|
||||
trailers jsonb DEFAULT '{}'::jsonb NOT NULL,
|
||||
commit_author_id bigint,
|
||||
|
|
|
@ -4097,6 +4097,26 @@ Input type: `SecurityPolicyProjectCreateInput`
|
|||
| <a id="mutationsecuritypolicyprojectcreateerrors"></a>`errors` | [`[String!]!`](#string) | Errors encountered during execution of the mutation. |
|
||||
| <a id="mutationsecuritypolicyprojectcreateproject"></a>`project` | [`Project`](#project) | Security Policy Project that was created. |
|
||||
|
||||
### `Mutation.securityPolicyProjectUnassign`
|
||||
|
||||
Unassigns the security policy project for the given project(`project_path`).
|
||||
|
||||
Input type: `SecurityPolicyProjectUnassignInput`
|
||||
|
||||
#### Arguments
|
||||
|
||||
| Name | Type | Description |
|
||||
| ---- | ---- | ----------- |
|
||||
| <a id="mutationsecuritypolicyprojectunassignclientmutationid"></a>`clientMutationId` | [`String`](#string) | A unique identifier for the client performing the mutation. |
|
||||
| <a id="mutationsecuritypolicyprojectunassignprojectpath"></a>`projectPath` | [`ID!`](#id) | Full path of the project. |
|
||||
|
||||
#### Fields
|
||||
|
||||
| Name | Type | Description |
|
||||
| ---- | ---- | ----------- |
|
||||
| <a id="mutationsecuritypolicyprojectunassignclientmutationid"></a>`clientMutationId` | [`String`](#string) | A unique identifier for the client performing the mutation. |
|
||||
| <a id="mutationsecuritypolicyprojectunassignerrors"></a>`errors` | [`[String!]!`](#string) | Errors encountered during execution of the mutation. |
|
||||
|
||||
### `Mutation.terraformStateDelete`
|
||||
|
||||
Input type: `TerraformStateDeleteInput`
|
||||
|
|
|
@ -118,6 +118,23 @@ However, you can speed these cycles up somewhat by emptying the
|
|||
`.gitlab/ci/rails.gitlab-ci.yml` file in your merge request. Just don't forget
|
||||
to revert the change before merging!
|
||||
|
||||
#### Adding labels via Danger
|
||||
|
||||
NOTE:
|
||||
This is currently applicable to the [`gitlab-org/gitlab`](https://gitlab.com/gitlab-org/gitlab)
|
||||
project only.
|
||||
|
||||
Danger is often used to improve MR hygiene by adding labels. Instead of calling the
|
||||
API directly in your `Dangerfile`, add the labels to the `project_helper.labels_to_add` array.
|
||||
The main `Dangerfile` will then take care of adding the labels to the MR with a single API call.
|
||||
|
||||
#### Shared rules and plugins
|
||||
|
||||
If the rule or plugin you implement can be useful for other projects, think about
|
||||
upstreaming them to the [`gitlab-org/gitlab-dangerfiles`](https://gitlab.com/gitlab-org/gitlab-dangerfiles) project.
|
||||
|
||||
#### Enable Danger on a project
|
||||
|
||||
To enable the Dangerfile on another existing GitLab project, run the following
|
||||
extra steps:
|
||||
|
||||
|
|
|
@ -399,6 +399,10 @@ excluded_attributes:
|
|||
- :verification_checksum
|
||||
- :verification_failure
|
||||
merge_request_diff_commits:
|
||||
- :author_name
|
||||
- :author_email
|
||||
- :committer_name
|
||||
- :committer_email
|
||||
- :merge_request_diff_id
|
||||
- :commit_author_id
|
||||
- :committer_id
|
||||
|
|
|
@ -0,0 +1,49 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module Gitlab
|
||||
module Middleware
|
||||
class CompressedJson
|
||||
COLLECTOR_PATH = '/api/v4/error_tracking/collector'
|
||||
MAXIMUM_BODY_SIZE = 200.kilobytes.to_i
|
||||
|
||||
def initialize(app)
|
||||
@app = app
|
||||
end
|
||||
|
||||
def call(env)
|
||||
if compressed_et_request?(env)
|
||||
input = extract(env['rack.input'])
|
||||
|
||||
if input.length > MAXIMUM_BODY_SIZE
|
||||
return too_large
|
||||
end
|
||||
|
||||
env.delete('HTTP_CONTENT_ENCODING')
|
||||
env['CONTENT_LENGTH'] = input.length
|
||||
env['rack.input'] = StringIO.new(input)
|
||||
end
|
||||
|
||||
@app.call(env)
|
||||
end
|
||||
|
||||
def compressed_et_request?(env)
|
||||
env['REQUEST_METHOD'] == 'POST' &&
|
||||
env['HTTP_CONTENT_ENCODING'] == 'gzip' &&
|
||||
env['CONTENT_TYPE'] == 'application/json' &&
|
||||
env['PATH_INFO'].start_with?((File.join(relative_url, COLLECTOR_PATH)))
|
||||
end
|
||||
|
||||
def too_large
|
||||
[413, { 'Content-Type' => 'text/plain' }, ['Payload Too Large']]
|
||||
end
|
||||
|
||||
def relative_url
|
||||
File.join('', Gitlab.config.gitlab.relative_url_root).chomp('/')
|
||||
end
|
||||
|
||||
def extract(input)
|
||||
Zlib::GzipReader.new(input).read(MAXIMUM_BODY_SIZE + 1)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -66,7 +66,7 @@ module Gitlab
|
|||
ProjectTemplate.new('nfhexo', 'Netlify/Hexo', _('A Hexo site that uses Netlify for CI/CD instead of GitLab, but still with all the other great GitLab features'), 'https://gitlab.com/pages/nfhexo', 'illustrations/logos/netlify.svg'),
|
||||
ProjectTemplate.new('salesforcedx', 'SalesforceDX', _('A project boilerplate for Salesforce App development with Salesforce Developer tools'), 'https://gitlab.com/gitlab-org/project-templates/salesforcedx'),
|
||||
ProjectTemplate.new('serverless_framework', 'Serverless Framework/JS', _('A basic page and serverless function that uses AWS Lambda, AWS API Gateway, and GitLab Pages'), 'https://gitlab.com/gitlab-org/project-templates/serverless-framework', 'illustrations/logos/serverless_framework.svg'),
|
||||
ProjectTemplate.new('tencent_serverless_framework', 'Tencent Serverless Framework/NextjsSSR', _('A project boilerplate for Tencent Serverless Framework that uses Next.js SSR'), 'https://gitlab.com/project-templates/nextjsssr_demo', 'illustrations/logos/tencent_serverless_framework.svg'),
|
||||
ProjectTemplate.new('tencent_serverless_framework', 'Tencent Serverless Framework/NextjsSSR', _('A project boilerplate for Tencent Serverless Framework that uses Next.js SSR'), 'https://gitlab.com/gitlab-org/project-templates/nextjsssr_demo', 'illustrations/logos/tencent_serverless_framework.svg'),
|
||||
ProjectTemplate.new('jsonnet', 'Jsonnet for Dynamic Child Pipelines', _('An example showing how to use Jsonnet with GitLab dynamic child pipelines'), 'https://gitlab.com/gitlab-org/project-templates/jsonnet'),
|
||||
ProjectTemplate.new('cluster_management', 'GitLab Cluster Management', _('An example project for managing Kubernetes clusters integrated with GitLab'), 'https://gitlab.com/gitlab-org/project-templates/cluster-management'),
|
||||
ProjectTemplate.new('kotlin_native_linux', 'Kotlin Native Linux', _('A basic template for developing Linux programs using Kotlin Native'), 'https://gitlab.com/gitlab-org/project-templates/kotlin-native-linux')
|
||||
|
|
|
@ -13,8 +13,6 @@ class GitalyTestBuild
|
|||
include GitalySetup
|
||||
|
||||
def run
|
||||
set_bundler_config
|
||||
|
||||
# If we have the binaries from the cache, we can skip building them again
|
||||
if File.exist?(tmp_tests_gitaly_bin_dir)
|
||||
GitalySetup::LOGGER.debug "Gitaly binary already built. Skip building...\n"
|
||||
|
|
|
@ -9,7 +9,6 @@ class GitalyTestSpawn
|
|||
include GitalySetup
|
||||
|
||||
def run
|
||||
set_bundler_config
|
||||
install_gitaly_gems if ENV['CI']
|
||||
check_gitaly_config!
|
||||
|
||||
|
|
|
@ -172,5 +172,5 @@ function danger_as_local() {
|
|||
# Force danger to skip CI source GitLab and fallback to "local only git repo".
|
||||
unset GITLAB_CI
|
||||
# We need to base SHA to help danger determine the base commit for this shallow clone.
|
||||
bundle exec danger dry_run --fail-on-errors=true --verbose --base="${CI_MERGE_REQUEST_DIFF_BASE_SHA}"
|
||||
bundle exec danger dry_run --fail-on-errors=true --verbose --base="${CI_MERGE_REQUEST_DIFF_BASE_SHA}" --head="${CI_MERGE_REQUEST_SOURCE_BRANCH_SHA}"
|
||||
}
|
||||
|
|
|
@ -18,8 +18,8 @@ RSpec.describe 'Database schema' do
|
|||
approvals: %w[user_id],
|
||||
approver_groups: %w[target_id],
|
||||
approvers: %w[target_id user_id],
|
||||
analytics_cycle_analytics_merge_request_stage_events: %w[author_id group_id merge_request_id milestone_id project_id stage_event_hash_id],
|
||||
analytics_cycle_analytics_issue_stage_events: %w[author_id group_id issue_id milestone_id project_id stage_event_hash_id],
|
||||
analytics_cycle_analytics_merge_request_stage_events: %w[author_id group_id merge_request_id milestone_id project_id stage_event_hash_id state_id],
|
||||
analytics_cycle_analytics_issue_stage_events: %w[author_id group_id issue_id milestone_id project_id stage_event_hash_id state_id],
|
||||
audit_events: %w[author_id entity_id target_id],
|
||||
award_emoji: %w[awardable_id user_id],
|
||||
aws_roles: %w[role_external_id],
|
||||
|
|
|
@ -2795,11 +2795,7 @@
|
|||
"sha": "bb5206fee213d983da88c47f9cf4cc6caf9c66dc",
|
||||
"message": "Feature conflict added\n\nSigned-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>\n",
|
||||
"authored_date": "2014-08-06T08:35:52.000+02:00",
|
||||
"author_name": "Dmitriy Zaporozhets",
|
||||
"author_email": "dmitriy.zaporozhets@gmail.com",
|
||||
"committed_date": "2014-08-06T08:35:52.000+02:00",
|
||||
"committer_name": "Dmitriy Zaporozhets",
|
||||
"committer_email": "dmitriy.zaporozhets@gmail.com",
|
||||
"commit_author": {
|
||||
"name": "Dmitriy Zaporozhets",
|
||||
"email": "dmitriy.zaporozhets@gmail.com"
|
||||
|
@ -2815,11 +2811,7 @@
|
|||
"sha": "5937ac0a7beb003549fc5fd26fc247adbce4a52e",
|
||||
"message": "Add submodule from gitlab.com\n\nSigned-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>\n",
|
||||
"authored_date": "2014-02-27T10:01:38.000+01:00",
|
||||
"author_name": "Dmitriy Zaporozhets",
|
||||
"author_email": "dmitriy.zaporozhets@gmail.com",
|
||||
"committed_date": "2014-02-27T10:01:38.000+01:00",
|
||||
"committer_name": "Dmitriy Zaporozhets",
|
||||
"committer_email": "dmitriy.zaporozhets@gmail.com",
|
||||
"commit_author": {
|
||||
"name": "Dmitriy Zaporozhets",
|
||||
"email": "dmitriy.zaporozhets@gmail.com"
|
||||
|
@ -2835,11 +2827,7 @@
|
|||
"sha": "570e7b2abdd848b95f2f578043fc23bd6f6fd24d",
|
||||
"message": "Change some files\n\nSigned-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>\n",
|
||||
"authored_date": "2014-02-27T09:57:31.000+01:00",
|
||||
"author_name": "Dmitriy Zaporozhets",
|
||||
"author_email": "dmitriy.zaporozhets@gmail.com",
|
||||
"committed_date": "2014-02-27T09:57:31.000+01:00",
|
||||
"committer_name": "Dmitriy Zaporozhets",
|
||||
"committer_email": "dmitriy.zaporozhets@gmail.com",
|
||||
"commit_author": {
|
||||
"name": "Dmitriy Zaporozhets",
|
||||
"email": "dmitriy.zaporozhets@gmail.com"
|
||||
|
@ -2855,11 +2843,7 @@
|
|||
"sha": "6f6d7e7ed97bb5f0054f2b1df789b39ca89b6ff9",
|
||||
"message": "More submodules\n\nSigned-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>\n",
|
||||
"authored_date": "2014-02-27T09:54:21.000+01:00",
|
||||
"author_name": "Dmitriy Zaporozhets",
|
||||
"author_email": "dmitriy.zaporozhets@gmail.com",
|
||||
"committed_date": "2014-02-27T09:54:21.000+01:00",
|
||||
"committer_name": "Dmitriy Zaporozhets",
|
||||
"committer_email": "dmitriy.zaporozhets@gmail.com",
|
||||
"commit_author": {
|
||||
"name": "Dmitriy Zaporozhets",
|
||||
"email": "dmitriy.zaporozhets@gmail.com"
|
||||
|
@ -2875,11 +2859,7 @@
|
|||
"sha": "d14d6c0abdd253381df51a723d58691b2ee1ab08",
|
||||
"message": "Remove ds_store files\n\nSigned-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>\n",
|
||||
"authored_date": "2014-02-27T09:49:50.000+01:00",
|
||||
"author_name": "Dmitriy Zaporozhets",
|
||||
"author_email": "dmitriy.zaporozhets@gmail.com",
|
||||
"committed_date": "2014-02-27T09:49:50.000+01:00",
|
||||
"committer_name": "Dmitriy Zaporozhets",
|
||||
"committer_email": "dmitriy.zaporozhets@gmail.com",
|
||||
"commit_author": {
|
||||
"name": "Dmitriy Zaporozhets",
|
||||
"email": "dmitriy.zaporozhets@gmail.com"
|
||||
|
@ -2895,11 +2875,7 @@
|
|||
"sha": "c1acaa58bbcbc3eafe538cb8274ba387047b69f8",
|
||||
"message": "Ignore DS files\n\nSigned-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>\n",
|
||||
"authored_date": "2014-02-27T09:48:32.000+01:00",
|
||||
"author_name": "Dmitriy Zaporozhets",
|
||||
"author_email": "dmitriy.zaporozhets@gmail.com",
|
||||
"committed_date": "2014-02-27T09:48:32.000+01:00",
|
||||
"committer_name": "Dmitriy Zaporozhets",
|
||||
"committer_email": "dmitriy.zaporozhets@gmail.com",
|
||||
"commit_author": {
|
||||
"name": "Dmitriy Zaporozhets",
|
||||
"email": "dmitriy.zaporozhets@gmail.com"
|
||||
|
@ -3291,11 +3267,7 @@
|
|||
"relative_order": 0,
|
||||
"message": "Feature added\n\nSigned-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>\n",
|
||||
"authored_date": "2014-02-27T09:26:01.000+01:00",
|
||||
"author_name": "Dmitriy Zaporozhets",
|
||||
"author_email": "dmitriy.zaporozhets@gmail.com",
|
||||
"committed_date": "2014-02-27T09:26:01.000+01:00",
|
||||
"committer_name": "Dmitriy Zaporozhets",
|
||||
"committer_email": "dmitriy.zaporozhets@gmail.com",
|
||||
"commit_author": {
|
||||
"name": "Dmitriy Zaporozhets",
|
||||
"email": "dmitriy.zaporozhets@gmail.com"
|
||||
|
@ -3562,11 +3534,7 @@
|
|||
"sha": "94b8d581c48d894b86661718582fecbc5e3ed2eb",
|
||||
"message": "fixes #10\n",
|
||||
"authored_date": "2016-01-19T13:22:56.000+01:00",
|
||||
"author_name": "James Lopez",
|
||||
"author_email": "james@jameslopez.es",
|
||||
"committed_date": "2016-01-19T13:22:56.000+01:00",
|
||||
"committer_name": "James Lopez",
|
||||
"committer_email": "james@jameslopez.es",
|
||||
"commit_author": {
|
||||
"name": "James Lopez",
|
||||
"email": "james@jameslopez.es"
|
||||
|
@ -3833,11 +3801,7 @@
|
|||
"sha": "ddd4ff416a931589c695eb4f5b23f844426f6928",
|
||||
"message": "fixes #10\n",
|
||||
"authored_date": "2016-01-19T14:14:43.000+01:00",
|
||||
"author_name": "James Lopez",
|
||||
"author_email": "james@jameslopez.es",
|
||||
"committed_date": "2016-01-19T14:14:43.000+01:00",
|
||||
"committer_name": "James Lopez",
|
||||
"committer_email": "james@jameslopez.es",
|
||||
"commit_author": {
|
||||
"name": "James Lopez",
|
||||
"email": "james@jameslopez.es"
|
||||
|
@ -3853,11 +3817,7 @@
|
|||
"sha": "be93687618e4b132087f430a4d8fc3a609c9b77c",
|
||||
"message": "Merge branch 'master' into 'master'\r\n\r\nLFS object pointer.\r\n\r\n\r\n\r\nSee merge request !6",
|
||||
"authored_date": "2015-12-07T12:52:12.000+01:00",
|
||||
"author_name": "Marin Jankovski",
|
||||
"author_email": "marin@gitlab.com",
|
||||
"committed_date": "2015-12-07T12:52:12.000+01:00",
|
||||
"committer_name": "Marin Jankovski",
|
||||
"committer_email": "marin@gitlab.com",
|
||||
"commit_author": {
|
||||
"name": "Marin Jankovski",
|
||||
"email": "marin@gitlab.com"
|
||||
|
@ -3873,11 +3833,7 @@
|
|||
"sha": "048721d90c449b244b7b4c53a9186b04330174ec",
|
||||
"message": "LFS object pointer.\n",
|
||||
"authored_date": "2015-12-07T11:54:28.000+01:00",
|
||||
"author_name": "Marin Jankovski",
|
||||
"author_email": "maxlazio@gmail.com",
|
||||
"committed_date": "2015-12-07T11:54:28.000+01:00",
|
||||
"committer_name": "Marin Jankovski",
|
||||
"committer_email": "maxlazio@gmail.com",
|
||||
"commit_author": {
|
||||
"name": "Marin Jankovski",
|
||||
"email": "maxlazio@gmail.com"
|
||||
|
@ -3893,11 +3849,7 @@
|
|||
"sha": "5f923865dde3436854e9ceb9cdb7815618d4e849",
|
||||
"message": "GitLab currently doesn't support patches that involve a merge commit: add a commit here\n",
|
||||
"authored_date": "2015-11-13T16:27:12.000+01:00",
|
||||
"author_name": "Stan Hu",
|
||||
"author_email": "stanhu@gmail.com",
|
||||
"committed_date": "2015-11-13T16:27:12.000+01:00",
|
||||
"committer_name": "Stan Hu",
|
||||
"committer_email": "stanhu@gmail.com",
|
||||
"commit_author": {
|
||||
"name": "Stan Hu",
|
||||
"email": "stanhu@gmail.com"
|
||||
|
@ -3913,11 +3865,7 @@
|
|||
"sha": "d2d430676773caa88cdaf7c55944073b2fd5561a",
|
||||
"message": "Merge branch 'add-svg' into 'master'\r\n\r\nAdd GitLab SVG\r\n\r\nAdded to test preview of sanitized SVG images\r\n\r\nSee merge request !5",
|
||||
"authored_date": "2015-11-13T08:50:17.000+01:00",
|
||||
"author_name": "Stan Hu",
|
||||
"author_email": "stanhu@gmail.com",
|
||||
"committed_date": "2015-11-13T08:50:17.000+01:00",
|
||||
"committer_name": "Stan Hu",
|
||||
"committer_email": "stanhu@gmail.com",
|
||||
"commit_author": {
|
||||
"name": "Stan Hu",
|
||||
"email": "stanhu@gmail.com"
|
||||
|
@ -3933,11 +3881,7 @@
|
|||
"sha": "2ea1f3dec713d940208fb5ce4a38765ecb5d3f73",
|
||||
"message": "Add GitLab SVG\n",
|
||||
"authored_date": "2015-11-13T08:39:43.000+01:00",
|
||||
"author_name": "Stan Hu",
|
||||
"author_email": "stanhu@gmail.com",
|
||||
"committed_date": "2015-11-13T08:39:43.000+01:00",
|
||||
"committer_name": "Stan Hu",
|
||||
"committer_email": "stanhu@gmail.com",
|
||||
"commit_author": {
|
||||
"name": "Stan Hu",
|
||||
"email": "stanhu@gmail.com"
|
||||
|
@ -3953,11 +3897,7 @@
|
|||
"sha": "59e29889be61e6e0e5e223bfa9ac2721d31605b8",
|
||||
"message": "Merge branch 'whitespace' into 'master'\r\n\r\nadd whitespace test file\r\n\r\nSorry, I did a mistake.\r\nGit ignore empty files.\r\nSo I add a new whitespace test file.\r\n\r\nSee merge request !4",
|
||||
"authored_date": "2015-11-13T07:21:40.000+01:00",
|
||||
"author_name": "Stan Hu",
|
||||
"author_email": "stanhu@gmail.com",
|
||||
"committed_date": "2015-11-13T07:21:40.000+01:00",
|
||||
"committer_name": "Stan Hu",
|
||||
"committer_email": "stanhu@gmail.com",
|
||||
"commit_author": {
|
||||
"name": "Stan Hu",
|
||||
"email": "stanhu@gmail.com"
|
||||
|
@ -3973,11 +3913,7 @@
|
|||
"sha": "66eceea0db202bb39c4e445e8ca28689645366c5",
|
||||
"message": "add spaces in whitespace file\n",
|
||||
"authored_date": "2015-11-13T06:01:27.000+01:00",
|
||||
"author_name": "윤민식",
|
||||
"author_email": "minsik.yoon@samsung.com",
|
||||
"committed_date": "2015-11-13T06:01:27.000+01:00",
|
||||
"committer_name": "윤민식",
|
||||
"committer_email": "minsik.yoon@samsung.com",
|
||||
"commit_author": {
|
||||
"name": "윤민식",
|
||||
"email": "minsik.yoon@samsung.com"
|
||||
|
@ -3993,11 +3929,7 @@
|
|||
"sha": "08f22f255f082689c0d7d39d19205085311542bc",
|
||||
"message": "remove empty file.(beacase git ignore empty file)\nadd whitespace test file.\n",
|
||||
"authored_date": "2015-11-13T06:00:16.000+01:00",
|
||||
"author_name": "윤민식",
|
||||
"author_email": "minsik.yoon@samsung.com",
|
||||
"committed_date": "2015-11-13T06:00:16.000+01:00",
|
||||
"committer_name": "윤민식",
|
||||
"committer_email": "minsik.yoon@samsung.com",
|
||||
"commit_author": {
|
||||
"name": "윤민식",
|
||||
"email": "minsik.yoon@samsung.com"
|
||||
|
@ -4013,11 +3945,7 @@
|
|||
"sha": "19e2e9b4ef76b422ce1154af39a91323ccc57434",
|
||||
"message": "Merge branch 'whitespace' into 'master'\r\n\r\nadd spaces\r\n\r\nTo test this pull request.(https://github.com/gitlabhq/gitlabhq/pull/9757)\r\nJust add whitespaces.\r\n\r\nSee merge request !3",
|
||||
"authored_date": "2015-11-13T05:23:14.000+01:00",
|
||||
"author_name": "Stan Hu",
|
||||
"author_email": "stanhu@gmail.com",
|
||||
"committed_date": "2015-11-13T05:23:14.000+01:00",
|
||||
"committer_name": "Stan Hu",
|
||||
"committer_email": "stanhu@gmail.com",
|
||||
"commit_author": {
|
||||
"name": "Stan Hu",
|
||||
"email": "stanhu@gmail.com"
|
||||
|
@ -4033,11 +3961,7 @@
|
|||
"sha": "c642fe9b8b9f28f9225d7ea953fe14e74748d53b",
|
||||
"message": "add whitespace in empty\n",
|
||||
"authored_date": "2015-11-13T05:08:45.000+01:00",
|
||||
"author_name": "윤민식",
|
||||
"author_email": "minsik.yoon@samsung.com",
|
||||
"committed_date": "2015-11-13T05:08:45.000+01:00",
|
||||
"committer_name": "윤민식",
|
||||
"committer_email": "minsik.yoon@samsung.com",
|
||||
"commit_author": {
|
||||
"name": "윤민식",
|
||||
"email": "minsik.yoon@samsung.com"
|
||||
|
@ -4053,11 +3977,7 @@
|
|||
"sha": "9a944d90955aaf45f6d0c88f30e27f8d2c41cec0",
|
||||
"message": "add empty file\n",
|
||||
"authored_date": "2015-11-13T05:08:04.000+01:00",
|
||||
"author_name": "윤민식",
|
||||
"author_email": "minsik.yoon@samsung.com",
|
||||
"committed_date": "2015-11-13T05:08:04.000+01:00",
|
||||
"committer_name": "윤민식",
|
||||
"committer_email": "minsik.yoon@samsung.com",
|
||||
"commit_author": {
|
||||
"name": "윤민식",
|
||||
"email": "minsik.yoon@samsung.com"
|
||||
|
@ -4073,11 +3993,7 @@
|
|||
"sha": "c7fbe50c7c7419d9701eebe64b1fdacc3df5b9dd",
|
||||
"message": "Add ISO-8859 test file\n",
|
||||
"authored_date": "2015-08-25T17:53:12.000+02:00",
|
||||
"author_name": "Stan Hu",
|
||||
"author_email": "stanhu@packetzoom.com",
|
||||
"committed_date": "2015-08-25T17:53:12.000+02:00",
|
||||
"committer_name": "Stan Hu",
|
||||
"committer_email": "stanhu@packetzoom.com",
|
||||
"commit_author": {
|
||||
"name": "Stan Hu",
|
||||
"email": "stanhu@packetzoom.com"
|
||||
|
@ -4093,11 +4009,7 @@
|
|||
"sha": "e56497bb5f03a90a51293fc6d516788730953899",
|
||||
"message": "Merge branch 'tree_helper_spec' into 'master'\n\nAdd directory structure for tree_helper spec\n\nThis directory structure is needed for a testing the method flatten_tree(tree) in the TreeHelper module\n\nSee [merge request #275](https://gitlab.com/gitlab-org/gitlab-foss/merge_requests/275#note_732774)\n\nSee merge request !2\n",
|
||||
"authored_date": "2015-01-10T22:23:29.000+01:00",
|
||||
"author_name": "Sytse Sijbrandij",
|
||||
"author_email": "sytse@gitlab.com",
|
||||
"committed_date": "2015-01-10T22:23:29.000+01:00",
|
||||
"committer_name": "Sytse Sijbrandij",
|
||||
"committer_email": "sytse@gitlab.com",
|
||||
"commit_author": {
|
||||
"name": "Sytse Sijbrandij",
|
||||
"email": "sytse@gitlab.com"
|
||||
|
@ -4113,11 +4025,7 @@
|
|||
"sha": "4cd80ccab63c82b4bad16faa5193fbd2aa06df40",
|
||||
"message": "add directory structure for tree_helper spec\n",
|
||||
"authored_date": "2015-01-10T21:28:18.000+01:00",
|
||||
"author_name": "marmis85",
|
||||
"author_email": "marmis85@gmail.com",
|
||||
"committed_date": "2015-01-10T21:28:18.000+01:00",
|
||||
"committer_name": "marmis85",
|
||||
"committer_email": "marmis85@gmail.com",
|
||||
"commit_author": {
|
||||
"name": "marmis85",
|
||||
"email": "marmis85@gmail.com"
|
||||
|
@ -4133,11 +4041,7 @@
|
|||
"sha": "5937ac0a7beb003549fc5fd26fc247adbce4a52e",
|
||||
"message": "Add submodule from gitlab.com\n\nSigned-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>\n",
|
||||
"authored_date": "2014-02-27T10:01:38.000+01:00",
|
||||
"author_name": "Dmitriy Zaporozhets",
|
||||
"author_email": "dmitriy.zaporozhets@gmail.com",
|
||||
"committed_date": "2014-02-27T10:01:38.000+01:00",
|
||||
"committer_name": "Dmitriy Zaporozhets",
|
||||
"committer_email": "dmitriy.zaporozhets@gmail.com",
|
||||
"commit_author": {
|
||||
"name": "Dmitriy Zaporozhets",
|
||||
"email": "dmitriy.zaporozhets@gmail.com"
|
||||
|
@ -4153,11 +4057,7 @@
|
|||
"sha": "570e7b2abdd848b95f2f578043fc23bd6f6fd24d",
|
||||
"message": "Change some files\n\nSigned-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>\n",
|
||||
"authored_date": "2014-02-27T09:57:31.000+01:00",
|
||||
"author_name": "Dmitriy Zaporozhets",
|
||||
"author_email": "dmitriy.zaporozhets@gmail.com",
|
||||
"committed_date": "2014-02-27T09:57:31.000+01:00",
|
||||
"committer_name": "Dmitriy Zaporozhets",
|
||||
"committer_email": "dmitriy.zaporozhets@gmail.com",
|
||||
"commit_author": {
|
||||
"name": "Dmitriy Zaporozhets",
|
||||
"email": "dmitriy.zaporozhets@gmail.com"
|
||||
|
@ -4173,11 +4073,7 @@
|
|||
"sha": "6f6d7e7ed97bb5f0054f2b1df789b39ca89b6ff9",
|
||||
"message": "More submodules\n\nSigned-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>\n",
|
||||
"authored_date": "2014-02-27T09:54:21.000+01:00",
|
||||
"author_name": "Dmitriy Zaporozhets",
|
||||
"author_email": "dmitriy.zaporozhets@gmail.com",
|
||||
"committed_date": "2014-02-27T09:54:21.000+01:00",
|
||||
"committer_name": "Dmitriy Zaporozhets",
|
||||
"committer_email": "dmitriy.zaporozhets@gmail.com",
|
||||
"commit_author": {
|
||||
"name": "Dmitriy Zaporozhets",
|
||||
"email": "dmitriy.zaporozhets@gmail.com"
|
||||
|
@ -4193,11 +4089,7 @@
|
|||
"sha": "d14d6c0abdd253381df51a723d58691b2ee1ab08",
|
||||
"message": "Remove ds_store files\n\nSigned-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>\n",
|
||||
"authored_date": "2014-02-27T09:49:50.000+01:00",
|
||||
"author_name": "Dmitriy Zaporozhets",
|
||||
"author_email": "dmitriy.zaporozhets@gmail.com",
|
||||
"committed_date": "2014-02-27T09:49:50.000+01:00",
|
||||
"committer_name": "Dmitriy Zaporozhets",
|
||||
"committer_email": "dmitriy.zaporozhets@gmail.com",
|
||||
"commit_author": {
|
||||
"name": "Dmitriy Zaporozhets",
|
||||
"email": "dmitriy.zaporozhets@gmail.com"
|
||||
|
@ -4213,11 +4105,7 @@
|
|||
"sha": "c1acaa58bbcbc3eafe538cb8274ba387047b69f8",
|
||||
"message": "Ignore DS files\n\nSigned-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>\n",
|
||||
"authored_date": "2014-02-27T09:48:32.000+01:00",
|
||||
"author_name": "Dmitriy Zaporozhets",
|
||||
"author_email": "dmitriy.zaporozhets@gmail.com",
|
||||
"committed_date": "2014-02-27T09:48:32.000+01:00",
|
||||
"committer_name": "Dmitriy Zaporozhets",
|
||||
"committer_email": "dmitriy.zaporozhets@gmail.com",
|
||||
"commit_author": {
|
||||
"name": "Dmitriy Zaporozhets",
|
||||
"email": "dmitriy.zaporozhets@gmail.com"
|
||||
|
@ -4678,11 +4566,7 @@
|
|||
"sha": "0bfedc29d30280c7e8564e19f654584b459e5868",
|
||||
"message": "fixes #10\n",
|
||||
"authored_date": "2016-01-19T15:25:23.000+01:00",
|
||||
"author_name": "James Lopez",
|
||||
"author_email": "james@jameslopez.es",
|
||||
"committed_date": "2016-01-19T15:25:23.000+01:00",
|
||||
"committer_name": "James Lopez",
|
||||
"committer_email": "james@jameslopez.es",
|
||||
"commit_author": {
|
||||
"name": "James Lopez",
|
||||
"email": "james@jameslopez.es"
|
||||
|
@ -4698,11 +4582,7 @@
|
|||
"sha": "be93687618e4b132087f430a4d8fc3a609c9b77c",
|
||||
"message": "Merge branch 'master' into 'master'\r\n\r\nLFS object pointer.\r\n\r\n\r\n\r\nSee merge request !6",
|
||||
"authored_date": "2015-12-07T12:52:12.000+01:00",
|
||||
"author_name": "Marin Jankovski",
|
||||
"author_email": "marin@gitlab.com",
|
||||
"committed_date": "2015-12-07T12:52:12.000+01:00",
|
||||
"committer_name": "Marin Jankovski",
|
||||
"committer_email": "marin@gitlab.com",
|
||||
"commit_author": {
|
||||
"name": "Marin Jankovski",
|
||||
"email": "marin@gitlab.com"
|
||||
|
@ -4718,11 +4598,7 @@
|
|||
"sha": "048721d90c449b244b7b4c53a9186b04330174ec",
|
||||
"message": "LFS object pointer.\n",
|
||||
"authored_date": "2015-12-07T11:54:28.000+01:00",
|
||||
"author_name": "Marin Jankovski",
|
||||
"author_email": "maxlazio@gmail.com",
|
||||
"committed_date": "2015-12-07T11:54:28.000+01:00",
|
||||
"committer_name": "Marin Jankovski",
|
||||
"committer_email": "maxlazio@gmail.com",
|
||||
"commit_author": {
|
||||
"name": "Marin Jankovski",
|
||||
"email": "maxlazio@gmail.com"
|
||||
|
@ -4738,11 +4614,7 @@
|
|||
"sha": "5f923865dde3436854e9ceb9cdb7815618d4e849",
|
||||
"message": "GitLab currently doesn't support patches that involve a merge commit: add a commit here\n",
|
||||
"authored_date": "2015-11-13T16:27:12.000+01:00",
|
||||
"author_name": "Stan Hu",
|
||||
"author_email": "stanhu@gmail.com",
|
||||
"committed_date": "2015-11-13T16:27:12.000+01:00",
|
||||
"committer_name": "Stan Hu",
|
||||
"committer_email": "stanhu@gmail.com",
|
||||
"commit_author": {
|
||||
"name": "Stan Hu",
|
||||
"email": "stanhu@gmail.com"
|
||||
|
@ -4758,11 +4630,7 @@
|
|||
"sha": "d2d430676773caa88cdaf7c55944073b2fd5561a",
|
||||
"message": "Merge branch 'add-svg' into 'master'\r\n\r\nAdd GitLab SVG\r\n\r\nAdded to test preview of sanitized SVG images\r\n\r\nSee merge request !5",
|
||||
"authored_date": "2015-11-13T08:50:17.000+01:00",
|
||||
"author_name": "Stan Hu",
|
||||
"author_email": "stanhu@gmail.com",
|
||||
"committed_date": "2015-11-13T08:50:17.000+01:00",
|
||||
"committer_name": "Stan Hu",
|
||||
"committer_email": "stanhu@gmail.com",
|
||||
"commit_author": {
|
||||
"name": "Stan Hu",
|
||||
"email": "stanhu@gmail.com"
|
||||
|
@ -4778,11 +4646,7 @@
|
|||
"sha": "2ea1f3dec713d940208fb5ce4a38765ecb5d3f73",
|
||||
"message": "Add GitLab SVG\n",
|
||||
"authored_date": "2015-11-13T08:39:43.000+01:00",
|
||||
"author_name": "Stan Hu",
|
||||
"author_email": "stanhu@gmail.com",
|
||||
"committed_date": "2015-11-13T08:39:43.000+01:00",
|
||||
"committer_name": "Stan Hu",
|
||||
"committer_email": "stanhu@gmail.com",
|
||||
"commit_author": {
|
||||
"name": "Stan Hu",
|
||||
"email": "stanhu@gmail.com"
|
||||
|
@ -4798,11 +4662,7 @@
|
|||
"sha": "59e29889be61e6e0e5e223bfa9ac2721d31605b8",
|
||||
"message": "Merge branch 'whitespace' into 'master'\r\n\r\nadd whitespace test file\r\n\r\nSorry, I did a mistake.\r\nGit ignore empty files.\r\nSo I add a new whitespace test file.\r\n\r\nSee merge request !4",
|
||||
"authored_date": "2015-11-13T07:21:40.000+01:00",
|
||||
"author_name": "Stan Hu",
|
||||
"author_email": "stanhu@gmail.com",
|
||||
"committed_date": "2015-11-13T07:21:40.000+01:00",
|
||||
"committer_name": "Stan Hu",
|
||||
"committer_email": "stanhu@gmail.com",
|
||||
"commit_author": {
|
||||
"name": "Stan Hu",
|
||||
"email": "stanhu@gmail.com"
|
||||
|
@ -4818,11 +4678,7 @@
|
|||
"sha": "66eceea0db202bb39c4e445e8ca28689645366c5",
|
||||
"message": "add spaces in whitespace file\n",
|
||||
"authored_date": "2015-11-13T06:01:27.000+01:00",
|
||||
"author_name": "윤민식",
|
||||
"author_email": "minsik.yoon@samsung.com",
|
||||
"committed_date": "2015-11-13T06:01:27.000+01:00",
|
||||
"committer_name": "윤민식",
|
||||
"committer_email": "minsik.yoon@samsung.com",
|
||||
"commit_author": {
|
||||
"name": "윤민식",
|
||||
"email": "minsik.yoon@samsung.com"
|
||||
|
@ -4838,11 +4694,7 @@
|
|||
"sha": "08f22f255f082689c0d7d39d19205085311542bc",
|
||||
"message": "remove empty file.(beacase git ignore empty file)\nadd whitespace test file.\n",
|
||||
"authored_date": "2015-11-13T06:00:16.000+01:00",
|
||||
"author_name": "윤민식",
|
||||
"author_email": "minsik.yoon@samsung.com",
|
||||
"committed_date": "2015-11-13T06:00:16.000+01:00",
|
||||
"committer_name": "윤민식",
|
||||
"committer_email": "minsik.yoon@samsung.com",
|
||||
"commit_author": {
|
||||
"name": "윤민식",
|
||||
"email": "minsik.yoon@samsung.com"
|
||||
|
@ -4858,11 +4710,7 @@
|
|||
"sha": "19e2e9b4ef76b422ce1154af39a91323ccc57434",
|
||||
"message": "Merge branch 'whitespace' into 'master'\r\n\r\nadd spaces\r\n\r\nTo test this pull request.(https://github.com/gitlabhq/gitlabhq/pull/9757)\r\nJust add whitespaces.\r\n\r\nSee merge request !3",
|
||||
"authored_date": "2015-11-13T05:23:14.000+01:00",
|
||||
"author_name": "Stan Hu",
|
||||
"author_email": "stanhu@gmail.com",
|
||||
"committed_date": "2015-11-13T05:23:14.000+01:00",
|
||||
"committer_name": "Stan Hu",
|
||||
"committer_email": "stanhu@gmail.com",
|
||||
"commit_author": {
|
||||
"name": "Stan Hu",
|
||||
"email": "stanhu@gmail.com"
|
||||
|
@ -4878,11 +4726,7 @@
|
|||
"sha": "c642fe9b8b9f28f9225d7ea953fe14e74748d53b",
|
||||
"message": "add whitespace in empty\n",
|
||||
"authored_date": "2015-11-13T05:08:45.000+01:00",
|
||||
"author_name": "윤민식",
|
||||
"author_email": "minsik.yoon@samsung.com",
|
||||
"committed_date": "2015-11-13T05:08:45.000+01:00",
|
||||
"committer_name": "윤민식",
|
||||
"committer_email": "minsik.yoon@samsung.com",
|
||||
"commit_author": {
|
||||
"name": "윤민식",
|
||||
"email": "minsik.yoon@samsung.com"
|
||||
|
@ -4898,11 +4742,7 @@
|
|||
"sha": "9a944d90955aaf45f6d0c88f30e27f8d2c41cec0",
|
||||
"message": "add empty file\n",
|
||||
"authored_date": "2015-11-13T05:08:04.000+01:00",
|
||||
"author_name": "윤민식",
|
||||
"author_email": "minsik.yoon@samsung.com",
|
||||
"committed_date": "2015-11-13T05:08:04.000+01:00",
|
||||
"committer_name": "윤민식",
|
||||
"committer_email": "minsik.yoon@samsung.com",
|
||||
"commit_author": {
|
||||
"name": "윤민식",
|
||||
"email": "minsik.yoon@samsung.com"
|
||||
|
@ -4918,11 +4758,7 @@
|
|||
"sha": "c7fbe50c7c7419d9701eebe64b1fdacc3df5b9dd",
|
||||
"message": "Add ISO-8859 test file\n",
|
||||
"authored_date": "2015-08-25T17:53:12.000+02:00",
|
||||
"author_name": "Stan Hu",
|
||||
"author_email": "stanhu@packetzoom.com",
|
||||
"committed_date": "2015-08-25T17:53:12.000+02:00",
|
||||
"committer_name": "Stan Hu",
|
||||
"committer_email": "stanhu@packetzoom.com",
|
||||
"commit_author": {
|
||||
"name": "Stan Hu",
|
||||
"email": "stanhu@packetzoom.com"
|
||||
|
@ -4938,11 +4774,7 @@
|
|||
"sha": "e56497bb5f03a90a51293fc6d516788730953899",
|
||||
"message": "Merge branch 'tree_helper_spec' into 'master'\n\nAdd directory structure for tree_helper spec\n\nThis directory structure is needed for a testing the method flatten_tree(tree) in the TreeHelper module\n\nSee [merge request #275](https://gitlab.com/gitlab-org/gitlab-foss/merge_requests/275#note_732774)\n\nSee merge request !2\n",
|
||||
"authored_date": "2015-01-10T22:23:29.000+01:00",
|
||||
"author_name": "Sytse Sijbrandij",
|
||||
"author_email": "sytse@gitlab.com",
|
||||
"committed_date": "2015-01-10T22:23:29.000+01:00",
|
||||
"committer_name": "Sytse Sijbrandij",
|
||||
"committer_email": "sytse@gitlab.com",
|
||||
"commit_author": {
|
||||
"name": "Sytse Sijbrandij",
|
||||
"email": "sytse@gitlab.com"
|
||||
|
@ -4958,11 +4790,7 @@
|
|||
"sha": "4cd80ccab63c82b4bad16faa5193fbd2aa06df40",
|
||||
"message": "add directory structure for tree_helper spec\n",
|
||||
"authored_date": "2015-01-10T21:28:18.000+01:00",
|
||||
"author_name": "marmis85",
|
||||
"author_email": "marmis85@gmail.com",
|
||||
"committed_date": "2015-01-10T21:28:18.000+01:00",
|
||||
"committer_name": "marmis85",
|
||||
"committer_email": "marmis85@gmail.com",
|
||||
"commit_author": {
|
||||
"name": "marmis85",
|
||||
"email": "marmis85@gmail.com"
|
||||
|
@ -5307,11 +5135,7 @@
|
|||
"sha": "97a0df9696e2aebf10c31b3016f40214e0e8f243",
|
||||
"message": "fixes #10\n",
|
||||
"authored_date": "2016-01-19T14:08:21.000+01:00",
|
||||
"author_name": "James Lopez",
|
||||
"author_email": "james@jameslopez.es",
|
||||
"committed_date": "2016-01-19T14:08:21.000+01:00",
|
||||
"committer_name": "James Lopez",
|
||||
"committer_email": "james@jameslopez.es",
|
||||
"commit_author": {
|
||||
"name": "James Lopez",
|
||||
"email": "james@jameslopez.es"
|
||||
|
@ -5327,11 +5151,7 @@
|
|||
"sha": "be93687618e4b132087f430a4d8fc3a609c9b77c",
|
||||
"message": "Merge branch 'master' into 'master'\r\n\r\nLFS object pointer.\r\n\r\n\r\n\r\nSee merge request !6",
|
||||
"authored_date": "2015-12-07T12:52:12.000+01:00",
|
||||
"author_name": "Marin Jankovski",
|
||||
"author_email": "marin@gitlab.com",
|
||||
"committed_date": "2015-12-07T12:52:12.000+01:00",
|
||||
"committer_name": "Marin Jankovski",
|
||||
"committer_email": "marin@gitlab.com",
|
||||
"commit_author": {
|
||||
"name": "Marin Jankovski",
|
||||
"email": "marin@gitlab.com"
|
||||
|
@ -5347,11 +5167,7 @@
|
|||
"sha": "048721d90c449b244b7b4c53a9186b04330174ec",
|
||||
"message": "LFS object pointer.\n",
|
||||
"authored_date": "2015-12-07T11:54:28.000+01:00",
|
||||
"author_name": "Marin Jankovski",
|
||||
"author_email": "maxlazio@gmail.com",
|
||||
"committed_date": "2015-12-07T11:54:28.000+01:00",
|
||||
"committer_name": "Marin Jankovski",
|
||||
"committer_email": "maxlazio@gmail.com",
|
||||
"commit_author": {
|
||||
"name": "Marin Jankovski",
|
||||
"email": "maxlazio@gmail.com"
|
||||
|
@ -5367,11 +5183,7 @@
|
|||
"sha": "5f923865dde3436854e9ceb9cdb7815618d4e849",
|
||||
"message": "GitLab currently doesn't support patches that involve a merge commit: add a commit here\n",
|
||||
"authored_date": "2015-11-13T16:27:12.000+01:00",
|
||||
"author_name": "Stan Hu",
|
||||
"author_email": "stanhu@gmail.com",
|
||||
"committed_date": "2015-11-13T16:27:12.000+01:00",
|
||||
"committer_name": "Stan Hu",
|
||||
"committer_email": "stanhu@gmail.com",
|
||||
"commit_author": {
|
||||
"name": "Stan Hu",
|
||||
"email": "stanhu@gmail.com"
|
||||
|
@ -5387,11 +5199,7 @@
|
|||
"sha": "d2d430676773caa88cdaf7c55944073b2fd5561a",
|
||||
"message": "Merge branch 'add-svg' into 'master'\r\n\r\nAdd GitLab SVG\r\n\r\nAdded to test preview of sanitized SVG images\r\n\r\nSee merge request !5",
|
||||
"authored_date": "2015-11-13T08:50:17.000+01:00",
|
||||
"author_name": "Stan Hu",
|
||||
"author_email": "stanhu@gmail.com",
|
||||
"committed_date": "2015-11-13T08:50:17.000+01:00",
|
||||
"committer_name": "Stan Hu",
|
||||
"committer_email": "stanhu@gmail.com",
|
||||
"commit_author": {
|
||||
"name": "Stan Hu",
|
||||
"email": "stanhu@gmail.com"
|
||||
|
@ -5407,11 +5215,7 @@
|
|||
"sha": "2ea1f3dec713d940208fb5ce4a38765ecb5d3f73",
|
||||
"message": "Add GitLab SVG\n",
|
||||
"authored_date": "2015-11-13T08:39:43.000+01:00",
|
||||
"author_name": "Stan Hu",
|
||||
"author_email": "stanhu@gmail.com",
|
||||
"committed_date": "2015-11-13T08:39:43.000+01:00",
|
||||
"committer_name": "Stan Hu",
|
||||
"committer_email": "stanhu@gmail.com",
|
||||
"commit_author": {
|
||||
"name": "Stan Hu",
|
||||
"email": "stanhu@gmail.com"
|
||||
|
@ -5427,11 +5231,7 @@
|
|||
"sha": "59e29889be61e6e0e5e223bfa9ac2721d31605b8",
|
||||
"message": "Merge branch 'whitespace' into 'master'\r\n\r\nadd whitespace test file\r\n\r\nSorry, I did a mistake.\r\nGit ignore empty files.\r\nSo I add a new whitespace test file.\r\n\r\nSee merge request !4",
|
||||
"authored_date": "2015-11-13T07:21:40.000+01:00",
|
||||
"author_name": "Stan Hu",
|
||||
"author_email": "stanhu@gmail.com",
|
||||
"committed_date": "2015-11-13T07:21:40.000+01:00",
|
||||
"committer_name": "Stan Hu",
|
||||
"committer_email": "stanhu@gmail.com",
|
||||
"commit_author": {
|
||||
"name": "Stan Hu",
|
||||
"email": "stanhu@gmail.com"
|
||||
|
@ -5447,11 +5247,7 @@
|
|||
"sha": "66eceea0db202bb39c4e445e8ca28689645366c5",
|
||||
"message": "add spaces in whitespace file\n",
|
||||
"authored_date": "2015-11-13T06:01:27.000+01:00",
|
||||
"author_name": "윤민식",
|
||||
"author_email": "minsik.yoon@samsung.com",
|
||||
"committed_date": "2015-11-13T06:01:27.000+01:00",
|
||||
"committer_name": "윤민식",
|
||||
"committer_email": "minsik.yoon@samsung.com",
|
||||
"commit_author": {
|
||||
"name": "윤민식",
|
||||
"email": "minsik.yoon@samsung.com"
|
||||
|
@ -5467,11 +5263,7 @@
|
|||
"sha": "08f22f255f082689c0d7d39d19205085311542bc",
|
||||
"message": "remove empty file.(beacase git ignore empty file)\nadd whitespace test file.\n",
|
||||
"authored_date": "2015-11-13T06:00:16.000+01:00",
|
||||
"author_name": "윤민식",
|
||||
"author_email": "minsik.yoon@samsung.com",
|
||||
"committed_date": "2015-11-13T06:00:16.000+01:00",
|
||||
"committer_name": "윤민식",
|
||||
"committer_email": "minsik.yoon@samsung.com",
|
||||
"commit_author": {
|
||||
"name": "윤민식",
|
||||
"email": "minsik.yoon@samsung.com"
|
||||
|
@ -5487,11 +5279,7 @@
|
|||
"sha": "19e2e9b4ef76b422ce1154af39a91323ccc57434",
|
||||
"message": "Merge branch 'whitespace' into 'master'\r\n\r\nadd spaces\r\n\r\nTo test this pull request.(https://github.com/gitlabhq/gitlabhq/pull/9757)\r\nJust add whitespaces.\r\n\r\nSee merge request !3",
|
||||
"authored_date": "2015-11-13T05:23:14.000+01:00",
|
||||
"author_name": "Stan Hu",
|
||||
"author_email": "stanhu@gmail.com",
|
||||
"committed_date": "2015-11-13T05:23:14.000+01:00",
|
||||
"committer_name": "Stan Hu",
|
||||
"committer_email": "stanhu@gmail.com",
|
||||
"commit_author": {
|
||||
"name": "Stan Hu",
|
||||
"email": "stanhu@gmail.com"
|
||||
|
@ -5507,11 +5295,7 @@
|
|||
"sha": "c642fe9b8b9f28f9225d7ea953fe14e74748d53b",
|
||||
"message": "add whitespace in empty\n",
|
||||
"authored_date": "2015-11-13T05:08:45.000+01:00",
|
||||
"author_name": "윤민식",
|
||||
"author_email": "minsik.yoon@samsung.com",
|
||||
"committed_date": "2015-11-13T05:08:45.000+01:00",
|
||||
"committer_name": "윤민식",
|
||||
"committer_email": "minsik.yoon@samsung.com",
|
||||
"commit_author": {
|
||||
"name": "윤민식",
|
||||
"email": "minsik.yoon@samsung.com"
|
||||
|
@ -5527,11 +5311,7 @@
|
|||
"sha": "9a944d90955aaf45f6d0c88f30e27f8d2c41cec0",
|
||||
"message": "add empty file\n",
|
||||
"authored_date": "2015-11-13T05:08:04.000+01:00",
|
||||
"author_name": "윤민식",
|
||||
"author_email": "minsik.yoon@samsung.com",
|
||||
"committed_date": "2015-11-13T05:08:04.000+01:00",
|
||||
"committer_name": "윤민식",
|
||||
"committer_email": "minsik.yoon@samsung.com",
|
||||
"commit_author": {
|
||||
"name": "윤민식",
|
||||
"email": "minsik.yoon@samsung.com"
|
||||
|
@ -5547,11 +5327,7 @@
|
|||
"sha": "c7fbe50c7c7419d9701eebe64b1fdacc3df5b9dd",
|
||||
"message": "Add ISO-8859 test file\n",
|
||||
"authored_date": "2015-08-25T17:53:12.000+02:00",
|
||||
"author_name": "Stan Hu",
|
||||
"author_email": "stanhu@packetzoom.com",
|
||||
"committed_date": "2015-08-25T17:53:12.000+02:00",
|
||||
"committer_name": "Stan Hu",
|
||||
"committer_email": "stanhu@packetzoom.com",
|
||||
"commit_author": {
|
||||
"name": "Stan Hu",
|
||||
"email": "stanhu@packetzoom.com"
|
||||
|
@ -6119,11 +5895,7 @@
|
|||
"sha": "f998ac87ac9244f15e9c15109a6f4e62a54b779d",
|
||||
"message": "fixes #10\n",
|
||||
"authored_date": "2016-01-19T14:43:23.000+01:00",
|
||||
"author_name": "James Lopez",
|
||||
"author_email": "james@jameslopez.es",
|
||||
"committed_date": "2016-01-19T14:43:23.000+01:00",
|
||||
"committer_name": "James Lopez",
|
||||
"committer_email": "james@jameslopez.es",
|
||||
"commit_author": {
|
||||
"name": "James Lopez",
|
||||
"email": "james@jameslopez.es"
|
||||
|
@ -6139,11 +5911,7 @@
|
|||
"sha": "be93687618e4b132087f430a4d8fc3a609c9b77c",
|
||||
"message": "Merge branch 'master' into 'master'\r\n\r\nLFS object pointer.\r\n\r\n\r\n\r\nSee merge request !6",
|
||||
"authored_date": "2015-12-07T12:52:12.000+01:00",
|
||||
"author_name": "Marin Jankovski",
|
||||
"author_email": "marin@gitlab.com",
|
||||
"committed_date": "2015-12-07T12:52:12.000+01:00",
|
||||
"committer_name": "Marin Jankovski",
|
||||
"committer_email": "marin@gitlab.com",
|
||||
"commit_author": {
|
||||
"name": "Marin Jankovski",
|
||||
"email": "marin@gitlab.com"
|
||||
|
@ -6159,11 +5927,7 @@
|
|||
"sha": "048721d90c449b244b7b4c53a9186b04330174ec",
|
||||
"message": "LFS object pointer.\n",
|
||||
"authored_date": "2015-12-07T11:54:28.000+01:00",
|
||||
"author_name": "Marin Jankovski",
|
||||
"author_email": "maxlazio@gmail.com",
|
||||
"committed_date": "2015-12-07T11:54:28.000+01:00",
|
||||
"committer_name": "Marin Jankovski",
|
||||
"committer_email": "maxlazio@gmail.com",
|
||||
"commit_author": {
|
||||
"name": "Marin Jankovski",
|
||||
"email": "maxlazio@gmail.com"
|
||||
|
@ -6179,11 +5943,7 @@
|
|||
"sha": "5f923865dde3436854e9ceb9cdb7815618d4e849",
|
||||
"message": "GitLab currently doesn't support patches that involve a merge commit: add a commit here\n",
|
||||
"authored_date": "2015-11-13T16:27:12.000+01:00",
|
||||
"author_name": "Stan Hu",
|
||||
"author_email": "stanhu@gmail.com",
|
||||
"committed_date": "2015-11-13T16:27:12.000+01:00",
|
||||
"committer_name": "Stan Hu",
|
||||
"committer_email": "stanhu@gmail.com",
|
||||
"commit_author": {
|
||||
"name": "Stan Hu",
|
||||
"email": "stanhu@gmail.com"
|
||||
|
@ -6199,11 +5959,7 @@
|
|||
"sha": "d2d430676773caa88cdaf7c55944073b2fd5561a",
|
||||
"message": "Merge branch 'add-svg' into 'master'\r\n\r\nAdd GitLab SVG\r\n\r\nAdded to test preview of sanitized SVG images\r\n\r\nSee merge request !5",
|
||||
"authored_date": "2015-11-13T08:50:17.000+01:00",
|
||||
"author_name": "Stan Hu",
|
||||
"author_email": "stanhu@gmail.com",
|
||||
"committed_date": "2015-11-13T08:50:17.000+01:00",
|
||||
"committer_name": "Stan Hu",
|
||||
"committer_email": "stanhu@gmail.com",
|
||||
"commit_author": {
|
||||
"name": "Stan Hu",
|
||||
"email": "stanhu@gmail.com"
|
||||
|
@ -6219,11 +5975,7 @@
|
|||
"sha": "2ea1f3dec713d940208fb5ce4a38765ecb5d3f73",
|
||||
"message": "Add GitLab SVG\n",
|
||||
"authored_date": "2015-11-13T08:39:43.000+01:00",
|
||||
"author_name": "Stan Hu",
|
||||
"author_email": "stanhu@gmail.com",
|
||||
"committed_date": "2015-11-13T08:39:43.000+01:00",
|
||||
"committer_name": "Stan Hu",
|
||||
"committer_email": "stanhu@gmail.com",
|
||||
"commit_author": {
|
||||
"name": "Stan Hu",
|
||||
"email": "stanhu@gmail.com"
|
||||
|
@ -6239,11 +5991,7 @@
|
|||
"sha": "59e29889be61e6e0e5e223bfa9ac2721d31605b8",
|
||||
"message": "Merge branch 'whitespace' into 'master'\r\n\r\nadd whitespace test file\r\n\r\nSorry, I did a mistake.\r\nGit ignore empty files.\r\nSo I add a new whitespace test file.\r\n\r\nSee merge request !4",
|
||||
"authored_date": "2015-11-13T07:21:40.000+01:00",
|
||||
"author_name": "Stan Hu",
|
||||
"author_email": "stanhu@gmail.com",
|
||||
"committed_date": "2015-11-13T07:21:40.000+01:00",
|
||||
"committer_name": "Stan Hu",
|
||||
"committer_email": "stanhu@gmail.com",
|
||||
"commit_author": {
|
||||
"name": "Stan Hu",
|
||||
"email": "stanhu@gmail.com"
|
||||
|
@ -6259,11 +6007,7 @@
|
|||
"sha": "66eceea0db202bb39c4e445e8ca28689645366c5",
|
||||
"message": "add spaces in whitespace file\n",
|
||||
"authored_date": "2015-11-13T06:01:27.000+01:00",
|
||||
"author_name": "윤민식",
|
||||
"author_email": "minsik.yoon@samsung.com",
|
||||
"committed_date": "2015-11-13T06:01:27.000+01:00",
|
||||
"committer_name": "윤민식",
|
||||
"committer_email": "minsik.yoon@samsung.com",
|
||||
"commit_author": {
|
||||
"name": "윤민식",
|
||||
"email": "minsik.yoon@samsung.com"
|
||||
|
@ -6279,11 +6023,7 @@
|
|||
"sha": "08f22f255f082689c0d7d39d19205085311542bc",
|
||||
"message": "remove empty file.(beacase git ignore empty file)\nadd whitespace test file.\n",
|
||||
"authored_date": "2015-11-13T06:00:16.000+01:00",
|
||||
"author_name": "윤민식",
|
||||
"author_email": "minsik.yoon@samsung.com",
|
||||
"committed_date": "2015-11-13T06:00:16.000+01:00",
|
||||
"committer_name": "윤민식",
|
||||
"committer_email": "minsik.yoon@samsung.com",
|
||||
"commit_author": {
|
||||
"name": "윤민식",
|
||||
"email": "minsik.yoon@samsung.com"
|
||||
|
@ -6299,11 +6039,7 @@
|
|||
"sha": "19e2e9b4ef76b422ce1154af39a91323ccc57434",
|
||||
"message": "Merge branch 'whitespace' into 'master'\r\n\r\nadd spaces\r\n\r\nTo test this pull request.(https://github.com/gitlabhq/gitlabhq/pull/9757)\r\nJust add whitespaces.\r\n\r\nSee merge request !3",
|
||||
"authored_date": "2015-11-13T05:23:14.000+01:00",
|
||||
"author_name": "Stan Hu",
|
||||
"author_email": "stanhu@gmail.com",
|
||||
"committed_date": "2015-11-13T05:23:14.000+01:00",
|
||||
"committer_name": "Stan Hu",
|
||||
"committer_email": "stanhu@gmail.com",
|
||||
"commit_author": {
|
||||
"name": "Stan Hu",
|
||||
"email": "stanhu@gmail.com"
|
||||
|
@ -6319,11 +6055,7 @@
|
|||
"sha": "c642fe9b8b9f28f9225d7ea953fe14e74748d53b",
|
||||
"message": "add whitespace in empty\n",
|
||||
"authored_date": "2015-11-13T05:08:45.000+01:00",
|
||||
"author_name": "윤민식",
|
||||
"author_email": "minsik.yoon@samsung.com",
|
||||
"committed_date": "2015-11-13T05:08:45.000+01:00",
|
||||
"committer_name": "윤민식",
|
||||
"committer_email": "minsik.yoon@samsung.com",
|
||||
"commit_author": {
|
||||
"name": "윤민식",
|
||||
"email": "minsik.yoon@samsung.com"
|
||||
|
@ -6339,11 +6071,7 @@
|
|||
"sha": "9a944d90955aaf45f6d0c88f30e27f8d2c41cec0",
|
||||
"message": "add empty file\n",
|
||||
"authored_date": "2015-11-13T05:08:04.000+01:00",
|
||||
"author_name": "윤민식",
|
||||
"author_email": "minsik.yoon@samsung.com",
|
||||
"committed_date": "2015-11-13T05:08:04.000+01:00",
|
||||
"committer_name": "윤민식",
|
||||
"committer_email": "minsik.yoon@samsung.com",
|
||||
"commit_author": {
|
||||
"name": "윤민식",
|
||||
"email": "minsik.yoon@samsung.com"
|
||||
|
@ -6359,11 +6087,7 @@
|
|||
"sha": "c7fbe50c7c7419d9701eebe64b1fdacc3df5b9dd",
|
||||
"message": "Add ISO-8859 test file\n",
|
||||
"authored_date": "2015-08-25T17:53:12.000+02:00",
|
||||
"author_name": "Stan Hu",
|
||||
"author_email": "stanhu@packetzoom.com",
|
||||
"committed_date": "2015-08-25T17:53:12.000+02:00",
|
||||
"committer_name": "Stan Hu",
|
||||
"committer_email": "stanhu@packetzoom.com",
|
||||
"commit_author": {
|
||||
"name": "Stan Hu",
|
||||
"email": "stanhu@packetzoom.com"
|
||||
|
@ -6379,11 +6103,7 @@
|
|||
"sha": "e56497bb5f03a90a51293fc6d516788730953899",
|
||||
"message": "Merge branch 'tree_helper_spec' into 'master'\n\nAdd directory structure for tree_helper spec\n\nThis directory structure is needed for a testing the method flatten_tree(tree) in the TreeHelper module\n\nSee [merge request #275](https://gitlab.com/gitlab-org/gitlab-foss/merge_requests/275#note_732774)\n\nSee merge request !2\n",
|
||||
"authored_date": "2015-01-10T22:23:29.000+01:00",
|
||||
"author_name": "Sytse Sijbrandij",
|
||||
"author_email": "sytse@gitlab.com",
|
||||
"committed_date": "2015-01-10T22:23:29.000+01:00",
|
||||
"committer_name": "Sytse Sijbrandij",
|
||||
"committer_email": "sytse@gitlab.com",
|
||||
"commit_author": {
|
||||
"name": "Sytse Sijbrandij",
|
||||
"email": "sytse@gitlab.com"
|
||||
|
@ -6399,11 +6119,7 @@
|
|||
"sha": "4cd80ccab63c82b4bad16faa5193fbd2aa06df40",
|
||||
"message": "add directory structure for tree_helper spec\n",
|
||||
"authored_date": "2015-01-10T21:28:18.000+01:00",
|
||||
"author_name": "marmis85",
|
||||
"author_email": "marmis85@gmail.com",
|
||||
"committed_date": "2015-01-10T21:28:18.000+01:00",
|
||||
"committer_name": "marmis85",
|
||||
"committer_email": "marmis85@gmail.com",
|
||||
"commit_author": {
|
||||
"name": "marmis85",
|
||||
"email": "marmis85@gmail.com"
|
||||
|
@ -6419,11 +6135,7 @@
|
|||
"sha": "5937ac0a7beb003549fc5fd26fc247adbce4a52e",
|
||||
"message": "Add submodule from gitlab.com\n\nSigned-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>\n",
|
||||
"authored_date": "2014-02-27T10:01:38.000+01:00",
|
||||
"author_name": "Dmitriy Zaporozhets",
|
||||
"author_email": "dmitriy.zaporozhets@gmail.com",
|
||||
"committed_date": "2014-02-27T10:01:38.000+01:00",
|
||||
"committer_name": "Dmitriy Zaporozhets",
|
||||
"committer_email": "dmitriy.zaporozhets@gmail.com",
|
||||
"commit_author": {
|
||||
"name": "Dmitriy Zaporozhets",
|
||||
"email": "dmitriy.zaporozhets@gmail.com"
|
||||
|
@ -6439,11 +6151,7 @@
|
|||
"sha": "570e7b2abdd848b95f2f578043fc23bd6f6fd24d",
|
||||
"message": "Change some files\n\nSigned-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>\n",
|
||||
"authored_date": "2014-02-27T09:57:31.000+01:00",
|
||||
"author_name": "Dmitriy Zaporozhets",
|
||||
"author_email": "dmitriy.zaporozhets@gmail.com",
|
||||
"committed_date": "2014-02-27T09:57:31.000+01:00",
|
||||
"committer_name": "Dmitriy Zaporozhets",
|
||||
"committer_email": "dmitriy.zaporozhets@gmail.com",
|
||||
"commit_author": {
|
||||
"name": "Dmitriy Zaporozhets",
|
||||
"email": "dmitriy.zaporozhets@gmail.com"
|
||||
|
@ -6459,11 +6167,7 @@
|
|||
"sha": "6f6d7e7ed97bb5f0054f2b1df789b39ca89b6ff9",
|
||||
"message": "More submodules\n\nSigned-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>\n",
|
||||
"authored_date": "2014-02-27T09:54:21.000+01:00",
|
||||
"author_name": "Dmitriy Zaporozhets",
|
||||
"author_email": "dmitriy.zaporozhets@gmail.com",
|
||||
"committed_date": "2014-02-27T09:54:21.000+01:00",
|
||||
"committer_name": "Dmitriy Zaporozhets",
|
||||
"committer_email": "dmitriy.zaporozhets@gmail.com",
|
||||
"commit_author": {
|
||||
"name": "Dmitriy Zaporozhets",
|
||||
"email": "dmitriy.zaporozhets@gmail.com"
|
||||
|
@ -6479,11 +6183,7 @@
|
|||
"sha": "d14d6c0abdd253381df51a723d58691b2ee1ab08",
|
||||
"message": "Remove ds_store files\n\nSigned-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>\n",
|
||||
"authored_date": "2014-02-27T09:49:50.000+01:00",
|
||||
"author_name": "Dmitriy Zaporozhets",
|
||||
"author_email": "dmitriy.zaporozhets@gmail.com",
|
||||
"committed_date": "2014-02-27T09:49:50.000+01:00",
|
||||
"committer_name": "Dmitriy Zaporozhets",
|
||||
"committer_email": "dmitriy.zaporozhets@gmail.com",
|
||||
"commit_author": {
|
||||
"name": "Dmitriy Zaporozhets",
|
||||
"email": "dmitriy.zaporozhets@gmail.com"
|
||||
|
@ -6499,11 +6199,7 @@
|
|||
"sha": "c1acaa58bbcbc3eafe538cb8274ba387047b69f8",
|
||||
"message": "Ignore DS files\n\nSigned-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>\n",
|
||||
"authored_date": "2014-02-27T09:48:32.000+01:00",
|
||||
"author_name": "Dmitriy Zaporozhets",
|
||||
"author_email": "dmitriy.zaporozhets@gmail.com",
|
||||
"committed_date": "2014-02-27T09:48:32.000+01:00",
|
||||
"committer_name": "Dmitriy Zaporozhets",
|
||||
"committer_email": "dmitriy.zaporozhets@gmail.com",
|
||||
"commit_author": {
|
||||
"name": "Dmitriy Zaporozhets",
|
||||
"email": "dmitriy.zaporozhets@gmail.com"
|
||||
|
@ -6952,11 +6648,7 @@
|
|||
"sha": "a4e5dfebf42e34596526acb8611bc7ed80e4eb3f",
|
||||
"message": "fixes #10\n",
|
||||
"authored_date": "2016-01-19T15:44:02.000+01:00",
|
||||
"author_name": "James Lopez",
|
||||
"author_email": "james@jameslopez.es",
|
||||
"committed_date": "2016-01-19T15:44:02.000+01:00",
|
||||
"committer_name": "James Lopez",
|
||||
"committer_email": "james@jameslopez.es",
|
||||
"commit_author": {
|
||||
"name": "James Lopez",
|
||||
"email": "james@jameslopez.es"
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -52,6 +52,7 @@ describe('Pipeline Editor | Commit section', () => {
|
|||
const defaultProps = {
|
||||
ciFileContent: mockCiYml,
|
||||
commitSha: mockCommitSha,
|
||||
isNewCiConfigFile: false,
|
||||
};
|
||||
|
||||
const createComponent = ({ props = {}, options = {}, provide = {} } = {}) => {
|
||||
|
@ -72,7 +73,6 @@ describe('Pipeline Editor | Commit section', () => {
|
|||
data() {
|
||||
return {
|
||||
currentBranch: mockDefaultBranch,
|
||||
isNewCiConfigFile: Boolean(options?.isNewCiConfigfile),
|
||||
};
|
||||
},
|
||||
mocks: {
|
||||
|
@ -115,7 +115,7 @@ describe('Pipeline Editor | Commit section', () => {
|
|||
|
||||
describe('when the user commits a new file', () => {
|
||||
beforeEach(async () => {
|
||||
createComponent({ options: { isNewCiConfigfile: true } });
|
||||
createComponent({ props: { isNewCiConfigFile: true } });
|
||||
await submitCommit();
|
||||
});
|
||||
|
||||
|
|
|
@ -35,6 +35,17 @@ job_build:
|
|||
- echo "build"
|
||||
needs: ["job_test_2"]
|
||||
`;
|
||||
|
||||
export const mockCiTemplateQueryResponse = {
|
||||
data: {
|
||||
project: {
|
||||
ciTemplate: {
|
||||
content: mockCiYml,
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export const mockBlobContentQueryResponse = {
|
||||
data: {
|
||||
project: { repository: { blobs: { nodes: [{ rawBlob: mockCiYml }] } } },
|
||||
|
|
|
@ -11,17 +11,21 @@ import PipelineEditorMessages from '~/pipeline_editor/components/ui/pipeline_edi
|
|||
import { COMMIT_SUCCESS, COMMIT_FAILURE } from '~/pipeline_editor/constants';
|
||||
import getBlobContent from '~/pipeline_editor/graphql/queries/blob_content.graphql';
|
||||
import getCiConfigData from '~/pipeline_editor/graphql/queries/ci_config.graphql';
|
||||
import getPipelineQuery from '~/pipeline_editor/graphql/queries/client/pipeline.graphql';
|
||||
import getTemplate from '~/pipeline_editor/graphql/queries/get_starter_template.query.graphql';
|
||||
import getLatestCommitShaQuery from '~/pipeline_editor/graphql/queries/latest_commit_sha.query.graphql';
|
||||
|
||||
import getPipelineQuery from '~/pipeline_editor/graphql/queries/client/pipeline.graphql';
|
||||
|
||||
import PipelineEditorApp from '~/pipeline_editor/pipeline_editor_app.vue';
|
||||
import PipelineEditorHome from '~/pipeline_editor/pipeline_editor_home.vue';
|
||||
|
||||
import {
|
||||
mockCiConfigPath,
|
||||
mockCiConfigQueryResponse,
|
||||
mockBlobContentQueryResponse,
|
||||
mockBlobContentQueryResponseNoCiFile,
|
||||
mockCiYml,
|
||||
mockCiTemplateQueryResponse,
|
||||
mockCommitSha,
|
||||
mockCommitShaResults,
|
||||
mockDefaultBranch,
|
||||
|
@ -79,7 +83,7 @@ describe('Pipeline editor app component', () => {
|
|||
});
|
||||
};
|
||||
|
||||
const createComponentWithApollo = async ({ props = {}, provide = {}, stubs = {} } = {}) => {
|
||||
const createComponentWithApollo = async ({ provide = {}, stubs = {} } = {}) => {
|
||||
const handlers = [
|
||||
[getBlobContent, mockBlobContentData],
|
||||
[getCiConfigData, mockCiConfigData],
|
||||
|
@ -87,7 +91,6 @@ describe('Pipeline editor app component', () => {
|
|||
[getLatestCommitShaQuery, mockLatestCommitShaQuery],
|
||||
[getPipelineQuery, mockPipelineQuery],
|
||||
];
|
||||
|
||||
mockApollo = createMockApollo(handlers);
|
||||
|
||||
const options = {
|
||||
|
@ -95,13 +98,15 @@ describe('Pipeline editor app component', () => {
|
|||
data() {
|
||||
return {
|
||||
currentBranch: mockDefaultBranch,
|
||||
lastCommitBranch: '',
|
||||
appStatus: '',
|
||||
};
|
||||
},
|
||||
mocks: {},
|
||||
apolloProvider: mockApollo,
|
||||
};
|
||||
|
||||
createComponent({ props, provide, stubs, options });
|
||||
createComponent({ provide, stubs, options });
|
||||
|
||||
return waitForPromises();
|
||||
};
|
||||
|
@ -199,7 +204,7 @@ describe('Pipeline editor app component', () => {
|
|||
it('shows a unkown error message', async () => {
|
||||
const loadUnknownFailureText = 'The CI configuration was not loaded, please try again.';
|
||||
|
||||
mockBlobContentData.mockRejectedValueOnce(new Error('My error!'));
|
||||
mockBlobContentData.mockRejectedValueOnce();
|
||||
await createComponentWithApollo({
|
||||
stubs: {
|
||||
PipelineEditorMessages,
|
||||
|
@ -344,6 +349,8 @@ describe('Pipeline editor app component', () => {
|
|||
|
||||
describe('when refetching content', () => {
|
||||
beforeEach(() => {
|
||||
mockBlobContentData.mockResolvedValue(mockBlobContentQueryResponse);
|
||||
mockCiConfigData.mockResolvedValue(mockCiConfigQueryResponse);
|
||||
mockLatestCommitShaQuery.mockResolvedValue(mockCommitShaResults);
|
||||
});
|
||||
|
||||
|
@ -379,7 +386,10 @@ describe('Pipeline editor app component', () => {
|
|||
const originalLocation = window.location.href;
|
||||
|
||||
beforeEach(() => {
|
||||
mockBlobContentData.mockResolvedValue(mockBlobContentQueryResponse);
|
||||
mockCiConfigData.mockResolvedValue(mockCiConfigQueryResponse);
|
||||
mockLatestCommitShaQuery.mockResolvedValue(mockCommitShaResults);
|
||||
mockGetTemplate.mockResolvedValue(mockCiTemplateQueryResponse);
|
||||
setWindowLocation('?template=Android');
|
||||
});
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
require 'spec_helper'
|
||||
|
||||
RSpec.describe Gitlab::BackgroundMigration::MigrateMergeRequestDiffCommitUsers do
|
||||
RSpec.describe Gitlab::BackgroundMigration::MigrateMergeRequestDiffCommitUsers, schema: 20211012134316 do
|
||||
let(:namespaces) { table(:namespaces) }
|
||||
let(:projects) { table(:projects) }
|
||||
let(:users) { table(:users) }
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
require 'spec_helper'
|
||||
|
||||
RSpec.describe Gitlab::BackgroundMigration::StealMigrateMergeRequestDiffCommitUsers do
|
||||
RSpec.describe Gitlab::BackgroundMigration::StealMigrateMergeRequestDiffCommitUsers, schema: 20211012134316 do
|
||||
let(:migration) { described_class.new }
|
||||
|
||||
describe '#perform' do
|
||||
|
|
|
@ -23,7 +23,7 @@ RSpec.describe Gitlab::ImportExport::Project::TreeRestorer do
|
|||
]
|
||||
|
||||
RSpec::Mocks.with_temporary_scope do
|
||||
@project = create(:project, :builds_enabled, :issues_disabled, name: 'project', path: 'project')
|
||||
@project = create(:project, :repository, :builds_enabled, :issues_disabled, name: 'project', path: 'project')
|
||||
@shared = @project.import_export_shared
|
||||
|
||||
stub_all_feature_flags
|
||||
|
@ -36,7 +36,6 @@ RSpec.describe Gitlab::ImportExport::Project::TreeRestorer do
|
|||
allow_any_instance_of(Gitlab::Git::Repository).to receive(:branch_exists?).and_return(false)
|
||||
|
||||
expect(@shared).not_to receive(:error)
|
||||
expect_any_instance_of(Gitlab::Git::Repository).to receive(:create_branch).with('feature', 'DCBA')
|
||||
allow_any_instance_of(Gitlab::Git::Repository).to receive(:create_branch)
|
||||
|
||||
project_tree_restorer = described_class.new(user: @user, shared: @shared, project: @project)
|
||||
|
|
|
@ -0,0 +1,75 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require 'spec_helper'
|
||||
|
||||
RSpec.describe Gitlab::Middleware::CompressedJson do
|
||||
let_it_be(:decompressed_input) { '{"foo": "bar"}' }
|
||||
let_it_be(:input) { ActiveSupport::Gzip.compress(decompressed_input) }
|
||||
|
||||
let(:app) { double(:app) }
|
||||
let(:middleware) { described_class.new(app) }
|
||||
let(:env) do
|
||||
{
|
||||
'HTTP_CONTENT_ENCODING' => 'gzip',
|
||||
'REQUEST_METHOD' => 'POST',
|
||||
'CONTENT_TYPE' => 'application/json',
|
||||
'PATH_INFO' => path,
|
||||
'rack.input' => StringIO.new(input)
|
||||
}
|
||||
end
|
||||
|
||||
shared_examples 'decompress middleware' do
|
||||
it 'replaces input with a decompressed content' do
|
||||
expect(app).to receive(:call)
|
||||
|
||||
middleware.call(env)
|
||||
|
||||
expect(env['rack.input'].read).to eq(decompressed_input)
|
||||
expect(env['CONTENT_LENGTH']).to eq(decompressed_input.length)
|
||||
expect(env['HTTP_CONTENT_ENCODING']).to be_nil
|
||||
end
|
||||
end
|
||||
|
||||
describe '#call' do
|
||||
context 'with collector route' do
|
||||
let(:path) { '/api/v4/error_tracking/collector/1/store'}
|
||||
|
||||
it_behaves_like 'decompress middleware'
|
||||
end
|
||||
|
||||
context 'with collector route under relative url' do
|
||||
let(:path) { '/gitlab/api/v4/error_tracking/collector/1/store'}
|
||||
|
||||
before do
|
||||
stub_config_setting(relative_url_root: '/gitlab')
|
||||
end
|
||||
|
||||
it_behaves_like 'decompress middleware'
|
||||
end
|
||||
|
||||
context 'with some other route' do
|
||||
let(:path) { '/api/projects/123' }
|
||||
|
||||
it 'keeps the original input' do
|
||||
expect(app).to receive(:call)
|
||||
|
||||
middleware.call(env)
|
||||
|
||||
expect(env['rack.input'].read).to eq(input)
|
||||
expect(env['HTTP_CONTENT_ENCODING']).to eq('gzip')
|
||||
end
|
||||
end
|
||||
|
||||
context 'payload is too large' do
|
||||
let(:body_limit) { Gitlab::Middleware::CompressedJson::MAXIMUM_BODY_SIZE }
|
||||
let(:decompressed_input) { 'a' * (body_limit + 100) }
|
||||
let(:input) { ActiveSupport::Gzip.compress(decompressed_input) }
|
||||
let(:path) { '/api/v4/error_tracking/collector/1/envelope'}
|
||||
|
||||
it 'reads only limited size' do
|
||||
expect(middleware.call(env))
|
||||
.to eq([413, { 'Content-Type' => 'text/plain' }, ['Payload Too Large']])
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,48 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require 'spec_helper'
|
||||
require_migration! 'clean_up_migrate_merge_request_diff_commit_users'
|
||||
|
||||
RSpec.describe CleanUpMigrateMergeRequestDiffCommitUsers, :migration do
|
||||
describe '#up' do
|
||||
context 'when there are pending jobs' do
|
||||
it 'processes the jobs immediately' do
|
||||
Gitlab::Database::BackgroundMigrationJob.create!(
|
||||
class_name: 'MigrateMergeRequestDiffCommitUsers',
|
||||
status: :pending,
|
||||
arguments: [10, 20]
|
||||
)
|
||||
|
||||
spy = Gitlab::BackgroundMigration::MigrateMergeRequestDiffCommitUsers
|
||||
migration = described_class.new
|
||||
|
||||
allow(Gitlab::BackgroundMigration::MigrateMergeRequestDiffCommitUsers)
|
||||
.to receive(:new)
|
||||
.and_return(spy)
|
||||
|
||||
expect(migration).to receive(:say)
|
||||
expect(spy).to receive(:perform).with(10, 20)
|
||||
|
||||
migration.up
|
||||
end
|
||||
end
|
||||
|
||||
context 'when all jobs are completed' do
|
||||
it 'does nothing' do
|
||||
Gitlab::Database::BackgroundMigrationJob.create!(
|
||||
class_name: 'MigrateMergeRequestDiffCommitUsers',
|
||||
status: :succeeded,
|
||||
arguments: [10, 20]
|
||||
)
|
||||
|
||||
migration = described_class.new
|
||||
|
||||
expect(migration).not_to receive(:say)
|
||||
expect(Gitlab::BackgroundMigration::MigrateMergeRequestDiffCommitUsers)
|
||||
.not_to receive(:new)
|
||||
|
||||
migration.up
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -9,5 +9,9 @@ RSpec.describe Analytics::CycleAnalytics::IssueStageEvent do
|
|||
it { is_expected.to validate_presence_of(:project_id) }
|
||||
it { is_expected.to validate_presence_of(:start_event_timestamp) }
|
||||
|
||||
it 'has state enum' do
|
||||
expect(described_class.states).to eq(Issue.available_states)
|
||||
end
|
||||
|
||||
it_behaves_like 'StageEventModel'
|
||||
end
|
||||
|
|
|
@ -9,5 +9,9 @@ RSpec.describe Analytics::CycleAnalytics::MergeRequestStageEvent do
|
|||
it { is_expected.to validate_presence_of(:project_id) }
|
||||
it { is_expected.to validate_presence_of(:start_event_timestamp) }
|
||||
|
||||
it 'has state enum' do
|
||||
expect(described_class.states).to eq(MergeRequest.available_states)
|
||||
end
|
||||
|
||||
it_behaves_like 'StageEventModel'
|
||||
end
|
||||
|
|
|
@ -46,11 +46,7 @@ RSpec.describe MergeRequestDiffCommit do
|
|||
{
|
||||
"message": "Add submodule from gitlab.com\n\nSigned-off-by: Dmitriy Zaporozhets \u003cdmitriy.zaporozhets@gmail.com\u003e\n",
|
||||
"authored_date": "2014-02-27T10:01:38.000+01:00".to_time,
|
||||
"author_name": "Dmitriy Zaporozhets",
|
||||
"author_email": "dmitriy.zaporozhets@gmail.com",
|
||||
"committed_date": "2014-02-27T10:01:38.000+01:00".to_time,
|
||||
"committer_name": "Dmitriy Zaporozhets",
|
||||
"committer_email": "dmitriy.zaporozhets@gmail.com",
|
||||
"commit_author_id": an_instance_of(Integer),
|
||||
"committer_id": an_instance_of(Integer),
|
||||
"merge_request_diff_id": merge_request_diff_id,
|
||||
|
@ -61,11 +57,7 @@ RSpec.describe MergeRequestDiffCommit do
|
|||
{
|
||||
"message": "Change some files\n\nSigned-off-by: Dmitriy Zaporozhets \u003cdmitriy.zaporozhets@gmail.com\u003e\n",
|
||||
"authored_date": "2014-02-27T09:57:31.000+01:00".to_time,
|
||||
"author_name": "Dmitriy Zaporozhets",
|
||||
"author_email": "dmitriy.zaporozhets@gmail.com",
|
||||
"committed_date": "2014-02-27T09:57:31.000+01:00".to_time,
|
||||
"committer_name": "Dmitriy Zaporozhets",
|
||||
"committer_email": "dmitriy.zaporozhets@gmail.com",
|
||||
"commit_author_id": an_instance_of(Integer),
|
||||
"committer_id": an_instance_of(Integer),
|
||||
"merge_request_diff_id": merge_request_diff_id,
|
||||
|
@ -111,11 +103,7 @@ RSpec.describe MergeRequestDiffCommit do
|
|||
[{
|
||||
"message": "Weird commit date\n",
|
||||
"authored_date": timestamp,
|
||||
"author_name": "Alejandro Rodríguez",
|
||||
"author_email": "alejorro70@gmail.com",
|
||||
"committed_date": timestamp,
|
||||
"committer_name": "Alejandro Rodríguez",
|
||||
"committer_email": "alejorro70@gmail.com",
|
||||
"commit_author_id": an_instance_of(Integer),
|
||||
"committer_id": an_instance_of(Integer),
|
||||
"merge_request_diff_id": merge_request_diff_id,
|
||||
|
|
|
@ -122,6 +122,20 @@ RSpec.describe API::ErrorTracking::Collector do
|
|||
it_behaves_like 'bad request'
|
||||
end
|
||||
|
||||
context 'gzip body' do
|
||||
let(:headers) do
|
||||
{
|
||||
'X-Sentry-Auth' => "Sentry sentry_key=#{client_key.public_key}",
|
||||
'HTTP_CONTENT_ENCODING' => 'gzip',
|
||||
'CONTENT_TYPE' => 'application/json'
|
||||
}
|
||||
end
|
||||
|
||||
let(:raw_event) { ActiveSupport::Gzip.compress(fixture_file('error_tracking/parsed_event.json')) }
|
||||
|
||||
it_behaves_like 'successful request'
|
||||
end
|
||||
|
||||
context 'sentry_key as param and empty headers' do
|
||||
let(:url) { "/error_tracking/collector/api/#{project.id}/store?sentry_key=#{sentry_key}" }
|
||||
let(:headers) { {} }
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
require 'securerandom'
|
||||
require 'socket'
|
||||
require 'logger'
|
||||
require 'bundler'
|
||||
|
||||
module GitalySetup
|
||||
LOGGER = begin
|
||||
|
@ -46,13 +47,26 @@ module GitalySetup
|
|||
File.join(tmp_tests_gitlab_shell_dir, '.gitlab_shell_secret')
|
||||
end
|
||||
|
||||
# Return the path of the vendored gems in <gdk>/gitaly, if exists
|
||||
def gdk_gitaly_ruby_gem_path
|
||||
gitaly_ruby_path = File.expand_path('../../../../gitaly/ruby/', __dir__)
|
||||
bundle_config_path = File.join(gitaly_ruby_path, '.bundle')
|
||||
bundle_path = Bundler::Settings.new(bundle_config_path).path
|
||||
|
||||
return if bundle_path.use_system_gems?
|
||||
|
||||
File.expand_path(bundle_path.explicit_path, gitaly_ruby_path)
|
||||
end
|
||||
|
||||
def env
|
||||
{
|
||||
'HOME' => File.expand_path('tmp/tests'),
|
||||
'GEM_PATH' => Gem.path.join(':'),
|
||||
'BUNDLE_APP_CONFIG' => File.join(gemfile_dir, '.bundle'),
|
||||
'BUNDLE_INSTALL_FLAGS' => nil,
|
||||
'BUNDLE_IGNORE_CONFIG' => '1',
|
||||
'BUNDLE_GEMFILE' => gemfile,
|
||||
'BUNDLE_PATH' => bundle_path,
|
||||
'BUNDLE_JOBS' => '4',
|
||||
'BUNDLE_RETRY' => '3',
|
||||
'RUBYOPT' => nil,
|
||||
|
||||
# Git hooks can't run during tests as the internal API is not running.
|
||||
|
@ -61,17 +75,13 @@ module GitalySetup
|
|||
}
|
||||
end
|
||||
|
||||
# rubocop:disable GitlabSecurity/SystemCommandInjection
|
||||
def set_bundler_config
|
||||
system('bundle config set --local jobs 4', chdir: gemfile_dir)
|
||||
system('bundle config set --local retry 3', chdir: gemfile_dir)
|
||||
|
||||
def bundle_path
|
||||
if ENV['CI']
|
||||
bundle_path = File.expand_path('../../../vendor/gitaly-ruby', __dir__)
|
||||
system('bundle', 'config', 'set', '--local', 'path', bundle_path, chdir: gemfile_dir)
|
||||
File.expand_path('../../../vendor/gitaly-ruby', __dir__)
|
||||
else
|
||||
gdk_gitaly_ruby_gem_path || File.expand_path(Bundler.configured_bundle_path.base_path)
|
||||
end
|
||||
end
|
||||
# rubocop:enable GitlabSecurity/SystemCommandInjection
|
||||
|
||||
def config_path(service)
|
||||
case service
|
||||
|
|
|
@ -12,6 +12,7 @@ RSpec.shared_examples 'StageEventModel' do
|
|||
project_id: 4,
|
||||
author_id: 5,
|
||||
milestone_id: 6,
|
||||
state_id: 1,
|
||||
start_event_timestamp: time,
|
||||
end_event_timestamp: time
|
||||
},
|
||||
|
@ -22,6 +23,7 @@ RSpec.shared_examples 'StageEventModel' do
|
|||
project_id: 11,
|
||||
author_id: 12,
|
||||
milestone_id: 13,
|
||||
state_id: 1,
|
||||
start_event_timestamp: time,
|
||||
end_event_timestamp: time
|
||||
}
|
||||
|
@ -36,6 +38,7 @@ RSpec.shared_examples 'StageEventModel' do
|
|||
:project_id,
|
||||
:milestone_id,
|
||||
:author_id,
|
||||
:state_id,
|
||||
:start_event_timestamp,
|
||||
:end_event_timestamp
|
||||
]
|
||||
|
@ -59,7 +62,13 @@ RSpec.shared_examples 'StageEventModel' do
|
|||
upsert_data
|
||||
|
||||
output_data = described_class.all.map do |record|
|
||||
column_order.map { |column| record[column] }
|
||||
column_order.map do |column|
|
||||
if column == :state_id
|
||||
described_class.states[record[column]]
|
||||
else
|
||||
record[column]
|
||||
end
|
||||
end
|
||||
end.sort
|
||||
|
||||
expect(input_data.map(&:values).sort).to eq(output_data)
|
||||
|
|
|
@ -22,12 +22,12 @@ module Tooling
|
|||
ce_ee_vue_templates
|
||||
ci_templates
|
||||
datateam
|
||||
metadata
|
||||
feature_flag
|
||||
roulette
|
||||
sidekiq_queues
|
||||
specialization_labels
|
||||
specs
|
||||
z_metadata
|
||||
].freeze
|
||||
|
||||
MESSAGE_PREFIX = '==>'
|
||||
|
@ -189,6 +189,10 @@ module Tooling
|
|||
read_file(filename).lines(chomp: true)
|
||||
end
|
||||
|
||||
def labels_to_add
|
||||
@labels_to_add ||= []
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def read_file(filename)
|
||||
|
|
Loading…
Reference in New Issue