Skip to content

Prepare uploaders for personal snippets comments

Jarka Košanová requested to merge 12910-uploader-pers-snippet into master

What does this MR do?

It adds support for uploading files that are not related to projects.

We have now 2 uploads controller:

  • UploadsController - this controller handled only show files action and this functionality was not changed. I only added a create action for personal snippets and support for showing them.
  • Projects::UploadsController

I created concern that is used by both of these controllers.

Why was this MR needed?

This is the last preparation step for enabling comments on personal snippets. When commenting personal snippets we should support uploading files to those comments as well. And that's why we need to have the possibility to do so.

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

#12910 (closed)

Merge request reports