Dmitriy Zaporozhets
|
935fc796d1
|
Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq into ce-to-ee
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Conflicts:
VERSION
app/controllers/admin/application_settings_controller.rb
app/controllers/omniauth_callbacks_controller.rb
app/controllers/projects/project_members_controller.rb
app/helpers/application_settings_helper.rb
app/models/user.rb
app/services/files/base_service.rb
app/views/profiles/accounts/show.html.haml
db/schema.rb
doc/install/installation.md
doc/update/6.x-or-7.x-to-7.11.md
doc/workflow/README.md
lib/gitlab/markdown/external_issue_reference_filter.rb
lib/gitlab/reference_extractor.rb
lib/gitlab/upgrader.rb
|
2015-06-05 11:40:36 +02:00 |
|
Robert Speicher
|
9e7a9c63a5
|
Further limit the limited whitelist for project/group descriptions
|
2015-06-02 13:41:12 -04:00 |
|
Robert Speicher
|
79c4e3899f
|
Rename ReferenceFilterSpecHelper to FilterSpecHelper
And make it more generalized for all filter specs.
|
2015-06-02 13:27:53 -04:00 |
|
Robert Speicher
|
023dd2907b
|
Add a pipeline context option for SanitizationFilter
When this option is `:description`, we use a more restrictive whitelist.
This is used for Project and Group description fields.
|
2015-06-02 13:04:10 -04:00 |
|
Robert Speicher
|
7424d2fa5b
|
Add ExternalLinkFilter to Markdown pipeline
Forces a `rel="nofollow"` attribute on all external links.
|
2015-05-27 15:39:08 -04:00 |
|
Robert Speicher
|
81a09bc74c
|
Support only double quotes for multi-word label references
|
2015-05-26 15:49:20 -04:00 |
|
Robert Speicher
|
94af050117
|
Use to_reference in reference filter specs
|
2015-05-26 15:48:32 -04:00 |
|
Robert Speicher
|
136ab73803
|
Update CommitRange#to_reference to use full SHAs
We only want them shortened by the filter, which calls to_s
|
2015-05-26 15:48:31 -04:00 |
|
Robert Speicher
|
b263a33c80
|
Better handle label references that aren't actually references
Fixes #1690
|
2015-05-25 16:06:34 -04:00 |
|
Robert Speicher
|
8ee382087d
|
Subclass TaskList::Filter to fix a bug
Instead of using a fork, we subclass the filter and only apply the
`task-list` class to list items that actually are task lists.
Closes #1645
See https://github.com/github/task_list/pull/60
|
2015-05-20 12:08:33 -04:00 |
|
Dmitriy Zaporozhets
|
1af8b1e4f8
|
Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq into ce-to-ee
Conflicts:
app/views/help/index.html.haml
lib/gitlab/git_access.rb
public/500.html
public/502.html
|
2015-05-15 13:29:58 +03:00 |
|
Robert Speicher
|
7f2fb72a0a
|
Minor RelativeLinkFilter cleanup
|
2015-05-13 14:08:37 -04:00 |
|
Dmitriy Zaporozhets
|
b2d45bb544
|
Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq into ce-to-ee
Conflicts:
app/controllers/uploads_controller.rb
app/helpers/application_helper.rb
app/models/note.rb
app/services/test_hook_service.rb
db/schema.rb
spec/models/note_spec.rb
|
2015-05-13 14:10:14 +03:00 |
|
Jakub Jirutka
|
44b82396d1
|
Add spec for RelativeLinkFilter
|
2015-05-12 02:12:47 +02:00 |
|
Robert Speicher
|
70bbf093aa
|
Remove class and id attributes from SanitizationFilter whitelist
|
2015-05-08 12:31:34 -04:00 |
|
Douwe Maan
|
68ac20604b
|
Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce into ce-to-ee
# Conflicts:
# app/controllers/groups/application_controller.rb
# app/services/test_hook_service.rb
# app/views/admin/groups/show.html.haml
# app/views/groups/_settings_nav.html.haml
# app/views/groups/show.html.haml
# app/views/layouts/_head.html.haml
# app/views/projects/_settings_nav.html.haml
# db/schema.rb
# features/project/project.feature
# features/steps/project/project.rb
|
2015-05-05 10:18:27 +02:00 |
|
Robert Speicher
|
0027c2ddd7
|
Add Project#get_issue
|
2015-04-30 16:35:27 -04:00 |
|
Robert Speicher
|
cd3c24a8f3
|
Autolink short URLs
|
2015-04-30 16:35:27 -04:00 |
|
Robert Speicher
|
f4fac3ac87
|
Add jira_project project factory
|
2015-04-30 16:35:27 -04:00 |
|
Robert Speicher
|
e46d1cdd8b
|
Add Gitlab::Markdown::SanitizationFilter
This just extends the HTML::Pipeline::SanitizationFilter with our custom
whitelist.
|
2015-04-30 16:35:25 -04:00 |
|
Robert Speicher
|
aa2cc670fe
|
Add Gitlab::Markdown::AutolinkFilter
|
2015-04-30 16:35:25 -04:00 |
|
Robert Speicher
|
382a0aa6ef
|
Add Gitlab::Markdown::TableOfContentsFilter
Removes header and table of contents processing from Redcarpet renderer.
|
2015-04-30 16:35:25 -04:00 |
|
Robert Speicher
|
d2b36e6b90
|
Add a jira_project project factory
|
2015-04-27 15:27:18 -04:00 |
|
Robert Speicher
|
b41fe91ece
|
Add result to ExternalIssueReferenceFilter
|
2015-04-27 15:25:44 -04:00 |
|
Robert Speicher
|
07a88040a4
|
Fix NotificationService spec
|
2015-04-25 16:46:06 -04:00 |
|
Robert Speicher
|
6bac823ad4
|
Update CommitRangeReferenceFilter to use CommitRange class
Also matches CommitReferenceFilter's new behavior of always using short
SHAs in the link text.
|
2015-04-25 14:41:06 -04:00 |
|
Robert Speicher
|
2c8bfedb20
|
Always use short SHAs as commit reference link text
Now when a user pastes a full SHA like
`d7f61affaf845f44b4cc995e34eb1606c47c8eff`, its link text will only show
`d7f61aff` for brevity.
|
2015-04-25 14:40:40 -04:00 |
|
Robert Speicher
|
a6defd1576
|
Add results to reference filters
|
2015-04-25 14:39:45 -04:00 |
|
Douwe Maan
|
8ed7ac9d44
|
Use project.commit convenience method.
|
2015-04-24 12:29:36 +02:00 |
|
Robert Speicher
|
4ced630fed
|
Add Gitlab::Markdown::EmojiFilter
|
2015-04-21 12:53:42 -04:00 |
|
Robert Speicher
|
b389424627
|
Skip failing test until usernames can't end in periods again
|
2015-04-20 13:01:47 -04:00 |
|
 Douwe MaanandRobert Speicher
