<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/gitlab/gitlab-ce.git/app/models, branch ce-detect-github-pull-requests</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>CE port for pipelines for external pull requests</title>
<updated>2019-09-05T14:53:48+00:00</updated>
<author>
<name>Fabio Pitino</name>
<email>fpitino@gitlab.com</email>
</author>
<published>2019-08-09T09:40:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=ca6a1f33f91a8cceadebfb9c4e9ac6afa340f71d'/>
<id>ca6a1f33f91a8cceadebfb9c4e9ac6afa340f71d</id>
<content type='text'>
Detect if pipeline runs for a GitHub pull request

When using a mirror for CI/CD only we register a pull_request
webhook. When a pull_request webhook is received, if the
source branch SHA matches the actual head of the branch in the
repository we create immediately a new pipeline for the
external pull request. Otherwise we store the
pull request info for when the push webhook is received.

When using "only/except: external_pull_requests" we can detect
if the pipeline has a open pull request on GitHub and create or
not the job based on that.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Detect if pipeline runs for a GitHub pull request

When using a mirror for CI/CD only we register a pull_request
webhook. When a pull_request webhook is received, if the
source branch SHA matches the actual head of the branch in the
repository we create immediately a new pipeline for the
external pull request. Otherwise we store the
pull request info for when the push webhook is received.

When using "only/except: external_pull_requests" we can detect
if the pipeline has a open pull request on GitHub and create or
not the job based on that.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'bjk/routable_counter' into 'master'</title>
<updated>2019-09-05T10:00:30+00:00</updated>
<author>
<name>Andreas Brandl</name>
<email>abrandl@gitlab.com</email>
</author>
<published>2019-09-05T10:00:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=c099fa810ff24bb3f9860569d6e1cfce92508468'/>
<id>c099fa810ff24bb3f9860569d6e1cfce92508468</id>
<content type='text'>
Adjust routable metric

See merge request gitlab-org/gitlab-ce!32591</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Adjust routable metric

See merge request gitlab-org/gitlab-ce!32591</pre>
</div>
</content>
</entry>
<entry>
<title>Adjust routable metric</title>
<updated>2019-09-05T07:14:56+00:00</updated>
<author>
<name>Ben Kochie</name>
<email>bjk@gitlab.com</email>
</author>
<published>2019-09-03T14:04:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=56c01f62d5c5509f63aa46547cf90276a360775e'/>
<id>56c01f62d5c5509f63aa46547cf90276a360775e</id>
<content type='text'>
* Define the counter once.
* Make metric name follow Prometheus naming conventions.
* Add label for call method.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Define the counter once.
* Make metric name follow Prometheus naming conventions.
* Add label for call method.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add service to transfer group milestones</title>
<updated>2019-09-04T16:19:31+00:00</updated>
<author>
<name>Eugenia Grieff</name>
<email>egrieff@gitlab.com</email>
</author>
<published>2019-09-04T16:19:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=7a3234c68ffa84893333f00021b6dac6453f20cd'/>
<id>7a3234c68ffa84893333f00021b6dac6453f20cd</id>
<content type='text'>
- Add new service that transfers milestones
from a group to a project
- Include new service in Projects transfer service
- Include FromUnion module in Milestone model
to use in transfer service
- Add specs for new milestones service
- Add specs for transferring milestones in
project transfer service
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- Add new service that transfers milestones
from a group to a project
- Include new service in Projects transfer service
- Include FromUnion module in Milestone model
to use in transfer service
- Add specs for new milestones service
- Add specs for transferring milestones in
project transfer service
</pre>
</div>
</content>
</entry>
<entry>
<title>Backport EE changes for productivity analytics</title>
<updated>2019-09-04T10:01:55+00:00</updated>
<author>
<name>Pavel Shutsin</name>
<email>pshutsin@gitlab.com</email>
</author>
<published>2019-08-13T08:26:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=f089a230159d262be8ac97c57b10086434b9c80d'/>
<id>f089a230159d262be8ac97c57b10086434b9c80d</id>
<content type='text'>
Improve diff lines count efficiency
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Improve diff lines count efficiency
</pre>
</div>
</content>
</entry>
<entry>
<title>Create an event on epic actions</title>
<updated>2019-09-03T21:29:55+00:00</updated>
<author>
<name>Jan Provaznik</name>
<email>jprovaznik@gitlab.com</email>
</author>
<published>2019-09-03T21:29:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=243bd0202fe3373a997f5ed37c027ab8cfdfcb35'/>
<id>243bd0202fe3373a997f5ed37c027ab8cfdfcb35</id>
<content type='text'>
Creates new event when an epic is created, closed, reopened or
commented.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Creates new event when an epic is created, closed, reopened or
commented.
</pre>
</div>
</content>
</entry>
<entry>
<title>Preload routes information</title>
<updated>2019-09-03T10:16:03+00:00</updated>
<author>
<name>Andreas Brandl</name>
<email>abrandl@gitlab.com</email>
</author>
<published>2019-08-27T17:15:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=53801b1206ff9e165b30117e3c3bcf543db7ad2c'/>
<id>53801b1206ff9e165b30117e3c3bcf543db7ad2c</id>
<content type='text'>
This fixes a high frequency N+1 issue:

