summaryrefslogtreecommitdiff
path: root/lib/gitlab/url_builder.rb
Commit message (Collapse)AuthorAgeFilesLines
* Don't reload ActiveRecord objects when building note URLsSean McGivern2017-07-111-5/+3
| | | | | | | | | | When we build a note URL, and we have the note loaded already, there are two cases: 1. The `noteable` is already loaded. In that case, this is faster as it doesn't build a new AR object from the query. 2. The `noteable` is not already loaded. In that case, this change is no worse than the previous code.
* Include new URL helpers retroactively into includers of Gitlab::Routingdm-fix-project-path-helpers-productionDouwe Maan2017-07-071-1/+1
|
* Create and use project path helpers that only need a project, no namespaceDouwe Maan2017-07-051-4/+4
|
* Added more actions and report as abuse to all notesLuke "Jared" Bennett2017-06-071-1/+6
|
* API: Endpoint to expose personal snippets as /snippetsGuyzmo2016-12-011-0/+2
| | | | | | | | | | 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>
* url_builder: handle project snippetsBen Boeckel2016-08-241-0/+2
|
* Use the relative url prefix for links in WikiArtem Sidorenko2016-05-131-1/+1
|
* Revert "Merge branch 'wiki-fix' into 'master' "Rémy Coutable2016-05-101-1/+1
| | | | | | | This reverts commit 4cc85a58e8ca00f5a4ecbd2bca40a0cad867b817, reversing changes made to 90ae445ba930068d04adc5a009dbdeabe4cb3e34. Signed-off-by: Rémy Coutable <remy@rymai.me>
* Use the proper GitLab URL for links in WikiArtem Sidorenko2016-05-091-1/+1
|
* add wiki_page helper to url_builderSebastian Klier2016-04-201-0/+6
|
* Refactor and expose only Gitlab::UrlBuilder.build(record)simplify-gitlab-url_builder-15202Rémy Coutable2016-04-131-33/+41
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Merge branch 'routing' into 'master' Robert Speicher2016-04-011-1/+1
|\ | | | | | | | | | | | | Added & use Gitlab::Routing for URL helpers Extracted from !3389 See merge request !3486
| * Added & use Gitlab::Routing for URL helpersroutingYorick Peterse2016-04-011-1/+1
| | | | | | | | | | | | | | Rails' "url_helpers" method creates an anonymous Module (which a bunch of methods) on every call. By caching the output of this method in a dedicated method we can shave off about 10 seconds of loading time for an issue with around 200 comments.
* | Fix view of notes in search results when noteable is a snippetsnippets-with-comments-cause-a-500-when-they-show-up-in-search-results-14764Rémy Coutable2016-03-311-7/+5
| | | | | | | | | | | | Also, streamline the view. Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Rename Note#for_project_snippet? to #for_snippet?Rémy Coutable2016-03-311-1/+1
|/ | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Merge branch 'master' into ci-and-ce-sitting-in-a-tree-k-i-s-s-i-n-gDmitriy Zaporozhets2015-09-091-6/+2
|\
| * Fix URL construction for merge requests, issues, notes, and commits for ↵Stan Hu2015-09-041-6/+2
| | | | | | | | | | | | relative URL config Closes https://github.com/gitlabhq/gitlabhq/issues/9605
* | Move helpers back to original directoryDmitriy Zaporozhets2015-09-091-1/+1
| |
* | Groundwork for merging CI into CEDouwe Maan2015-08-251-2/+2
|/
* Enforce restricted visibilities for snippetsVinnie Okada2015-03-081-3/+3
| | | | | | Add new service classes to create and update project and personal snippets. These classes are responsible for enforcing restricted visibility settings for non-admin users.
* Added comment notification events to HipChat and Slack services.Stan Hu2015-03-061-0/+29
| | | | | | | | | Supports four different event types all bundled under the "note" event type: - comments on a commit - comments on an issue - comments on a merge request - comments on a code snippet
* Fix URL builder to use GitlabRoutingHelperStan Hu2015-03-031-11/+7
|
* Fix merge request URL passed to Webhooks.Stan Hu2015-02-241-0/+9
| | | | Previously the symbol "url" in the object_attributes hash would always be nil.
* Upgrade to Rails 4.1.9Vinnie Okada2015-02-141-3/+4
| | | | | | Make the following changes to deal with new behavior in Rails 4.1.2: * Use nested resources to avoid slashes in arguments to path helpers.
* Use Gitlab.config instead of Settings everywhereCiro Santilli2014-10-151-1/+1
|
* Added an UrlBuilder for building rails named routesJeroen van Baarsen2014-06-131-0/+25
Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>