summaryrefslogtreecommitdiff
path: root/app/finders/snippets_finder.rb
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'snippets-finder-visibility' into 'security'Douwe Maan2017-05-101-47/+55
| | | | | | Refactor snippets finder & dont return internal snippets for external users See merge request !2094
* Merge branch '19990-update-snippets-page-design' into 'master' Fatih Acet2016-12-121-21/+21
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Resolve "Updated UI for Snippets pages" ## What does this MR do? ## Are there points in the code the reviewer needs to double check? ## Why was this MR needed? ## Screenshots (if relevant) ## Does this MR meet the acceptance criteria? - [ ] [Changelog entry](https://docs.gitlab.com/ce/development/changelog.html) added - [ ] [Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md) - [ ] API support added - Tests - [ ] Added for this feature/bug - [ ] All builds are passing - [ ] Conform by the [merge request performance guides](http://docs.gitlab.com/ce/development/merge_request_performance_guidelines.html) - [ ] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides) - [ ] Branch has no merge conflicts with `master` (if it does - rebase it please) - [ ] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits) ## What are the relevant issue numbers? Closes #19990 See merge request !7861
| * use Snippet.none in favor of nil to allow chainingMike Greiling2016-12-101-1/+1
| |
| * refactor duplicate code into a by_scope methodMike Greiling2016-12-101-35/+19
| |
| * add scope filters to project snippets pageMike Greiling2016-12-101-4/+20
| |
* | API: Endpoint to expose personal snippets as /snippetsGuyzmo2016-12-011-1/+4
|/ | | | | | | | | | Adding the necessary API for the new /snippets Restful resource added with this commit. Added a new Grape class `Snippets`, as well as a `PersonalSnippet` entity. Issue: #20042 Merge-Request: !6373 Signed-off-by: Guyzmo <guyzmo+gitlab+pub@m0g.net>
* Project members with guest role can't access confidential issuesDouglas Barbosa Alexandre2016-06-131-1/+1
|
* Prevent private snippets in public/internal projects from being leaked via APIStan Hu2016-04-251-1/+1
| | | | Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/15580
* Remove `Snippet#expires_at`rs-snippets-dont-expireRobert Speicher2016-03-051-3/+3
| | | | | | This was removed from the interface in https://github.com/gitlabhq/gitlabhq/pull/6027 but its implementation lingered around for two years.
* Rubocop: indentation fixes Yay!!!Dmitriy Zaporozhets2015-02-021-1/+1
|
* internal snippets: fix exposing of titleValery Sizov2014-10-241-0/+2
|
* Admin: user sortingValery Sizov2014-10-131-11/+11
|
* Snippets: public/internal/privateValery Sizov2014-10-091-0/+61