<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/gitlab/gitlab-ce.git/db, branch fix/serialized-commit-path</title>
<subtitle>gitlab.com: gitlab-org/gitlab-ce.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/gitlab/gitlab-ce.git/'/>
<entry>
<title>Add check for new path existence</title>
<updated>2017-01-13T08:15:52+00:00</updated>
<author>
<name>James Lopez</name>
<email>james@jameslopez.es</email>
</author>
<published>2017-01-13T08:15:52+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/gitlab/gitlab-ce.git/commit/?id=0f84e747b0db1738caa04011faac4b9bd4250a21'/>
<id>0f84e747b0db1738caa04011faac4b9bd4250a21</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 'fill-authorized-projects' into 'master'</title>
<updated>2017-01-12T18:02:11+00:00</updated>
<author>
<name>Douwe Maan</name>
<email>douwe@gitlab.com</email>
</author>
<published>2017-01-12T18:02:11+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/gitlab/gitlab-ce.git/commit/?id=6ebbecdd3c1a13bc88a15ed2509e67e6aae8b9eb'/>
<id>6ebbecdd3c1a13bc88a15ed2509e67e6aae8b9eb</id>
<content type='text'>

Fill missing authorized projects rows

Closes #26194

See merge request !8476</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>

Fill missing authorized projects rows

Closes #26194

See merge request !8476</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'fix-more-orphans-remove-undeleted-groups' into 'master'</title>
<updated>2017-01-12T17:55:54+00:00</updated>
<author>
<name>Douwe Maan</name>
<email>douwe@gitlab.com</email>
</author>
<published>2017-01-12T17:55:54+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/gitlab/gitlab-ce.git/commit/?id=6688d695ca0b1a2d04fe4e086804469732b4ae29'/>
<id>6688d695ca0b1a2d04fe4e086804469732b4ae29</id>
<content type='text'>

Remove more orphans when removing stray namespaces

Closes #25146

See merge request !7841</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>

Remove more orphans when removing stray namespaces

Closes #25146

See merge request !7841</pre>
</div>
</content>
</entry>
<entry>
<title>Add support for PlantUML diagrams in Asciidoc.</title>
<updated>2017-01-12T10:04:52+00:00</updated>
<author>
<name>Horacio Sanson</name>
<email>horacio@allm.net</email>
</author>
<published>2016-11-28T17:41:29+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/gitlab/gitlab-ce.git/commit/?id=f986b4c4e529f4c2518f0ce37dc9dfcaa2f073a0'/>
<id>f986b4c4e529f4c2518f0ce37dc9dfcaa2f073a0</id>
<content type='text'>
This MR enables rendering of PlantUML diagrams in Asciidoc documents. To add a
PlantUML diagram all we need is to include a plantuml block like:

```
[plantuml, id="myDiagram", width="100px", height="100px"]
--
bob -&gt; alice : ping
alice -&gt; bob : pong
--
```

The plantuml block is substituted by an HTML img element with *src* pointing to
an external PlantUML server.

This MR also add a PlantUML integration section to the Administrator -&gt; Settings
page to configure the PlantUML rendering service and to enable/disable it.

Closes: #17603
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This MR enables rendering of PlantUML diagrams in Asciidoc documents. To add a
PlantUML diagram all we need is to include a plantuml block like:

```
[plantuml, id="myDiagram", width="100px", height="100px"]
--
bob -&gt; alice : ping
alice -&gt; bob : pong
--
```

The plantuml block is substituted by an HTML img element with *src* pointing to
an external PlantUML server.

This MR also add a PlantUML integration section to the Administrator -&gt; Settings
page to configure the PlantUML rendering service and to enable/disable it.

Closes: #17603
</pre>
</div>
</content>
</entry>
<entry>
<title>Fill missing authorized projects rows</title>
<updated>2017-01-11T16:28:08+00:00</updated>
<author>
<name>Yorick Peterse</name>
<email>yorickpeterse@gmail.com</email>
</author>
<published>2017-01-06T14:46:49+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/gitlab/gitlab-ce.git/commit/?id=c3a2d57415ec32d257c557bd24df8e6aab7fadae'/>
<id>c3a2d57415ec32d257c557bd24df8e6aab7fadae</id>
<content type='text'>
This ensures that the project_authorizations rows exist for all users
for which this data has not yet been populated.

Fixes #26194
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This ensures that the project_authorizations rows exist for all users
for which this data has not yet been populated.

Fixes #26194
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove more orphans when removing stray namespaces</title>
<updated>2017-01-11T14:59:33+00:00</updated>
<author>
<name>Yorick Peterse</name>
<email>yorickpeterse@gmail.com</email>
</author>
<published>2017-01-11T14:59:33+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/gitlab/gitlab-ce.git/commit/?id=63bd49696df1520f5d47daa8ffc8e0f5589f737e'/>
<id>63bd49696df1520f5d47daa8ffc8e0f5589f737e</id>
<content type='text'>
Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/25146
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/25146
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'remove-project-authorizations-id-column' into 'master'</title>
<updated>2017-01-09T20:10:29+00:00</updated>
<author>
<name>Douwe Maan</name>
<email>douwe@gitlab.com</email>
</author>
<published>2017-01-09T20:10:29+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/gitlab/gitlab-ce.git/commit/?id=4beae79376923529dfffbea76988a1f22e6f49dd'/>
<id>4beae79376923529dfffbea76988a1f22e6f49dd</id>
<content type='text'>

