Commit Graph

52 Commits

Author SHA1 Message Date
GitLab Bot df592d51ae Add latest changes from gitlab-org/gitlab@master 2023-11-13 12:10:07 +00:00
GitLab Bot c766b837cf Add latest changes from gitlab-org/gitlab@master 2023-10-17 21:13:54 +00:00
GitLab Bot fda0e422a7 Add latest changes from gitlab-org/gitlab@master 2022-10-24 09:11:03 +00:00
GitLab Bot 2705a15dea Add latest changes from gitlab-org/gitlab@master 2022-05-13 09:07:54 +00:00
GitLab Bot 9b124bc39e Add latest changes from gitlab-org/gitlab@master 2021-08-25 00:11:06 +00:00
GitLab Bot 0ae8428c8e Add latest changes from gitlab-org/gitlab@master 2021-05-11 21:10:21 +00:00
GitLab Bot be4b3134a2 Add latest changes from gitlab-org/gitlab@master 2021-05-04 15:10:36 +00:00
GitLab Bot d06b4740da Add latest changes from gitlab-org/gitlab@master 2021-01-08 00:10:44 +00:00
GitLab Bot b45d30ab76 Add latest changes from gitlab-org/gitlab@master 2020-11-07 00:08:58 +00:00
GitLab Bot 207ec5c078 Add latest changes from gitlab-org/gitlab@master 2020-07-12 09:09:08 +00:00
GitLab Bot ae1efa2e1d Add latest changes from gitlab-org/gitlab@master 2020-07-01 15:08:45 +00:00
GitLab Bot 018431c70e Add latest changes from gitlab-org/gitlab@master 2020-06-11 15:08:36 +00:00
GitLab Bot 340fd2966e Add latest changes from gitlab-org/gitlab@master 2020-06-04 00:08:17 +00:00
GitLab Bot 8ff63012e9 Add latest changes from gitlab-org/gitlab@master 2020-05-12 15:10:33 +00:00
GitLab Bot c6f0b221b7 Add latest changes from gitlab-org/gitlab@master 2020-05-12 00:10:11 +00:00
GitLab Bot 0d09054d16 Add latest changes from gitlab-org/gitlab@master 2020-05-05 15:09:42 +00:00
GitLab Bot ae96e65ee2 Add latest changes from gitlab-org/gitlab@master 2020-04-22 12:09:29 +00:00
GitLab Bot 495c22d124 Add latest changes from gitlab-org/gitlab@master 2020-04-06 18:09:37 +00:00
GitLab Bot e9c2bf2678 Add latest changes from gitlab-org/gitlab@master 2020-03-03 18:08:16 +00:00
GitLab Bot 4ba55564e1 Add latest changes from gitlab-org/gitlab@master 2019-12-10 21:08:01 +00:00
GitLab Bot 7cdd70dcec Add latest changes from gitlab-org/gitlab@master 2019-11-28 15:06:57 +00:00
GitLab Bot 1cfd8874ee Add latest changes from gitlab-org/gitlab@master 2019-09-25 09:06:04 +00:00
Jason Goodman 1b8646804d Update deployment chat message notification
Include link to user and commit title.
Rearrange text
2019-05-02 16:07:26 +00:00
Jason Goodman fe86890b9d Add deployment events to chat notification services
This enables sending a chat message to Slack or Mattermost
  upon a successful, failed, or canceled deployment
2019-04-26 21:08:41 +00:00
gfyoung c858f70d07 Enable frozen string for lib/gitlab/*.rb 2018-10-22 07:00:50 +00:00
Mario de la Ossa 379a6a709a
Sidebar Milestone - Fix wrong URL when selecting a parent group milestone 2018-06-12 17:22:12 -06:00
Sean McGivern 222a6b4680 Don't reload ActiveRecord objects when building note URLs
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.
2017-07-11 13:02:55 +01:00
Douwe Maan c81928cfa7 Include new URL helpers retroactively into includers of Gitlab::Routing 2017-07-07 10:43:37 -05: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
Luke "Jared" Bennett 32cac59727 Added more actions and report as abuse to all notes 2017-06-07 18:33:50 +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
Ben Boeckel 9b470aebb9 url_builder: handle project snippets 2016-08-24 10:32:12 -04:00
Artem Sidorenko e5c9710147 Use the relative url prefix for links in Wiki 2016-05-13 22:42:07 +02:00
Rémy Coutable f52a15e022
Revert "Merge branch 'wiki-fix' into 'master' "
This reverts commit 4cc85a58e8, reversing
changes made to 90ae445ba9.

Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-05-10 10:57:48 +02:00
Artem Sidorenko 14b36f91d9 Use the proper GitLab URL for links in Wiki 2016-05-09 11:50:23 +02:00
Sebastian Klier a88f0a1fd8 add wiki_page helper to url_builder 2016-04-20 08:25:41 +08:00
Rémy Coutable 02cfbf0db5
Refactor and expose only Gitlab::UrlBuilder.build(record)
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-04-13 16:07:04 +02:00
Robert Speicher 5627542fd4 Merge branch 'routing' into 'master'
Added & use Gitlab::Routing for URL helpers

Extracted from !3389

See merge request !3486
2016-04-01 16:51:20 +00:00
Yorick Peterse 84b0ab7766 Added & use Gitlab::Routing for URL helpers
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.
2016-04-01 11:13:48 +02:00
Rémy Coutable e60f034126
Fix view of notes in search results when noteable is a snippet
Also, streamline the view.

Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-03-31 09:40:57 +02:00
Rémy Coutable 091b8a6ede
Rename Note#for_project_snippet? to #for_snippet?
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-03-31 09:20:27 +02:00
Dmitriy Zaporozhets 0b5d627cd4 Merge branch 'master' into ci-and-ce-sitting-in-a-tree-k-i-s-s-i-n-g 2015-09-09 14:56:02 +02:00
Dmitriy Zaporozhets 90c338a495 Move helpers back to original directory 2015-09-09 14:37:34 +02:00
Stan Hu a5314e79f2 Fix URL construction for merge requests, issues, notes, and commits for relative URL config
Closes https://github.com/gitlabhq/gitlabhq/issues/9605
2015-09-04 16:24:01 -07:00
Douwe Maan 046b283127 Groundwork for merging CI into CE 2015-08-25 18:42:46 -07:00
Vinnie Okada 928fc94c3d Enforce restricted visibilities for snippets
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.
2015-03-08 17:57:08 -06:00
Stan Hu 7e204cf389 Added comment notification events to HipChat and Slack services.
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
2015-03-06 06:54:00 -08:00
Stan Hu 2088cee935 Fix URL builder to use GitlabRoutingHelper 2015-03-03 15:57:28 -08:00
Stan Hu e363f2e675 Fix merge request URL passed to Webhooks.
Previously the symbol "url" in the object_attributes hash would always be nil.
2015-02-24 06:51:24 +00:00
Vinnie Okada 76aad9b76e Upgrade to Rails 4.1.9
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.
2015-02-14 11:09:23 -07:00