<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/gitlab/gitlab-ce.git/db, branch api-sentry-extra</title>
<subtitle>gitlab.com: gitlab-org/gitlab-ce.git
</subtitle>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/gitlab/gitlab-ce.git/'/>
<entry>
<title>Merge branch '36631-activerecord-statementinvalid-pg-querycanceled-error-canceling-statement-due-to-statement-timeout' into 'master'</title>
<updated>2017-09-29T13:43:28+00:00</updated>
<author>
<name>Rémy Coutable</name>
<email>remy@rymai.me</email>
</author>
<published>2017-09-29T13:43:28+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=05e9c9f77e01d2a2761c335f05ca612185189ac0'/>
<id>05e9c9f77e01d2a2761c335f05ca612185189ac0</id>
<content type='text'>
Insert at most 1,000 rows at once in MR diff background migration

Closes #36631 et #37505

See merge request gitlab-org/gitlab-ce!13661</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Insert at most 1,000 rows at once in MR diff background migration

Closes #36631 et #37505

See merge request gitlab-org/gitlab-ce!13661</pre>
</div>
</content>
</entry>
<entry>
<title>Fix notes type created from import</title>
<updated>2017-09-29T11:18:58+00:00</updated>
<author>
<name>Lin Jen-Shin (godfat)</name>
<email>godfat@godfat.org</email>
</author>
<published>2017-09-29T11:18:58+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=8bac6e41ef1568b5b46a92a2279b4fb488ae73bc'/>
<id>8bac6e41ef1568b5b46a92a2279b4fb488ae73bc</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Reschedule merge request diff background migration</title>
<updated>2017-09-29T10:56:08+00:00</updated>
<author>
<name>Sean McGivern</name>
<email>sean@gitlab.com</email>
</author>
<published>2017-09-26T14:26:26+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=472be7fe611b726c065cc384259b75bb894ce19b'/>
<id>472be7fe611b726c065cc384259b75bb894ce19b</id>
<content type='text'>
The first attempt didn't migrate all rows on GitLab.com, due to a couple of
issues:

1. Some rows in merge_request_diffs had truly huge numbers of commits and diffs
   serialised - one in particular had 26,000 commits!
2. The jobs were sometimes on Sidekiq hosts with frequent OOM errors, leading to
   the job being lost.

The previous commit adds more logging, and a more robust insertion method. This
commit reschedules the jobs, with a generous pause between each.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The first attempt didn't migrate all rows on GitLab.com, due to a couple of
issues:

1. Some rows in merge_request_diffs had truly huge numbers of commits and diffs
   serialised - one in particular had 26,000 commits!
2. The jobs were sometimes on Sidekiq hosts with frequent OOM errors, leading to
   the job being lost.

The previous commit adds more logging, and a more robust insertion method. This
commit reschedules the jobs, with a generous pause between each.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'add-composite-index-on-merge-requests-merge-commit-sha' into 'master'</title>
<updated>2017-09-29T08:57:52+00:00</updated>
<author>
<name>Sean McGivern</name>
<email>sean@mcgivern.me.uk</email>
</author>
<published>2017-09-29T08:57:52+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=ccfe6860079c6c75ab5a1f831cd62af0e355331e'/>
<id>ccfe6860079c6c75ab5a1f831cd62af0e355331e</id>
<content type='text'>
Add index for merge_requests.merge_commit_sha

Closes #38507

See merge request gitlab-org/gitlab-ce!14549</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add index for merge_requests.merge_commit_sha

Closes #38507

See merge request gitlab-org/gitlab-ce!14549</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'hashed-storage-migration-path' into 'master'</title>
<updated>2017-09-28T17:26:16+00:00</updated>
<author>
<name>Douwe Maan</name>
<email>douwe@gitlab.com</email>
</author>
<published>2017-09-28T17:26:16+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=ae03a52f0927f5f0881e3269faba90028e6d808b'/>
<id>ae03a52f0927f5f0881e3269faba90028e6d808b</id>
<content type='text'>
Hashed storage migration path

Closes gitlab-ee#3118

See merge request gitlab-org/gitlab-ce!14067</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Hashed storage migration path

Closes gitlab-ee#3118

