Yorick Peterse
2039c8280d
Disable existing offenses for the CodeReuse cops
...
This whitelists all existing offenses for the various CodeReuse cops, of
which most are triggered by the CodeReuse/ActiveRecord cop.
2018-09-11 17:32:00 +02:00
🙈 jacopo beschi 🙉
c6b1043e9d
Resolve "Make a Rubocop that forbids returning from a block"
2018-04-18 09:19:40 +00:00
Jacopo
181cd299f9
Adds Rubocop rule for line break after guard clause
...
Adds a rubocop rule (with autocorrect) to ensure line break after guard clauses.
2017-11-16 17:58:29 +01:00
Robert Schilling
e80313f9ee
Conditionally destroy a ressource
2017-08-28 16:40:25 +02:00
Robert Schilling
998afa5f74
API: Respect the 'If-Unmodified-Since' for delete endpoints
2017-08-28 16:40:25 +02:00
Dmitriy Zaporozhets
6b8ad689da
Update grape gem
...
New version of the gem returns 200 status code on delete with content
instead of 204 so we explicitly set status code to keep existing
behavior
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2017-07-20 16:33:18 +03:00
James Lopez
2aa95aa018
refactor code based on feedback
2017-07-06 15:27:49 +02:00
James Lopez
6ee87aea89
add user agent details API endpoints to issues and snippets
2017-07-06 15:27:48 +02:00
Jarka Kadlecova
4464c22d6d
Support descriptions for snippets
2017-05-31 07:17:03 +02:00
Douwe Maan
ad309f5d11
Merge branch 'snippets-finder-visibility' into 'security'
...
Refactor snippets finder & dont return internal snippets for external users
See merge request !2094
2017-05-10 16:48:18 +02:00
Toon Claes
a3fdd6acd2
Use string based visibility
getter & setter
...
Add `visibility` & `visibility=` methods to the
`Gitlab::VisibilityLevel` module so the `visibility_level` can be
get/set with a string value.
2017-03-02 12:15:25 +01:00
Toon Claes
209856166e
Expose Snippet VisibilityLevel as String
2017-03-02 12:15:24 +01:00
Robert Schilling
86c58687b2
Return 204 for delete endpoints
2017-02-28 08:32:38 +01:00
Oswaldo Ferreira
2ace39f242
Spam check and reCAPTCHA improvements
2017-02-21 13:32:49 -03:00
Sean McGivern
c63194ce6f
Check public snippets for spam
...
Apply the same spam checks to public snippets (either personal snippets
that are public, or public snippets on public projects) as to issues on
public projects.
2017-02-02 10:23:51 +00:00
Guyzmo
fde754e267
API: Endpoint to expose personal snippets as /snippets
...
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>
2016-12-01 19:07:49 +01:00