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
Oswaldo Ferreira
4fbca2a346
Make single diff patch limit configurable
...
- Creates a new column to hold the single patch limit value on
application_settings
- Allows updating this value through the application_settings API
- Calculates single diff patch collapsing limit based on
diff_max_patch_bytes column
- Updates diff limit documentation
- Adds documentation (with warning) as of how one can update this limit
2018-10-01 11:58:21 -03:00
Oswaldo Ferreira
965ff14b6f
Send max_patch_bytes to Gitaly via Gitaly::CommitDiffRequest
...
We used to apply this limitation on GitLab when using Rugged. Now that
we've shifted to Gitaly, this parameter needs to be sent via a RPC
request. Currently this value is hardcoded on Gitaly.
2018-09-06 19:18:27 -03:00
Jacob Vosmaer
b012abee8b
Make all Gitaly diff flags mandatory
2018-07-06 12:01:15 +02:00
Alejandro Rodríguez
c21ae07e33
Refactor Gitlab::Git::Commit to include a repository
2017-08-07 22:34:34 -04:00
Ahmad Sherif
ef2b81adb4
Migrate DiffCollection limiting logic to Gitaly
2017-07-19 18:05:22 +02:00
Jacob Vosmaer
47c844bf34
Add Gitaly notes and annotations to Gitlab::Git
2017-07-12 17:06:31 +02:00
Douwe Maan
7944254563
Implement diff viewers
2017-06-14 10:12:21 -05:00
Douwe Maan
04cf618b6f
Change no_limits to limits
2017-05-31 14:41:25 -05:00
Douwe Maan
aed0387f97
Consistent diff and blob size limit names
2017-05-29 17:02:02 -05:00
Douwe Maan
324af4ac9a
Merge branch 'diffcollection-no-restarts' into 'master'
...
Fix buffering in DiffCollection
See merge request !11659
2017-05-26 14:35:45 +00:00
Jacob Vosmaer
16168b5b10
Use the iterator inside DiffCollection only once
2017-05-24 13:57:01 +02:00
Douwe Maan
7e09a9b7dc
Clean up diff rendering
2017-05-23 15:37:05 -05:00
Jacob Vosmaer
27fb64d6a3
Remove deltas_only from DiffCollection
2017-05-11 16:01:10 +02:00
Ahmad Sherif
c0a4f527db
Use Gitaly for CommitController#show
2017-03-15 12:52:11 +02:00
Robert Speicher
a00578ce5c
Absorb gitlab_git
2017-01-04 19:09:28 -05:00