`RoutableActions#find_routable!` is used across many controllers to
retrieve e.g. the Project or Namespace by path. The `#find_routable!`
method calls `#ensure_canonical_path` which in turn retrieves
`#full_path` from the given Routable.

This in turn triggers a lookup on `routes`, leading to a high frequency
of these queries:

```sql
SELECT  "routes".* FROM "routes" WHERE "routes"."source_id" = $1 AND
"routes"."source_type" = $2 LIMIT $3
```

This is unnecessary as we already join `routes` in
`Routable#find_by_full_path` anyways.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This fixes a high frequency N+1 issue:

`RoutableActions#find_routable!` is used across many controllers to
retrieve e.g. the Project or Namespace by path. The `#find_routable!`
method calls `#ensure_canonical_path` which in turn retrieves
`#full_path` from the given Routable.

This in turn triggers a lookup on `routes`, leading to a high frequency
of these queries:

```sql
SELECT  "routes".* FROM "routes" WHERE "routes"."source_id" = $1 AND
"routes"."source_type" = $2 LIMIT $3
```

This is unnecessary as we already join `routes` in
`Routable#find_by_full_path` anyways.
</pre>
</div>
</content>
</entry>
<entry>
<title>Added relationships between Release and Milestone</title>
<updated>2019-09-03T09:38:59+00:00</updated>
<author>
<name>Etienne Baqué</name>
<email>ebaque@gitlab.com</email>
</author>
<published>2019-09-03T09:38:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=a43ab8d6a430014e875deb3bff3fd8d8da256747'/>
<id>a43ab8d6a430014e875deb3bff3fd8d8da256747</id>
<content type='text'>
Modified schema via migrations.
Added one-to-one relationship between the two models.
Added changelog file
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Modified schema via migrations.
Added one-to-one relationship between the two models.
Added changelog file
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'add-pipeline-type-key-in-pipeline-entity' into 'master'</title>
<updated>2019-09-03T09:18:46+00:00</updated>
<author>
<name>Kamil Trzciński</name>
<email>ayufan@ayufan.eu</email>
</author>
<published>2019-09-03T09:18:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=6b7fe67adacb1402cadfb7d2b7eb4da03e06f149'/>
<id>6b7fe67adacb1402cadfb7d2b7eb4da03e06f149</id>
<content type='text'>
Expose `name` and `merge_request_event_type` in serialized json and predefined variables

See merge request gitlab-org/gitlab-ce!32323</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Expose `name` and `merge_request_event_type` in serialized json and predefined variables

See merge request gitlab-org/gitlab-ce!32323</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'change-role-system-hook' into 'master'</title>
<updated>2019-09-03T07:08:40+00:00</updated>
<author>
<name>Rémy Coutable</name>
<email>remy@rymai.me</email>
</author>
<published>2019-09-03T07:08:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=af5f2424cace62f8712dbabfd60bb0f1c36f1590'/>
<id>af5f2424cace62f8712dbabfd60bb0f1c36f1590</id>
<content type='text'>
Add system hooks for project/group membership updates

Closes gitlab-ee#12252

See merge request gitlab-org/gitlab-ce!32371</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add system hooks for project/group membership updates

Closes gitlab-ee#12252

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