An error occurred fetching the project authors.
- 26 Apr, 2021 1 commit
-
-
Shubham Kumar authored
-
- 21 Apr, 2021 1 commit
-
-
Francisco Javier López authored
In this commit we remove the feature flag :gitaly_replace_wiki_destroy_page to enable the new RPC to destroy wiki pages. Changelog: changed
-
- 07 Apr, 2021 1 commit
-
-
Francisco Javier López authored
In this commit we remove the feature flag gitaly_find_file, that will remove entirely the old RPC wiki_find_page and use the new one.
-
- 17 Mar, 2021 1 commit
-
-
Francisco Javier López authored
In this commit we add a feature flag to toggle between the existing wiki_delete_page and the new functionality with different RPCs.
-
- 12 Mar, 2021 1 commit
-
-
Francisco Javier López authored
In this commit we introduce a feature flag that will toggle using the RPC or the new Gitaly method.
-
- 11 Mar, 2021 1 commit
-
-
Zeger-Jan van de Weg authored
Gitaly will find Wiki files is requested to do so, and by default if no revision is set, it will set the revision to `master`. Given the Git community is moving towards `main` instead, this change sets the default to HEAD. This works as GitLab stores repositories in their bare format, and effectively there's no HEAD. Git itself really likes there to be a HEAD, and this thus points to the default branch name. Nowadays usually `refs/heads/master`, in the future probably: `refs/heads/main`.
-
- 12 Feb, 2021 1 commit
-
-
Francisco Javier López authored
-
- 25 Jan, 2021 1 commit
-
-
Francisco Javier López authored
In this commit we extract the existing logic of the `GitGarbageCollectWorker` into a concern, in order to reuse it later with the new wiki garbage collector that we're introding as well in this commit.
-
- 19 Jan, 2021 1 commit
-
-
Francisco Javier López authored
In this commit we're moving the `Projects::HousekeepingService` to `HousekeepingService`. We're doing this because we're going to reuse it with other resources like project and group wikis. We cannot remove the service class entirely because during deployment there can be jobs calling the old class.
-
- 13 Jan, 2021 1 commit
-
-
Francisco Javier López authored
-
- 05 Oct, 2020 1 commit
-
-
Markus Koller authored
Before we started working on group wikis, `ProjectWiki` used a `Project` instance as the container of its `Repository` instance, so for group wikis we did the same with `Group`. This initially made sense and also mostly aligned with the semantics for `Repository#container`, but while working on wiki diffing [1] we noticed that the `Commit` and `Blob` classes sometimes use `container#repository`, which breaks some assumptions and also causes redundant Gitaly calls to the project repository when diffing wikis. Refactoring those classes is a lot riskier and would affect other features too, so in this commit we're instead changing the `Repository#container` to be the wiki instance, rather than the project or group. This generally seems to make sense anyway, and only needs some small adjustments. To satisfy the interface for `Repository#container`, we need to add or tweak some methods: - `Wiki.find_by_id` - `Wiki#id` - `Wiki#to_global_id` We also still need to be able to resolve wiki repositories from their containers, this is handled in the repository resolver for `Gitlab::GlRepository::WIKI`. [1] https://gitlab.com/gitlab-org/gitlab/-/merge_requests/35330
-
- 25 Sep, 2020 1 commit
-
-
Luke Duncalfe authored
Locally the spec has reduced from ~45s to ~14s. We used to spend ~35s creating 416 factories, and we now spend ~3s creating 43 factories.
-
- 24 Sep, 2020 1 commit
-
-
Markus Koller authored
Replaces `WikiPage.group_by_directory` with `WikiDirectory.group_pages`, which groups the pages recursively by their path. The views were already set up for recursive partials, so we only had to change them to show the basename of each directory, rather than their full path. This is done through a new `WikiDirectory#title` helper.
-
- 09 Sep, 2020 1 commit
-
-
Markus Koller authored
This prepares the service and worker classes for post-processing of group wikis, though we're not actually implementing any custom behaviour for group wikis yet. Wiki models: - Move `HasWiki#after_wiki_activity` into `Wiki#after_wiki_activity`, and add `Wiki#after_post_receive` for container-specific background processing. PostReceive worker: - Move project-specific code into `ProjectWiki#after_post_receive`. - Tweak check for project snippets with a missing project, to avoid catching group wikis. - Remove redundant specs for ES indexing, which is already covered elsewhere. Git::WikiPushService (also in EE): - Change the service to take the wiki as its main argument. - For group wikis, don't attempt to create events, index Elasticsearch, or run Geo services.
-
- 07 Sep, 2020 1 commit
-
-
James Fargher authored
Moves default "current" repository access to GlRepository rather than in each specific container.
-
- 14 Aug, 2020 1 commit
-
-
Alex Kalderimis authored
This adds a concept of `default_actor` that `HasWiki` instances must implement. This is implemented differently for projects and groups. The contract is that `default_actor` must return a User with ownership privileges over the object. Wiki Owner differs from Owner of these models as wiki_owner must have the type `User`, but `Project#owner` can be a `Group` for instance. Groups can have many owners, so we select the first one, before ascending the chain of parent groups. This is vital since otherwise `HasWiki#wiki` will return wikis that cannot save their own pages.
-
- 04 Jun, 2020 1 commit
-
-
Markus Koller authored
This was a bug introduced in fe5533a7. Previously we were building the path manually and had to also include `Gitlab.config.gitlab.relative_url_root`, but since we're using route helpers now it's already included via `default_url_options`, which resulted in a duplicated root in the URL.
-
- 14 May, 2020 1 commit
-
-
Markus Koller authored
- Add new `GroupWikiRepository` table. - Track shard and disk path when creating a group wiki repository.
-
- 27 Apr, 2020 1 commit
-
-
Markus Koller authored
The existing code had two problems: - We were only counting toplevel entries, not individual pages. - We were showing the "View All Pages" button when the number of pages exactly matches the limit, even when there are no further pages. This is now resolved by loading one page more than the limit, and using the result count to determine if we have more pages.
-
- 16 Apr, 2020 1 commit
-
-
Markus Koller authored
- Refactor existing `ProjectWiki` into `Wiki`, and add new child classes `ProjectWiki` and `GroupWiki`. - Rename `project` to `container` in the wiki classes. - Add `HasWiki` concern for use in `Project` and `Group`. - Add `@groups` prefix in `Storage::Hashed`. - Refactor existing specs into shared examples.
-
- 07 Apr, 2020 1 commit
-
-
Markus Koller authored
This replaces the previous methods`Gitlab::Shell.url_to_repo` and `HasRepository#http_url_to_repo`.
-
- 06 Apr, 2020 1 commit
-
-
Markus Koller authored
- Add support for projects and groups. - Add support for building path-only URLs. - Reuse it in `HasRepository#web_url`. - Remove state and turn the class into a singleton. - Provide a default instance in presenters. - Rewrite specs with parameterized table syntax.
-
- 03 Apr, 2020 1 commit
-
-
Markus Koller authored
- Use `association()` instead of `create()` in association blocks, to avoid enforcing the builder strategy. - Pass on `project` in association blocks instead of `after` callbacks. - Add `has_internal_id` trait to generate IIDs on stubbed models. - Add `ProjectWiki#id` accessor. - Rename `discussion_note_on_snippet` to `*_project_snippet`, for consistency with the `note_*` factories. - Add `#sha` on stubbed commits in `RepoHelpers`.
-
- 18 Mar, 2020 1 commit
-
-
Alex Kalderimis authored
Exposes `@user` as `user`, so that the current page author can be identified. Change equality to match other DB objects: pages with equal slugs are equal.
-
- 13 Mar, 2020 2 commits
-
-
Nick Thomas authored
Project repository and wiki repository creation was indirected through Gitlab::Shell unnecessarily. `GitlabShell#create_repository` build an (incomplete) `Gitlab::Git::Repository` to run the creation code, but all users already had access to `Repository` instances.
-
Nick Thomas authored
This method is a static transformation of its arguments so it makes more sense as a class method - no need for a Gitlab::Shell instance. This allows us to remove `Gitlab::ShellAdapter` from a few places.
-
- 03 Mar, 2020 1 commit
-
-
Markus Koller authored
- Add specs for handling of special characters. - Fix `title_changed?` for all cases. - Remove redundant `persisted` argument. - Don't unescape title returned by gollum, it's not escaped anymore now.
-
- 25 Feb, 2020 1 commit
-
-
Nick Thomas authored
This makes a transitive dependency direct, and is a first step towards removing `::Repository#{project,container}`
-
- 27 Jan, 2020 1 commit
-
-
Francisco Javier López authored
The repository disk path does't include any suffix but GlRepository automatically adds it unless it is a project one. Since we're adding more repository types that won't include any suffix and aren't a project type either, we need a way to set this.
-
- 20 Jan, 2020 1 commit
-
-
Francisco Javier López authored
In https://gitlab.com/gitlab-org/gitlab/issues/39176 we're allowing resources other than projects to have repositories attached. Therefore, we need to refactor those places where we use project because it can also be a snippet. Besides, we need to abstract this variable to something like repositorable. In this commit we rename the method GlRepository::RepoType#identifier_for_subject to identifier_for_repositorable to align with this.
-
- 16 Jan, 2020 1 commit
-
-
Alexander Oleynikov authored
-
- 05 Dec, 2019 1 commit
-
-
Dmitriy Zaporozhets authored
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
-
- 05 Nov, 2019 1 commit
-
-
Zeger-Jan van de Weg authored
This RPC has gone unused as far as I can see, so I'm removing it to decrease the API surface for Gitaly.
-
- 31 Oct, 2019 1 commit
-
-
Alex Kalderimis authored
This reverts commit d8fafdf5.
-
- 23 Oct, 2019 1 commit
-
-
Alex Kalderimis authored
This uses an intermediate index to transform the function from `O(n^2)` to `O(n.logn)`, which will be very important for large wikis with lots of directories, which is definitely something we want to support.
-
- 21 Oct, 2019 1 commit
-
-
allison.browne authored
-
- 17 Oct, 2019 2 commits
-
-
Michael Kozono authored
-
Michael Kozono authored
It replaces everything before the repo-specific path.
-
- 20 Aug, 2019 1 commit
-
-
Luke Duncalfe authored
Previously we asked a user to enter a new slug before taking them to the Create Page page. As a UX improvement, we now take them to a randomly generated URI so they can begin creating their new page. https://gitlab.com/gitlab-org/gitlab-ce/issues/46299
-
- 30 Jul, 2019 1 commit
-
-
Yorick Peterse authored
All instances of injecting an EE specific module have been changed to use the new methods for this: prepend_if_ee, extend_if_ee, and include_if_ee. This allows these lines to be included in CE, even when the modules to inject do not exist. This in turn allows us to backport these lines to CE and keep them there, instead of having to strip them out.
-