Commit Graph

78 Commits

Author SHA1 Message Date
GitLab Bot 9b863f753f Add latest changes from gitlab-org/gitlab@master 2023-04-20 06:16:34 +00:00
GitLab Bot b161512b30 Add latest changes from gitlab-org/gitlab@master 2023-04-06 12:08:07 +00:00
GitLab Bot 899bb5c4a9 Add latest changes from gitlab-org/gitlab@master 2021-01-25 18:09:03 +00:00
GitLab Bot 716896e8ca Add latest changes from gitlab-org/gitlab@master 2021-01-13 18:10:55 +00:00
GitLab Bot 61265b9f01 Add latest changes from gitlab-org/gitlab@master 2020-10-05 15:08:56 +00:00
GitLab Bot b296ffa543 Add latest changes from gitlab-org/gitlab@master 2020-09-09 21:08:33 +00:00
GitLab Bot c59765a50a Add latest changes from gitlab-org/gitlab@master 2020-06-24 18:09:03 +00:00
GitLab Bot 4a3ba3e5f2 Add latest changes from gitlab-org/gitlab@master 2020-05-22 09:08:09 +00:00
GitLab Bot ae96e65ee2 Add latest changes from gitlab-org/gitlab@master 2020-04-22 12:09:29 +00:00
GitLab Bot c6b3ec3f56 Add latest changes from gitlab-org/gitlab@master 2020-04-07 15:09:30 +00:00
GitLab Bot 495c22d124 Add latest changes from gitlab-org/gitlab@master 2020-04-06 18:09:37 +00:00
GitLab Bot cbfe03ae04 Add latest changes from gitlab-org/gitlab@master 2020-03-16 12:09:12 +00:00
GitLab Bot 6a7cc8c147 Add latest changes from gitlab-org/gitlab@master 2019-12-05 18:07:51 +00:00
GitLab Bot 8f210aebe1 Add latest changes from gitlab-org/gitlab@master 2019-10-31 21:06:28 +00:00
GitLab Bot 8c7eab92cd Add latest changes from gitlab-org/gitlab@master 2019-10-23 03:06:01 +00:00
GitLab Bot 25989ab7ef Add latest changes from gitlab-org/gitlab@master 2019-10-18 11:11:44 +00:00
GitLab Bot da35510cda Add latest changes from gitlab-org/gitlab@master 2019-10-17 21:06:41 +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
Rémy Coutable 8708c720c5
[CE] Reduce diff with EE in spec/models/project_wiki_spec.rb
Signed-off-by: Rémy Coutable <remy@rymai.me>
2019-04-02 10:22:49 +02:00
Thong Kuah a2cfc150ce Add # frozen_string_literal to spec/models
Adds `# frozen_string_literal: true` to spec/models ruby files
2019-04-01 14:37:54 +13:00
Stan Hu da18211fec Fix Error 500 when user commits Wiki page with no commit message
Previously if a user submitted a blank commit message, Gitaly would
error out with `3:WikiWritePage: empty CommitDetails.Message` since
Gitaly checks whether any content is present for the message. We now
use a default commit message if a user leaves it blank.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/59065
2019-03-16 21:32:22 -07:00
Stan Hu b103f61450 Add convenience methods for creating project and Wiki repositories
This makes it easier to access other project arguments in the future.
2019-02-05 21:33:10 -08:00
Stan Hu 82b6e5378a Send project name with Gitaly repository requests
When hashed storage is in use, it's helpful to have the project
name associated with the request.

Closes https://gitlab.com/gitlab-org/gitaly/issues/1394
2019-02-05 21:33:09 -08:00
Zeger-Jan van de Weg 16346eb5b9 Revert "Merge branch 'revert-e2aa2177' into 'master'"
This reverts merge request !23229
2018-11-20 12:29:56 +00:00
Sean McGivern 2742b871fe Revert "Merge branch 'zj-improve-gitaly-pb' into 'master'"
This reverts merge request !23140
2018-11-20 10:36:52 +00:00
Zeger-Jan van de Weg 4ca5eadddb
Remove duplicate tests for Gitaly
The disabling of Gitaly was basically stubbing `Feature.enabled?` call,
which was never triggered.
2018-11-19 14:40:53 +01:00
George Tsiolis 733ae94921 Fix typos in comments and specs 2018-11-01 08:59:20 +02:00
Nick Thomas 5a88391579
Guard against regressions in commit email specs 2018-09-18 12:04:49 +01:00
Nick Thomas e35fc8b929
Use commit email for wiki actions 2018-09-17 14:36:22 +01:00
Lin Jen-Shin d9f26586b4 Merge remote-tracking branch 'upstream/master' into 14995-custom_wiki_sidebar
* upstream/master: (467 commits)
  Update docs board features tier
  Upgrade grape-path-helpers to 1.0.6
  Remove healthchecks from prometheus endpoint
  Fix find_branch call sites
  Ensure Encoding.default_external is set to UTF-8 when running QA scenarios
  i18n: externalize strings from 'app/views/admin/groups'
  Backport mr widget changes from EE
  Allow to toggle notifications for issues due soon
  Vuex test helper improvements
  whitespace
  Make more ref RPC's mandatory
  Resolve "Improve performance of MR Changes tab: reduce event listeners on scroll event"
  Remove old service architecture from Vue docs
  Adding spec to test basic forking functionalities
  Fix performance problem of accessing tag list for projects api endpoints
  typo
  Add sleep to QA test before installing tiller
  Include Vue files that are not covered by tests in test coverage
  Remove Repository#path memoization
  Resolve "do not set updated_at when creating note"
  ...
