Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-12-13Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-11-19Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-10-10Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-09-26Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-09-20Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-09-13Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-09-04Avoid calling freeze on already frozen strings in lib/gitlabdineshpanda
2019-08-09Add a field for released_at to GH importerCindy Pallares 🦉
2019-07-26Merge branch 'security-github-ssrf-redirect' into 'master'GitLab Release Tools Bot
Do not allow localhost url redirection in GitHub Integration See merge request gitlab/gitlabhq!3188
2019-07-10Add a rubocop for Rails.loggerMayra Cabrera
Suggests to use a JSON structured log instead Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/54102
2019-07-05Do not allow localhost url redirection in GitHub Integrationmanojmj
2019-05-31Setup Phabricator importBob Van Landuyt
This sets up all the basics for importing Phabricator tasks into GitLab issues. To import all tasks from a Phabricator instance into GitLab, we'll import all of them into a new project that will have its repository disabled. The import is hooked into a regular ProjectImport setup, but similar to the GitHub parallel importer takes care of all the imports itself. In this iteration, we're importing each page of tasks in a separate sidekiq job. The first thing we do when requesting a new page of tasks is schedule the next page to be imported. But to avoid deadlocks, we only allow a single job per worker type to run at the same time. For now we're only importing basic Issue information, this should be extended to richer information.
2019-05-06Fix issuables state_id nil when importing projects from GitHubFelipe Artur
Issues and merge requests imported from GitHub are having state_id set to null. This fixes the GitHub project importer and schedule migrations to fix state_id.
2019-05-05Run rubocop -a on CE filesStan Hu
2019-04-07GitHub import: Run housekeeping after initial importStan Hu
After an initial fetch, the repository will have many loose objects and refs. Running a `git gc` will compact refs into `packed-refs` and objects into `.pack` files, which should make importing pull requests faster. Part of https://gitlab.com/gitlab-org/gitlab-ce/issues/59477
2019-03-23GitHub importer: Use the project creator to create branches from forksStan Hu
The project owner may actually be a group, in which case the branch creation would fail due to a lack of username. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/59396
2019-03-22Set proper default-branch on GitHub ImportKamil Trzciński
2019-03-19GitHub import: Create new branches as project ownerStan Hu
This avoids permission errors when importing merge requests whose authors don't have direct access to push to the main repository.
2019-02-26Protect against nil due_on value in imported dataDiana Stanley
2019-02-21Capture due date when importing milestones from GithubDiana Stanley
2019-02-12Create the source branch for a GitHub importStan Hu
When the GitHub importer creates a merge request, it retrieves the SHA but does not actually create the source branch. This makes it impossible to merge an open merge request, particularly if the source branch were from a forked project. In that case, the branch will never exist because the original `project-name:source-branch` name is never created, nor is it a valid branch name. To prevent possible branch name conflicts, forked source branches are now renamed `github/fork/project-name/source-branch` and created when necessary. Note that we only create the source branch if the merge request is open. For projects that have many merge requests, the project would end up with a lot of possibly dead branches. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/57370
2019-02-06Refactor use of Shell.import_repository for WikisStan Hu
The previous behavior would pass in a list of parameters to Shell, but we can improve this by using the WikiFormatter and Project models to give us the same information.
2019-02-06Send project name with Gitaly repository requestsStan Hu
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-01-31Added validations to prevent LFS object forgeryFrancisco Javier López
2019-01-29Revert "Trigger iid logic from GitHub importer for issues."Andreas Brandl
This reverts commit b78a69b06c165f7a463d5e0de69030346d9d5c72.
2019-01-29Revert "Trigger iid logic from GitHub importer for milestones."Andreas Brandl
This reverts commit 358675d09f6ba0fdcc4a089c6d1da6df9ff6d092.
2018-11-27Removes all the irrelevant import related code and columnsTiago Botelho
Clears the import related columns and code from the Project model over to the ProjectImportState model
2018-09-11Disable existing offenses for the CodeReuse copsYorick Peterse
This whitelists all existing offenses for the various CodeReuse cops, of which most are triggered by the CodeReuse/ActiveRecord cop.
2018-08-29Updates code using class_methods over module ClassMethodsJacopo
2018-08-24Refactor GitHub Importer database helpers into helper methodsStan Hu
This in preparation for addressing idle-in-transaction timeouts for other importers. Part of #50021
2018-08-20Refactor AutocompleteControllerYorick Peterse
This refactors the AutocompleteController according to the guidelines and boundaries discussed in https://gitlab.com/gitlab-org/gitlab-ce/issues/49653. Specifically, ActiveRecord logic is moved to different finders, which are then used in the controller. View logic in turn is moved to presenters, instead of directly using ActiveRecord's "to_json" method. The finder MoveToProjectFinder is also adjusted according to the abstraction guidelines and boundaries, resulting in a much more simple finder. By using finders (and other abstractions) more actively, we can push a lot of logic out of the controller. We also remove the need for various "before_action" hooks, though this could be achieved without using finders as well. The various finders related to AutcompleteController have also been moved into a namespace. This removes the need for calling everything "AutocompleteSmurfFinder", instead you can use "Autocomplete::SmurfFinder".
2018-08-16 Trigger iid logic from GitHub importer for merge requests.Andreas Brandl
2018-08-16Trigger iid logic from GitHub importer for milestones.Andreas Brandl
2018-08-16Trigger iid logic from GitHub importer for issues.Andreas Brandl
2018-06-21Don't expose project names in various countersYorick Peterse
Various counters would expose either project names, or full project paths (e.g. "gitlab-org/gitlab-ce"). This commit changes various places where we use "add_event" so we no longer expose (potentially) private information.
2018-06-13Bring changes from EE for parallel_importer.rbLin Jen-Shin
2018-06-12Ensure MR diffs always exist in the PR importerYorick Peterse
In rare cases it could happen that an MR was created, but creating the MR diffs somehow failed (e.g. due to an error). This commit adds an additional check to make sure MR diffs are always present when importing GitHub pull requests.
2018-06-11Expire Wiki content cache after importing a repositoryStan Hu
The cache state for Wikis that were imported via GitHub or Bitbucket does not appear to have been flushed after a successful import. Closes #47546
2018-06-06Support LFS objects when creating a project by importFrancisco Javier López
2018-06-04Perform pull request IO work outside a transactionYorick Peterse
When importing a GitHub pull request we would perform all work in a single database transaction. This is less than ideal, because we perform various slow Git operations when creating a merge request. This in turn can lead to many DB connections being used, while just waiting for an IO operation to complete. To work around this, we now move most of the heavy lifting out of the database transaction. Some extra error handling is added to ensure we can resume importing a partially imported pull request, instead of just throwing an error. This commit also changes the specs for IssueImporter so they don't rely on deprecated RSpec methods.
2018-05-04Backports every CE related change from ee-44542 to CETiago Botelho
2018-04-03Use shard name in Git::GitlabProjects instead of shard pathAhmad Sherif
Closes gitaly#1110
2018-03-27Test if remote repository exists before cloningZeger-Jan van de Weg
When a repository does not exist on a remote, Gitaly won't be able to clone it. This is correct behaviour, but from the clients perspective a change in behaviour. This change implements the client side changes that allows Gitaly to execute a `git ls-remote <remote-url> HEAD`. This way the client has no need to shell out to Git. In the situation where multiple Gitalies are available, one is chosen at random. This commit closes https://gitlab.com/gitlab-org/gitlab-ce/issues/43929, while its also a part of https://gitlab.com/gitlab-org/gitaly/issues/1084
2018-03-13Fix provider server URL used when listing repos to importRubén Dávila
Also use Gitlab::Auth::OAuth::Provider.config_for to access OmniAuth config
2018-02-19[GH Import] Create an empty wiki if wiki import failedValery Sizov
2018-01-31Enable RuboCop Style/RegexpLiteralTakuya Noguchi
2018-01-25Look for rugged with static analysisJacob Vosmaer
2018-01-12Introduce PredicateMemoization cop and fix offensesLin Jen-Shin
with StrongMemoize
2017-12-20Migrate to Project#empty_repo?Zeger-Jan van de Weg
2017-11-23Rename fetch_refs to refmapDouwe Maan