<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/gitlab/gitlab-ce.git, branch sh-optimize-discussion-json</title>
<subtitle>gitlab.com: gitlab-org/gitlab-ce.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/'/>
<entry>
<title>Eliminate N+1 queries in loading discussions.json endpoint</title>
<updated>2017-09-18T13:53:33+00:00</updated>
<author>
<name>Stan Hu</name>
<email>stanhu@gmail.com</email>
</author>
<published>2017-09-17T06:25:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=8690ca5c2857da39c8f5839b9383931ee026f559'/>
<id>8690ca5c2857da39c8f5839b9383931ee026f559</id>
<content type='text'>
In #37955,we see that the profile had a number of N+1 queries from repeated
access to `cross_reference_not_visible_for?`. This was optimized in previous
versions of GitLab by rendering all notes at once, counting the number of
visible references, and then using that number to check whether a system note
should be fully redacted.

There was also another N+1 query calling `ProjectTeam#member?`, which did not
take advantage of an optimization in prepare_notes_for_rendering that would
preload the maximum access level per project.

Closes #37955
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In #37955,we see that the profile had a number of N+1 queries from repeated
access to `cross_reference_not_visible_for?`. This was optimized in previous
versions of GitLab by rendering all notes at once, counting the number of
visible references, and then using that number to check whether a system note
should be fully redacted.

There was also another N+1 query calling `ProjectTeam#member?`, which did not
take advantage of an optimization in prepare_notes_for_rendering that would
preload the maximum access level per project.

Closes #37955
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'issue_37640' into 'master'</title>
<updated>2017-09-16T05:09:20+00:00</updated>
<author>
<name>Grzegorz Bizon</name>
<email>grzegorz@gitlab.com</email>
</author>
<published>2017-09-16T05:09:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=a70c76df8fd746e5a83b305acbbc1c260955e332'/>
<id>a70c76df8fd746e5a83b305acbbc1c260955e332</id>
<content type='text'>
Fix project feature being deleted when updating project with invalid visibility level

Closes #37640

See merge request gitlab-org/gitlab-ce!14234</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix project feature being deleted when updating project with invalid visibility level

Closes #37640

See merge request gitlab-org/gitlab-ce!14234</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'rs-default-user-entity' into 'master'</title>
<updated>2017-09-16T01:08:27+00:00</updated>
<author>
<name>Stan Hu</name>
<email>stanhu@gmail.com</email>
</author>
<published>2017-09-16T01:08:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=c433b1917ec8c90d43972c6ec85d4af3fb030694'/>
<id>c433b1917ec8c90d43972c6ec85d4af3fb030694</id>
<content type='text'>
Ensure we use `Entities::User` for non-admin `users/:id` API requests

See merge request gitlab-org/gitlab-ce!14314</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Ensure we use `Entities::User` for non-admin `users/:id` API requests

See merge request gitlab-org/gitlab-ce!14314</pre>
</div>
</content>
</entry>
<entry>
<title>Ensure we use `Entities::User` for non-admin `users/:id` API requests</title>
<updated>2017-09-15T23:34:52+00:00</updated>
<author>
<name>Robert Speicher</name>
<email>rspeicher@gmail.com</email>
</author>
<published>2017-09-15T23:34:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=3cbaed97f1c085647bffcf8a729b72bc2a52d59e'/>
<id>3cbaed97f1c085647bffcf8a729b72bc2a52d59e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'master' into 'issue_37640'</title>
<updated>2017-09-15T20:14:53+00:00</updated>
<author>
<name>Felipe Artur</name>
<email>fcardozo@gitlab.com</email>
</author>
<published>2017-09-15T20:14:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=25c959f94d3dda63120256735163e4a142b8711e'/>
<id>25c959f94d3dda63120256735163e4a142b8711e</id>
<content type='text'>
# Conflicts:
#   db/schema.rb</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
# Conflicts:
#   db/schema.rb</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'grpc-1.6' into 'master'</title>
<updated>2017-09-15T18:43:28+00:00</updated>
<author>
<name>Robert Speicher</name>
<email>robert@gitlab.com</email>
</author>
<published>2017-09-15T18:43:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=3dd2248605ce2183f02ab268fc1f8b0b164f0bed'/>
<id>3dd2248605ce2183f02ab268fc1f8b0b164f0bed</id>
<content type='text'>
Use grpc 1.6.0

