Commit graph

13 commits

Author SHA1 Message Date
GitLab Bot
f1a40d0db9 Add latest changes from gitlab-org/gitlab@master 2020-03-09 15:07:45 +00:00
Francisco Javier López
dde69bfb2a Added list_pages method to avoid loading all wiki pages content
Inside a wiki, when we show the sidebar or browse to the `pages`,
all page contents are retrieved from Gitaly and that is a waste
of resources, since no content from that pages are going to be
showed.

This MR introduces the method `ProjectWiki#list_pages`,
which uses new wiki_list_pages RPC call to retrieve
pages without content

Also in the `WikisController` we're using the method to show
pages in the sidebar and also on the `pages` page.
2019-04-25 04:19:07 +00:00
Martin Wortschack
5770b6544d Externalize strings detected by rubocop-i18n
- Externalize strings in milestones_helper
- Externalize strings in app/services
- Update PO file
2019-04-15 12:25:48 +00:00
Francisco Javier López
a6778fc647 Rename project's pipelines relation 2018-12-05 14:39:15 +00:00
gfyoung
0cf45debb4 Enable more frozen string in app/services/**/*.rb
Partially addresses #47424.
2018-07-18 14:07:50 -07:00
Mario de la Ossa
caadfcdee3
Backport changes in app/services/test_hooks/project_service.rb 2018-06-02 18:44:31 -06:00
🙈 jacopo beschi 🙉
c6b1043e9d Resolve "Make a Rubocop that forbids returning from a block" 2018-04-18 09:19:40 +00:00
Alexis Reigel
faadd9e0e4 use class reader instead of dynamic constant 2018-01-17 09:55:00 +01:00
Alexis Reigel
d71d8ad7f8 test hook for system merge request hook 2018-01-04 09:33:41 +01:00
Rémy Coutable
9e20157528
Fix a wrong X-Gitlab-Event header when testing webhooks
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-09-07 17:40:32 +02:00
Stan Hu
1e53f40c25 Simplify system hook testing and guarantee test will fire
The change in !11728 would cause an arbitrary project to be chosen to test
system hooks, and it's likely that the project would not have any commits or
relevant commits to test the hook. This would prevent admins from verifying
that the hook fired. Instead of trying to create a representative hook
dynamically, just send static data to guarantee the hook will actually be
tested.

Closes #37067
2017-08-27 15:50:20 -07:00
Robert Speicher
260c8da060 Whitelist or fix additional Gitlab/PublicSend cop violations
An upcoming update to rubocop-gitlab-security added additional
violations.
2017-08-14 12:14:11 -04:00
Alexander Randa
e0ab5618a0 Wrong data type when testing webhooks 2017-07-20 15:12:06 +00:00