See merge request gitlab-org/gitlab-ce!14067</pre>
</div>
</content>
</entry>
<entry>
<title>Support custom attributes on users</title>
<updated>2017-09-28T16:49:42+00:00</updated>
<author>
<name>Markus Koller</name>
<email>markus-koller@gmx.ch</email>
</author>
<published>2017-09-28T16:49:42+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=e9eae3eb0dd25e4a34c9a4b6bcc7de312dde4489'/>
<id>e9eae3eb0dd25e4a34c9a4b6bcc7de312dde4489</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[Backported from EE] Readonly flag for Projects</title>
<updated>2017-09-28T12:20:11+00:00</updated>
<author>
<name>Gabriel Mazetto</name>
<email>brodock@gmail.com</email>
</author>
<published>2017-09-06T02:24:31+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=38607b48b689b39721ff0cf7355ba2a176f4bf5e'/>
<id>38607b48b689b39721ff0cf7355ba2a176f4bf5e</id>
<content type='text'>
This is used in EE for the storage migration, and we want to use this
in CE as well to be able to migrate projects to hashed_storage.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is used in EE for the storage migration, and we want to use this
in CE as well to be able to migrate projects to hashed_storage.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add index for merge_requests.merge_commit_sha</title>
<updated>2017-09-28T11:31:28+00:00</updated>
<author>
<name>Yorick Peterse</name>
<email>yorickpeterse@gmail.com</email>
</author>
<published>2017-09-28T10:09:08+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=abcfdd5c17020abbcb3f39eaa976cb49a0917a2a'/>
<id>abcfdd5c17020abbcb3f39eaa976cb49a0917a2a</id>
<content type='text'>
This is a composite index on (target_project_id, merge_commit_sha, id)
that allows queries such as the following to use a full backwards index
scan:

    SELECT "merge_requests".*
    FROM "merge_requests"
    WHERE "merge_requests"."deleted_at" IS NULL
    AND "merge_requests"."target_project_id" = 13083
    AND "merge_requests"."merge_commit_sha" = 'e80a893ff0ea8466099f6478183631af55933db2'
    ORDER BY "merge_requests"."id" DESC
    LIMIT 1;

Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/38507
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is a composite index on (target_project_id, merge_commit_sha, id)
that allows queries such as the following to use a full backwards index
scan:

    SELECT "merge_requests".*
    FROM "merge_requests"
    WHERE "merge_requests"."deleted_at" IS NULL
    AND "merge_requests"."target_project_id" = 13083
    AND "merge_requests"."merge_commit_sha" = 'e80a893ff0ea8466099f6478183631af55933db2'
    ORDER BY "merge_requests"."id" DESC
    LIMIT 1;

Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/38507
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove an unneeded index on ci_builds left in some databases</title>
<updated>2017-09-26T09:33:20+00:00</updated>
<author>
<name>Greg Stark</name>
<email>stark@gitlab.com</email>
</author>
<published>2017-09-19T21:47:04+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=23b58e54680e5a73a2e81960114504e6a8a161cf'/>
<id>23b58e54680e5a73a2e81960114504e6a8a161cf</id>
<content type='text'>
Migration 20170919211300_remove_temporary_ci_builds_index.rb created a
temporary partial index and tried to drop it at the end of the
migration. In some circumstances apparently it failed to drop the
index and it ended up in our schema.rb.

This accidentally failed to fail due to a bug in the regular
expression for partial indexes which caused the index creation in
schema.rb to be ignored. Now that that's fixed we could be
resurrecting this zombie index from the past in some but not all
databases.

Add a migration to drop this index if it's present to reconcile this
discrepancy.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Migration 20170919211300_remove_temporary_ci_builds_index.rb created a
temporary partial index and tried to drop it at the end of the
migration. In some circumstances apparently it failed to drop the
index and it ended up in our schema.rb.

This accidentally failed to fail due to a bug in the regular
expression for partial indexes which caused the index creation in
schema.rb to be ignored. Now that that's fixed we could be
resurrecting this zombie index from the past in some but not all
databases.

Add a migration to drop this index if it's present to reconcile this
discrepancy.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix PG::UniqueViolation external_email migration</title>
<updated>2017-09-25T10:17:48+00:00</updated>
<author>
<name>Stan Hu</name>
<email>stanhu@gmail.com</email>
</author>
<published>2017-09-25T10:17:48+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=edb82271ae9024123dd67df0ac4dd82d89021543'/>
<id>edb82271ae9024123dd67df0ac4dd82d89021543</id>
<content type='text'>
Missing parens prevented this migration from working in some cases.

Closes #38246
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Missing parens prevented this migration from working in some cases.

Closes #38246
</pre>
</div>
</content>
</entry>
</feed>