See merge request gitlab-org/gitlab-ce!14262</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use grpc 1.6.0

See merge request gitlab-org/gitlab-ce!14262</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'fix-share-with-group-lock-update' into 'master'</title>
<updated>2017-09-15T18:38:16+00:00</updated>
<author>
<name>Robert Speicher</name>
<email>robert@gitlab.com</email>
</author>
<published>2017-09-15T18:38:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=cff8d9ac30bd0097ded0dfafc456bccac19a189e'/>
<id>cff8d9ac30bd0097ded0dfafc456bccac19a189e</id>
<content type='text'>
Fix setting share_with_group_lock

Closes #37916

See merge request gitlab-org/gitlab-ce!14300</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix setting share_with_group_lock

Closes #37916

See merge request gitlab-org/gitlab-ce!14300</pre>
</div>
</content>
</entry>
<entry>
<title>Add data migration</title>
<updated>2017-09-15T17:45:21+00:00</updated>
<author>
<name>Felipe Artur</name>
<email>felipefac@gmail.com</email>
</author>
<published>2017-09-15T14:55:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=b20595b2bd0023ebbc2ec46017f5d1cb1533fb4f'/>
<id>b20595b2bd0023ebbc2ec46017f5d1cb1533fb4f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix setting share_with_group_lock</title>
<updated>2017-09-15T15:38:46+00:00</updated>
<author>
<name>Yorick Peterse</name>
<email>yorickpeterse@gmail.com</email>
</author>
<published>2017-09-15T13:34:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=ac702af8229193834baf8d3fd3a1b454b5459289'/>
<id>ac702af8229193834baf8d3fd3a1b454b5459289</id>
<content type='text'>
Prior to this commit running
Namespace#force_share_with_group_lock_on_descendants would result in
updating _all_ namespaces in the namespaces table, not just the
descendants. This is the result of ActiveRecord::Relation#update_all not
taking into account the CTE. To work around this we use the CTE query as
a sub-query instead of directly calling #update_all.

To prevent this from happening the relations returned by
Gitlab::GroupHierarchy are now marked as read-only, resulting in an
error being raised when methods such as #update_all are used.

Fortunately on GitLab.com our statement timeouts appear to have
prevented this query from actually doing any damage other than causing
a very large amount of dead tuples.

Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/37916
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Prior to this commit running
Namespace#force_share_with_group_lock_on_descendants would result in
updating _all_ namespaces in the namespaces table, not just the
descendants. This is the result of ActiveRecord::Relation#update_all not
taking into account the CTE. To work around this we use the CTE query as
a sub-query instead of directly calling #update_all.

To prevent this from happening the relations returned by
Gitlab::GroupHierarchy are now marked as read-only, resulting in an
error being raised when methods such as #update_all are used.

Fortunately on GitLab.com our statement timeouts appear to have
prevented this query from actually doing any damage other than causing
a very large amount of dead tuples.

Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/37916
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch '35917_create_services_for_keys' into 'master'</title>
<updated>2017-09-15T15:35:24+00:00</updated>
<author>
<name>Rémy Coutable</name>
<email>remy@rymai.me</email>
</author>
<published>2017-09-15T15:35:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=6ecb3b01da90026580828d08937a16d57c87c79f'/>
<id>6ecb3b01da90026580828d08937a16d57c87c79f</id>
<content type='text'>
created services for keys

See merge request gitlab-org/gitlab-ce!13331</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
created services for keys

See merge request gitlab-org/gitlab-ce!13331</pre>
</div>
</content>
</entry>
</feed>