|
c52bf4ad3c
|
Tweak single-word label regex to fix pending spec.
|
2015-04-20 13:01:47 -04:00 |
|
 Douwe MaanandRobert Speicher
|
b5802d144b
|
project_from_ref returns nil when reference doesn't exist.
|
2015-04-20 13:01:47 -04:00 |
|
Robert Speicher
|
2823c058d8
|
project_from_ref returns nil when reference can't be accessed
Prior it would return the project from the current context, which wasn't
the intended behavior.
|
2015-04-20 13:01:47 -04:00 |
|
Robert Speicher
|
3a0b4340aa
|
Add more tests for cross-project references
|
2015-04-20 13:01:46 -04:00 |
|
Robert Speicher
|
b905702d4f
|
Escape title attributes in references
|
2015-04-20 13:01:46 -04:00 |
|
Robert Speicher
|
5b6c1a2182
|
Fix Issue and ExternalIssue reference specs
|
2015-04-20 13:01:45 -04:00 |
|
Robert Speicher
|
b0ea7b3b3d
|
Fix cross-project reference specs for new permission check
For simplicity's sake, since we're testing the actual referencing, we
just force the permission check to always be allowed.
|
2015-04-20 13:01:44 -04:00 |
|
Robert Speicher
|
a803cd51eb
|
Check for project read permissions in cross-references
|
2015-04-20 13:01:44 -04:00 |
|
Robert Speicher
|
29604ff2c3
|
Add permission checking to UserReferenceFilter
|
2015-04-20 13:01:43 -04:00 |
|
Robert Speicher
|
189c5347be
|
Add name-based referencing to LabelReferenceFilter
|
2015-04-20 13:01:43 -04:00 |
|
Robert Speicher
|
4cb1cc2b64
|
Make CommitRange and Snippets cross-referable
|
2015-04-20 13:01:42 -04:00 |
|
Robert Speicher
|
d520fe07ad
|
Fix GitlabMarkdownHelper spec
|
2015-04-20 13:01:42 -04:00 |
|
Robert Speicher
|
96c2b94048
|
Reference filters ✨
Commit ranges, commits, external issues, issues, labels, merge requests,
snippets, users.
|
2015-04-20 13:01:42 -04:00 |
|