gitlab-org--gitlab-foss/spec/services
Douwe Maan 317206300d Merge branch 'configurable-attachment-size' into 'master'
Support configurable attachment size in Application Settings page

### What does this MR do?

This MR provides the ability to configure the maximum size of an attachment inside a note. A parameter has been added to the Application Settings page.

### Are there points in the code the reviewer needs to double check?

What should be done with the legacy note attachment validation? I added code to make the validation work with the configurable setting. I could see an issue where an admin lowers the limit from 10 megabytes to 5 megabytes, which could cause an existing model to be invalid.

### Why was this MR needed?

We often have attachments that exceed 10 MB, and it would be nice to be able to override the defaults.

### What are the relevant issue numbers / [Feature requests](http://feedback.gitlab.com/)?

See Issue #1258

### Screenshots

Before:

![Screen_Shot_2015-03-29_at_3.06.53_PM](https://gitlab.com/gitlab-org/gitlab-ce/uploads/6013a1dbc8cf61a63e93744149937fa0/Screen_Shot_2015-03-29_at_3.06.53_PM.png)

After:

![Screen_Shot_2015-03-29_at_3.12.34_PM](https://gitlab.com/gitlab-org/gitlab-ce/uploads/f3518af7e8653ba40f0a3579456da6ad/Screen_Shot_2015-03-29_at_3.12.34_PM.png)

See merge request !407
2015-04-03 08:47:55 +00:00
..
issues Send notifications and leave system comments when bulk updating issues. 2015-03-06 15:01:13 +01:00
merge_requests Condense commits already in target branch when updating merge request source branch. 2015-03-06 18:09:00 +01:00
milestones Add group service spec. 2014-06-30 15:00:12 +02:00
notes Updated rspec to rspec 3.x syntax 2015-02-12 19:17:35 +01:00
projects Support configurable attachment size via Application Settings 2015-04-02 00:04:08 -07:00
archive_repository_service_spec.rb Add tests. 2015-03-31 13:37:21 +02:00
create_snippet_service_spec.rb Add tests for snippet services 2015-03-14 10:33:02 -06:00
event_create_service_spec.rb Updated rspec to rspec 3.x syntax 2015-02-12 19:17:35 +01:00
git_push_service_spec.rb Extend push_tag event to include tag message and last commit 2015-03-21 11:25:27 +01:00
git_tag_push_service_spec.rb Extend push_tag event to include tag message and last commit 2015-03-21 11:25:27 +01:00
notification_service_spec.rb Merge branch 'issue_subscription' into 'master' 2015-03-17 16:45:04 +00:00
search_service_spec.rb Updated rspec to rspec 3.x syntax 2015-02-12 19:17:35 +01:00
system_hooks_service_spec.rb Updated rspec to rspec 3.x syntax 2015-02-12 19:17:35 +01:00
test_hook_service_spec.rb Updated rspec to rspec 3.x syntax 2015-02-12 19:17:35 +01:00
update_snippet_service_spec.rb Add tests for snippet services 2015-03-14 10:33:02 -06:00