summaryrefslogtreecommitdiff
path: root/app/controllers/snippets_controller.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2023-03-141-1/+9
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2021-08-111-1/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2021-03-161-0/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-10-121-20/+3
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-10-061-4/+0
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-08-181-0/+4
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-07-101-1/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-06-161-88/+4
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-05-181-13/+3
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-05-131-6/+3
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-03-201-10/+0
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-03-101-2/+9
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-03-091-1/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-02-251-7/+15
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-01-231-4/+4
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-01-171-7/+14
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-11-291-5/+5
|
* Add controller concern for paginated collections65988-optimize-snippet-listingsMarkus Koller2019-09-101-0/+3
| | | | | | We had similar code in a few places to redirect to the last page if the given page number is out of range. This unifies the handling in a new controller concern and adds usage of it in all snippet listings.
* Optimize queries for snippet listingsMarkus Koller2019-09-101-1/+6
| | | | | - Avoid N+1 queries for authors and comment counts - Avoid an additional snippet existence query
* Rewrite `if:` argument in before_action and alike when `only:` is also usedGeorge Thomas2019-07-181-1/+2
| | | | | | Closes #55564 This is first discovered in #54739 (comment 122609857) that if both if: and only: are used in a before_action or after_action or alike, if: is completely ignored.
* Persist tmp snippet uploadsOswaldo Ferreira2019-06-171-1/+1
| | | | | | | | | | It persist temporary personal snippets under user/:id namespaces temporarily while creating a upload record to track it. If an user gets removed while it's still a tmp upload, it also gets removed. If the tmp upload is sent, the upload gets moved to personal_snippets/:id as before. The upload record also gets updated to the new model type as well.
* Block private snippets from being embeddableMark Chao2018-12-201-1/+7
|
* Make getting a user by the username case insensitiveWilliam George2018-10-181-5/+1
|
* Enable frozen string in app/controllers/**/*.rbrepo-forks/gitlab-ce-frozen-string-app-controllergfyoung2018-09-181-0/+2
| | | | | | | | | | | | Enables frozen string for the following: * app/controllers/*.rb * app/controllers/admin/**/*.rb * app/controllers/boards/**/*.rb * app/controllers/ci/**/*.rb * app/controllers/concerns/**/*.rb Partially addresses #47424.
* Disable existing offenses for the CodeReuse copsYorick Peterse2018-09-111-0/+4
| | | | | This whitelists all existing offenses for the various CodeReuse cops, of which most are triggered by the CodeReuse/ActiveRecord cop.
* Show the status of a user in interactionsBob Van Landuyt2018-07-301-1/+1
| | | | | | | | | | | | | | | The status is shown for - The author of a commit when viewing a commit - Notes on a commit (regular/diff) - The user that triggered a pipeline when viewing a pipeline - The author of a merge request when viewing a merge request - The author of notes on a merge request (regular/diff) - The author of an issue when viewing an issue - The author of notes on an issue - The author of a snippet when viewing a snippet - The author of notes on a snippet - A user's profile page - The list of members of a group/user
* Updates from `rubocop -a`Lin Jen-Shin2018-07-091-1/+1
|
* embedded snippets supporthaseeb2018-02-281-0/+4
|
* Add support for markdown preview to group milestonesmove_markdown_preview_to_concernVitaliy @blackst0ne Klachkov2017-10-111-11/+1
|
* WIP: refactor the first-contributor to Issuablemicael.bergeron2017-09-061-1/+1
| | | | | | | this will remove the need make N queries (per-note) at the cost of having to mark notes with an attribute this opens up the possibility for other special roles for notes
* Create and use project path helpers that only need a project, no namespaceDouwe Maan2017-07-051-0/+4
|
* Merge branch '12910-snippets-description' into 'master'Phil Hughes2017-06-071-1/+9
|\ | | | | | | | | | | | | Support descriptions for snippets Closes #31894 See merge request !11071
| * Support uploads for newly created personal snippets12910-snippets-descriptionJarka Kadlecova2017-06-071-1/+1
| |
| * Support descriptions for snippetsJarka Kadlecova2017-05-311-1/+9
| |
* | Add a rubocop rule to check if a method 'redirect_to' is used without ↵31840-add-a-rubocop-that-forbids-redirect_to-inside-a-controller-destroy-action-without-an-explicit-statusblackst0ne2017-06-071-1/+1
| | | | | | | | explicitly set 'status' in 'destroy' actions of controllers
* | Consistent diff and blob size limit namesDouwe Maan2017-05-291-1/+1
|/
* Merge branch 'snippets-finder-visibility' into 'security'Douwe Maan2017-05-101-6/+2
| | | | | | Refactor snippets finder & dont return internal snippets for external users See merge request !2094
* Merge branch 'snippets_visibility' into 'security'Sean McGivern2017-05-101-9/+9
| | | | | | Fix snippets visibility for show action - external users can not see internal snippets See merge request !2087
* Support comments for personal snippetsJarka Kadlecova2017-05-051-0/+1
|
* Display slash commands outcome when previewing Markdownadam-separate-slash-commandsRares Sfirlogea2017-05-041-2/+8
| | | | | | | | | | Remove slash commands from Markdown preview and display their outcome next to the text field. Introduce new "explanation" block to our slash commands DSL. Introduce optional "parse_params" block to slash commands DSL that allows to process a parameter before it is passed to "explanation" or "command" blocks. Pass path for previewing Markdown as "data" attribute instead of setting a variable on "window".
* Merge branch 'dm-snippet-download-button' into 'master' Sean McGivern2017-05-021-11/+3
|\ | | | | | | | | Add download button to project snippets See merge request !11004
| * Add download button to project snippetsdm-snippet-download-buttonDouwe Maan2017-04-301-11/+3
| |
* | Display comments for personal snippets12910-personal-snippets-notes-showJarka Kadlecova2017-05-021-0/+6
|/
* Use blob viewers for snippetsDouwe Maan2017-04-301-0/+13
|
* Support preview_markdown action for personal_snippetsJarka Kadlecova2017-04-261-0/+5
|
* Revert "Prefer leading style for Style/DotPosition"Douwe Maan2017-02-231-2/+2
| | | | This reverts commit cb10b725c8929b8b4460f89c9d96c773af39ba6b.
* Enable Style/MultilineHashBraceLayoutDouwe Maan2017-02-231-1/+2
|
* Prefer leading style for Style/DotPositionDouwe Maan2017-02-231-4/+4
|
* Merge branch '28093-snippet-and-issue-spam-check-on-edit' into 'master'Sean McGivern2017-02-221-5/+8
|\ | | | | | | | | | | | | Spam check and reCAPTCHA improvements Closes #28093 See merge request !9248
| * Spam check and reCAPTCHA improvements28093-snippet-and-issue-spam-check-on-editOswaldo Ferreira2017-02-211-5/+8
| |