GitLab Bot
9c6578ed4e
Add latest changes from gitlab-org/gitlab@master
2021-04-21 15:09:35 +00:00
GitLab Bot
e512af1d82
Add latest changes from gitlab-org/gitlab@master
2021-03-16 00:09:44 +00:00
GitLab Bot
b17f0b91a6
Add latest changes from gitlab-org/gitlab@master
2020-10-12 15:08:32 +00:00
GitLab Bot
1ca6880aac
Add latest changes from gitlab-org/gitlab@master
2020-10-06 18:08:49 +00:00
GitLab Bot
85f7fa54f4
Add latest changes from gitlab-org/gitlab@master
2020-08-18 18:10:10 +00:00
GitLab Bot
0bc6d00165
Add latest changes from gitlab-org/gitlab@master
2020-07-10 18:09:45 +00:00
GitLab Bot
6046a605fd
Add latest changes from gitlab-org/gitlab@master
2020-06-22 12:08:47 +00:00
GitLab Bot
10fd79745d
Add latest changes from gitlab-org/gitlab@master
2020-06-16 15:08:32 +00:00
GitLab Bot
a5650b86b5
Add latest changes from gitlab-org/gitlab@master
2020-05-13 21:08:55 +00:00
GitLab Bot
43b4b3e2d2
Add latest changes from gitlab-org/gitlab@master
2020-03-20 12:10:03 +00:00
GitLab Bot
1fa79760ad
Add latest changes from gitlab-org/gitlab@master
2020-03-10 12:08:16 +00:00
GitLab Bot
ac1dca43ba
Add latest changes from gitlab-org/gitlab@master
2020-03-09 12:07:45 +00:00
GitLab Bot
b98fa9ef3d
Add latest changes from gitlab-org/gitlab@master
2020-02-25 09:09:10 +00:00
GitLab Bot
26384c9a61
Add latest changes from gitlab-org/gitlab@master
2020-02-05 09:08:43 +00:00
GitLab Bot
5ad0cf2655
Add latest changes from gitlab-org/gitlab@master
2020-01-23 12:08:38 +00:00
GitLab Bot
efb0c7f501
Add latest changes from gitlab-org/gitlab@master
2020-01-17 00:09:00 +00:00
Markus Koller
f1926b321d
Add controller concern for paginated collections
...
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.
2019-09-10 15:24:29 +02:00
Markus Koller
60755fbc40
Optimize queries for snippet listings
...
- Avoid N+1 queries for authors and comment counts
- Avoid an additional snippet existence query
2019-09-10 15:24:28 +02:00
George Thomas
a9707e8cf7
Rewrite `if:` argument in before_action and alike when `only:` is also used
...
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.
2019-07-18 10:04:06 +05:30
Mark Chao
ed0d691e0d
Block private snippets from being embeddable
2018-12-20 14:32:51 +08:00
gfyoung
12ee2753c1
Enable even more frozen string in app/controllers
...
Enables frozen string for some vestigial files as
well as the following:
* app/controllers/projects/**/*.rb
* app/controllers/sherlock/**/*.rb
* app/controllers/snippets/**/*.rb
* app/controllers/users/**/*.rb
Partially addresses #47424 .
2018-09-25 22:43:49 -07:00
Bob Van Landuyt
f1d3ea63cf
Show the status of a user in interactions
...
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
2018-07-30 15:01:26 +02:00
Lin Jen-Shin
4ee08b77bc
Updates from `rubocop -a`
2018-07-09 21:13:08 +08:00
haseeb
27e8d38cea
embedded snippets support
2018-02-28 18:48:26 +05:30
micael.bergeron
966b1128d8
WIP: refactor the first-contributor to Issuable
...
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
2017-09-06 09:00:57 -04:00
Douwe Maan
fe13f11041
Create and use project path helpers that only need a project, no namespace
2017-07-05 11:11:59 -05:00
Nick Thomas
8e5bf9d8dc
Use the new check_project_feature_available! method in project controllers
2017-06-21 10:56:45 +01:00
Phil Hughes
563ea34692
Merge branch '12910-snippets-description' into 'master'
...
Support descriptions for snippets
Closes #31894
See merge request !11071
2017-06-07 09:26:48 +00:00
blackst0ne
a544e46bb0
Add a rubocop rule to check if a method 'redirect_to' is used without explicitly set 'status' in 'destroy' actions of controllers
2017-06-07 09:45:16 +11:00
Jarka Kadlecova
4464c22d6d
Support descriptions for snippets
2017-05-31 07:17:03 +02:00
Douwe Maan
aed0387f97
Consistent diff and blob size limit names
2017-05-29 17:02:02 -05: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
Douwe Maan
60ebd101d0
Use blob viewers for snippets
2017-04-30 11:21:20 -05:00
Douwe Maan
21e10888c3
Address review comments
2017-04-05 17:44:14 +01:00
Douwe Maan
08bbb9fce6
Add option to start a new discussion on an MR
2017-04-05 17:44:14 +01:00
Oswaldo Ferreira
2ace39f242
Spam check and reCAPTCHA improvements
2017-02-21 13:32:49 -03:00
Jarka Kadlecova
c9d687d6fe
Download snippets with LF line-endings by default
2017-02-20 07:24:03 +01: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
Tiago Botelho
805bbe8893
adds specs for respective behaviour
2016-12-21 23:53:24 +00:00
Tiago Botelho
9b66aa6e04
Prevent empty pagination when list is not empty
2016-12-21 23:53:24 +00:00
Mike Greiling
54a1193d79
add scope filters to project snippets page
2016-12-10 00:57:23 -06:00
Z.J. van de Weg
412ff80b7b
Start Frontend work, fix routing problem
2016-09-19 19:50:40 +03:00
Felipe Artur
892dea6771
Project tools visibility level
2016-09-01 11:47:59 -03:00
Rémy Coutable
d71983f599
Fix snippets comments not displayed
...
The issue was that @notes were not passed to Banzai::NoteRenderer.render
in Projects::SnippetsController#show. This was forgotten in d470f3d1
.
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-07-01 18:39:19 +02:00
Rémy Coutable
4f07c0a107
Ensure project snippets have their own access level
2016-03-25 18:51:17 +01:00
Rémy Coutable
f4bdefdff1
Ensure private project snippets are not viewable by unauthorized people
...
Fix https://gitlab.com/gitlab-org/gitlab-ce/issues/14607 .
2016-03-25 12:33:42 +01:00
Robert Speicher
085538c2bd
Use the configured Kaminari "per page" default
2016-03-19 17:37:54 -04:00
Yorick Peterse
f7240e03a6
Fix autocomplete for new issues/MRs/snippets
2016-01-15 11:29:53 +01:00
Douwe Maan
946f00ed7f
Update style of snippets pages
2015-10-18 13:03:26 +02:00
Dmitriy Zaporozhets
daa90e1182
Fix 500 error when try to create project snippet without content
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-08-26 23:59:52 +02:00