Remove the project_authorizations.id column

See merge request !8479</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>

Remove the project_authorizations.id column

See merge request !8479</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'track_last_used_date_of_ssh_keys' into 'master'</title>
<updated>2017-01-09T10:30:49+00:00</updated>
<author>
<name>Sean McGivern</name>
<email>sean@mcgivern.me.uk</email>
</author>
<published>2017-01-09T10:30:49+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/gitlab/gitlab-ce.git/commit/?id=cb4964d23b49f775ad3c8aa562942911b6b1c262'/>
<id>cb4964d23b49f775ad3c8aa562942911b6b1c262</id>
<content type='text'>

Record and show last used date of SSH Keys

See merge request !8113</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>

Record and show last used date of SSH Keys

See merge request !8113</pre>
</div>
</content>
</entry>
<entry>
<title>Record and show last used date of SSH Keys</title>
<updated>2017-01-08T17:15:39+00:00</updated>
<author>
<name>Vincent Wong</name>
<email>wingyu64@gmail.com</email>
</author>
<published>2016-12-21T14:59:54+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/gitlab/gitlab-ce.git/commit/?id=b6df93a51f90c7ed29ce6667c6b1a8debf02506e'/>
<id>b6df93a51f90c7ed29ce6667c6b1a8debf02506e</id>
<content type='text'>
Addresses: Issue #13810

1. Adds a last_used_at attribute to the Key table/model
2. Update a key's last_used_at whenever it gets used
3. Display how long ago an ssh key was last used
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Addresses: Issue #13810

1. Adds a last_used_at attribute to the Key table/model
2. Update a key's last_used_at whenever it gets used
3. Display how long ago an ssh key was last used
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove the project_authorizations.id column</title>
<updated>2017-01-08T12:56:50+00:00</updated>
<author>
<name>Yorick Peterse</name>
<email>yorickpeterse@gmail.com</email>
</author>
<published>2017-01-06T17:26:06+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/gitlab/gitlab-ce.git/commit/?id=de321fbbb55dab5bee8dc344d458230b74570d5d'/>
<id>de321fbbb55dab5bee8dc344d458230b74570d5d</id>
<content type='text'>
This column used to be a 32 bits integer, allowing for only a maximum of
2 147 483 647 rows. Given enough users one can hit this limit pretty
quickly, as was the case for GitLab.com.

Changing this type to bigint (= 64 bits) would give us more space, but
we'd eventually hit the same limit given enough users and projects. A
much more sustainable solution is to simply drop the "id" column.

There were only 2 lines of code depending on this column being present,
and neither truly required it to be present. Instead the code now uses
the "project_id" column combined with the "user_id" column. This means
that instead of something like this:

    DELETE FROM project_authorizations
    WHERE user_id = X
    AND id = Y;

We now run the following when removing rows:

    DELETE FROM project_authorizations
    WHERE user_id = X
    AND project_id = Y;

Since both user_id and project_id are indexed this should not slow down
the DELETE query.

This commit also removes the "dependent: destroy" clause from the
"project_authorizations" relation in the User and Project models.
Keeping this prevents Rails from being able to remove data as it relies
on an "id" column being present. Since the "project_authorizations"
table has proper foreign keys set up (with cascading removals) we don't
need to depend on any Rails logic.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This column used to be a 32 bits integer, allowing for only a maximum of
2 147 483 647 rows. Given enough users one can hit this limit pretty
quickly, as was the case for GitLab.com.

Changing this type to bigint (= 64 bits) would give us more space, but
we'd eventually hit the same limit given enough users and projects. A
much more sustainable solution is to simply drop the "id" column.

There were only 2 lines of code depending on this column being present,
and neither truly required it to be present. Instead the code now uses
the "project_id" column combined with the "user_id" column. This means
that instead of something like this:

    DELETE FROM project_authorizations
    WHERE user_id = X
    AND id = Y;

We now run the following when removing rows:

    DELETE FROM project_authorizations
    WHERE user_id = X
    AND project_id = Y;

Since both user_id and project_id are indexed this should not slow down
the DELETE query.

This commit also removes the "dependent: destroy" clause from the
"project_authorizations" relation in the User and Project models.
Keeping this prevents Rails from being able to remove data as it relies
on an "id" column being present. Since the "project_authorizations"
table has proper foreign keys set up (with cascading removals) we don't
need to depend on any Rails logic.
</pre>
</div>
</content>
</entry>
</feed>