2018-07-13 17:34:27 +08:00
Stan Hu 081264f186 Optimize ProjectWiki#empty? check
The `empty?` check was iterating over all Wiki pages to determine
whether it was empty. Using the limit parameter allows us to bail
out early once we found a page.

Note that this currently only improves performance for GitLab 11.0
until https://gitlab.com/gitlab-org/gitaly/issues/1204 is fixed.

Relates to #40101
2018-07-12 01:00:15 -07:00
Lin Jen-Shin 849f9995d9 Merge remote-tracking branch 'upstream/master' into 14995-custom_wiki_sidebar
* upstream/master: (4180 commits)
  Enable frozen string literals for app/workers/*.rb
  Resolve "Search dropdown hides & shows when typing"
  Revert merge request widget button max height
  Update CHANGELOG.md for 11.0.2
  Update external link icon in header user dropdown
  Added Diff Viewer to new VUE based MR page
  Fixed eslint failure in IDE spec helpers
  Use refs instead of querySelector.
  Show file in tree on WebIDE open
  Resolve "Remove unused bootstrap component CSS"
  Resolve "Explain what Groups are in the New Group page"
  [QA] Make sure we wait for the deploy key list to load
  Update _scopes_form.html.haml to remove duplicate information
  Use the branch instead of the tag to install
  port the EE changes
  Add index on deployable_type/id for deployments
  Add a helper to rename a column using a background migration
  Fix performance bottleneck when rendering large wiki pages
  Port Namespace#root_ancestor to CE
  Remove duplicate spec
  ...
2018-06-27 16:15:06 +08:00
Jacob Vosmaer (GitLab) 5cf5680f9c Deny repository disk access in development and test 2018-06-14 11:18:25 +00:00
Ahmad Sherif 9d799ccacf Fix finding wiki pages when they have invalidly-encoded content
Fixes #43715
2018-05-09 18:03:03 +02:00
Zeger-Jan van de Weg 92482e01b4
Bump Gitaly to 0.98.0
Hooks were run for wikis, but given the internal API wasn't responding
failures happended, as seen on:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/18693
2018-05-07 14:10:04 +02:00
Zeger-Jan van de Weg ec4423665c
Gitlab::Shell works on shard name, not path
Direct disk access is done through Gitaly now, so the legacy path was
deprecated. This path was used in Gitlab::Shell however. This required
the refactoring in this commit.

Added is the removal of direct path access on the project model, as that
lookup wasn't needed anymore is most cases.

Closes https://gitlab.com/gitlab-org/gitaly/issues/1111
2018-04-25 13:36:22 +02:00
Francisco Javier López e8a27a67fa Fix Custom hooks are not triggered by UI wiki edit 2018-04-18 17:50:56 +00:00
Ahmad Sherif f61121225e Fix finding wiki file when Gitaly is enabled
Fixes gitaly#1126
2018-04-11 16:08:51 +02:00
Lin Jen-Shin ef6b3e0271 Introduce #find_sidebar and use a constant to find the page 2018-03-26 17:16:01 +08:00
Zeger-Jan van de Weg 77f0906e4c
Change Gitlab::Shell#add_namespace to #create_namespace
Prior to this change, this method was called add_namespace, which broke
the CRUD convention and made it harder to grep for what I was looking
for. Given the change was a find and replace kind of fix, this was
changed without opening an issue and on another feature branch.

If more dynamic calls are made to add_namespace, these could've been
missed which might lead to incorrect bahaviour. However, going through
the commit log it seems thats not the case.
2018-03-14 09:56:22 +01:00
Dmitriy Zaporozhets 86df5c6793
Replace deprecated path_with_namespace with full_path
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2018-03-05 15:41:54 +02:00
Ahmad Sherif be26c4e728 Encode GitalyClient::WikiPage attributes to UTF-8 2018-02-05 12:29:02 +01:00
Gabriel Mazetto f4c7fea613 Fix dumping hashed storage based repository 2017-11-15 15:20:36 +01:00
Ahmad Sherif 56e53556c5 Migrate Gitlab::Git::Wiki#file to Gitaly
Closes gitaly#689
2017-10-31 20:49:41 +02:00
Ahmad Sherif 964cbb67da Migrate Gitlab::Git::Wiki#page to Gitaly
Closes gitaly#677
2017-10-31 18:28:54 +02:00
Ahmad Sherif b3a0166203 Migrate Gitlab::Git::Wiki#delete_page to Gitaly
Closes gitaly#673
2017-10-31 13:47:34 +02:00
Ahmad Sherif fa5eeaecfb Migrate Gitlab::Git::Wiki#write_page to Gitaly
Closes gitaly#638
2017-10-16 15:53:48 +02:00
Jacob Vosmaer (GitLab) 5dd26d4e5a Hide Gollum inside Gitlab::Git::Wiki 2017-10-03 16:58:33 +00:00
Robert Speicher f8d34ab5ab Merge branch 'wiki_title' into 'master'
add feature rename wiki title

Closes #27800

See merge request !10069
2017-08-07 16:37:44 +00:00
wendy0402 29be4e0f58 Allow wiki pages to be renamed in the UI 2017-08-03 07:38:11 +07:00