gfyoung
ebf98f27c4
Enable even more frozen string in lib/gitlab
...
Enables frozen string for the following:
* lib/gitlab/fogbugz_import/**/*.rb
* lib/gitlab/gfm/**/*.rb
* lib/gitlab/git/**/*.rb
* lib/gitlab/gitaly_client/**/*.rb
* lib/gitlab/gitlab_import/**/*.rb
* lib/gitlab/google_code_import/**/*.rb
* lib/gitlab/gpg/**/*.rb
* lib/gitlab/grape_logging/**/*.rb
* lib/gitlab/graphql/**/*.rb
* lib/gitlab/graphs/**/*.rb
* lib/gitlab/hashed_storage/**/*.rb
* lib/gitlab/health_checks/**/*.rb
Partially address gitlab-org/gitlab-ce#47424 .
2018-11-13 11:42:15 -08:00
Alejandro Rodríguez
a99bf447a2
Remove Gitlab::Git::Repository#rugged and Gollum code
...
Cleanup code, and refactor tests that still use Rugged. After this, there should
be no Rugged code that access the instance's repositories on non-test
environments. There is still some rugged code for other tasks like the
repository import task, but since it doesn't access any repository storage path
it can stay.
2018-10-02 16:34:28 -03:00
Stan Hu
c8ff6b7c73
Use limit parameter to retrieve Wikis from Gitaly
...
Without this parameter, every load of a Wiki page will load all the Wiki pages
in the repository for the sidebar. This is a significant performance penalty
that can significant slow the display of all Wiki pages.
Relates to #40101
2018-07-24 15:36:31 -07:00
Andrew Newdigate
583635f0c8
Updated Gitaly timeout values
2018-07-05 16:05:24 +00:00
Francisco Javier López
e8a27a67fa
Fix Custom hooks are not triggered by UI wiki edit
2018-04-18 17:50:56 +00:00
Ahmad Sherif
f61121225e
Fix finding wiki file when Gitaly is enabled
...
Fixes gitaly#1126
2018-04-11 16:08:51 +02:00
Douwe Maan
5db5a9cbd1
Merge branch 'master' into 'zj-wiki-page-versions'
...
# Conflicts:
# Gemfile
# Gemfile.lock
2018-02-06 16:08:06 +00:00
Ahmad Sherif
fa9d47f221
Migrate fetching wiki page formatted content to Gitaly
...
Closes gitaly#958
2018-01-30 17:19:39 +01:00
Zeger-Jan van de Weg
a29f0c28fd
Allow pagination for WikiVersions on Gitaly request
2018-01-22 14:56:28 +01:00
Zeger-Jan van de Weg
1c0437d95e
Client implementation for WikiPageVerion
...
Part of gitlab-org/gitaly#639
2018-01-22 10:08:46 +01:00
Alejandro Rodríguez
11247ac97c
Move encoding methods to the more general EncodingHelper
2017-12-28 12:32:33 -03:00
Jacob Vosmaer
d704f0c4a0
Prevent dups when using StringIO for binary reads
2017-12-06 18:28:45 +01:00
Jacopo
181cd299f9
Adds Rubocop rule for line break after guard clause
...
Adds a rubocop rule (with autocorrect) to ensure line break after guard clauses.
2017-11-16 17:58:29 +01:00
Alejandro Rodríguez
282e7f8eab
Incorporate Gitaly's WikiService.WikiGetAllPages RPC
2017-11-13 16:54:50 -03:00
Kim "BKC" Carlbäcker
00ce8756ad
Migrate GitLab::Git::Wiki.update_page to Gitaly
2017-11-08 16:11:10 +01:00
Ahmad Sherif
56e53556c5
Migrate Gitlab::Git::Wiki#file to Gitaly
...
Closes gitaly#689
2017-10-31 20:49:41 +02:00
Ahmad Sherif
964cbb67da
Migrate Gitlab::Git::Wiki#page to Gitaly
...
Closes gitaly#677
2017-10-31 18:28:54 +02:00
Ahmad Sherif
b3a0166203
Migrate Gitlab::Git::Wiki#delete_page to Gitaly
...
Closes gitaly#673
2017-10-31 13:47:34 +02:00
Ahmad Sherif
fa5eeaecfb
Migrate Gitlab::Git::Wiki#write_page to Gitaly
...
Closes gitaly#638
2017-10-16 15:53:48 +02:00