Commit Graph

48 Commits

Author SHA1 Message Date
Evan Read eb86630959 Ensure all lists are surrounded by new lines
Markdown renderers find it easier to determine
where lists start and end when lists are surrounded
by new lines.

For consistency, also ensure entries in the list
are aligned when they span multipls lines.
2019-02-22 13:17:10 +00:00
Marcel Amirault e42f265d87 Linking to backup doc from migration doc, for self-hosted to self-hosted migration 2019-01-25 11:48:51 +00:00
Evan Read c2c2d04b3a Fix most instances of bare URLs in markdown 2019-01-24 06:52:33 +00:00
Evan Read d98560c1f5 Make unordered lists conform to styleguide
- Also makes other minor Markdown fixes that were near the main fixes.
2019-01-08 12:21:09 +10:00
Sisavath e21ef238dd [fix] correct typo in repo_by_url.md 2018-12-29 11:31:49 +00:00
Jason Colyer 7c84f6eacc Fixed typo in bitbucket import 2018-12-04 14:52:55 -06:00
Cynthia Ng c900d58849 minor: format fix for GH import page 2018-11-16 18:18:32 +00:00
Evan Read 20146580a0 Resolve Markdown ordered lists not conforming to styleguide 2018-11-13 10:53:38 +10:00
Dmitriy Zaporozhets b6a315d099 Merge branch 'docs/more-url-fixes' into 'master'
Fix some links and Markdown

See merge request gitlab-org/gitlab-ce!22972
2018-11-12 09:45:15 +00:00
Evan Read 34011616d0 Fix some links and Markdown 2018-11-12 14:56:44 +10:00
Evan Read 35a72dff5f Update URLs to better ones 2018-11-09 14:41:54 +10:00
Stan Hu e2b6d8dec1 Link Bitbucket Server from import index page 2018-11-01 08:48:49 -07:00
Evan Read bfd281a06b Fix links to external site and minor Markdown improvements 2018-10-04 09:28:12 +10:00
Logan Schmidt 7316ee038d
Fixed a broken anchor link to "Git/SVN Mirror"
Originally submitted at
https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/6443.

Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-08-29 17:35:36 +02:00
Achilleas Pipinellis 8dbcd11075
Compress all PNG images under doc/
The pngquant tool was used https://pngquant.org, and particularly, the
following command:

        /usr/bin/pngquant -f --skip-if-larger --ext .png --speed 1 image.png

Before: 47584K
After : 34924K
2018-08-27 15:52:03 +02:00
Achilleas Pipinellis 1e2918eb10
Add when manifest feature was introduced 2018-08-16 17:56:00 +02:00
Achilleas Pipinellis 935bc24eb4 Improve project manifest import docs 2018-08-16 15:49:57 +00:00
Achilleas Pipinellis 3fa365611d
Add introduced section 2018-08-09 10:59:59 +02:00
Achilleas Pipinellis a3e17325ea
Copyedit Bitbucket docs 2018-08-09 10:57:49 +02:00
Stan Hu b884a2e53c Add Bitbucket Server importer docs
Add details for https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/20164.
2018-08-08 15:25:25 -07:00
Dmitriy Zaporozhets 74af876737
Add small improvement to Manifest import feature docs
1. Add link to manifest used by AOSP
2. Mention both Android and AOSP keyword for better search

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2018-07-16 12:09:43 +03:00
Dmitriy Zaporozhets ac07634efa Fix a link to subgroup doc from manifest doc
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2018-07-11 12:22:57 +03:00
Dmitriy Zaporozhets 6743147b7d Improve manifest feature after backend review
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2018-07-11 12:22:57 +03:00
Dmitriy Zaporozhets 97751ca19f Rename button at manifest import form
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2018-07-11 12:22:57 +03:00
Dmitriy Zaporozhets a4b6707e63 Refactor manifest import code
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2018-07-11 12:22:57 +03:00
Dmitriy Zaporozhets b42b3796ae Add documentation for manifest import feature
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2018-07-11 12:22:57 +03:00
John Woods a8f6737df2 Resolve "Change the BitBucket import page to indicate that its for BB Cloud only, not for on-prem BB" 2018-06-25 07:56:05 +00:00
James Ramsay ba36df2ff6 Update import screenshot without LFS warning
Support for LFS object import was added by gitlab-org/gitlab-ce!18871
and should be reflected in the documentation.
2018-06-11 16:32:00 -04:00
Imre Farkas e6d8faf6fa
Update doc for maintaining project visibility during Github import 2018-06-07 13:30:16 +02:00
Achilleas Pipinellis 8197c756b1
Copyedit GitHub importer docs 2018-06-04 12:15:42 +02:00
Mike Lewis 20b04cc07e
Update GitHub import instructions (github.md) 2018-06-04 12:15:42 +02:00
Achilleas Pipinellis ce12b60e97 Merge branch 'patch-28' into 'master'
perforce.md: add note about repacking

See merge request gitlab-org/gitlab-ce!17373
2018-03-06 11:04:43 +00:00
Eric Eastwood 32d121343d CI/CD-only projects FE
See https://gitlab.com/gitlab-org/gitlab-ee/issues/3839

Conflicts:
	app/assets/javascripts/projects/project_new.js
	app/views/shared/_import_form.html.haml
	ee/app/controllers/ee/projects_controller.rb
	ee/spec/features/projects/new_project_spec.rb
	locale/gitlab.pot
2018-03-05 13:26:34 -06:00
Christian Couder cc7b50265a perforce.md: add note about repacking 2018-03-01 16:38:43 +01:00
Rory O’Kane a306c1957e Fix spelling of “discrepancy” in GitHub→GitLab project import docs 2018-02-02 23:38:09 +00:00
Yorick Peterse 4dfe26cd8b
Rewrite the GitHub importer from scratch
Prior to this MR there were two GitHub related importers:

* Github::Import: the main importer used for GitHub projects
* Gitlab::GithubImport: importer that's somewhat confusingly used for
  importing Gitea projects (apparently they have a compatible API)

This MR renames the Gitea importer to Gitlab::LegacyGithubImport and
introduces a new GitHub importer in the Gitlab::GithubImport namespace.
This new GitHub importer uses Sidekiq for importing multiple resources
in parallel, though it also has the ability to import data sequentially
should this be necessary.

The new code is spread across the following directories:

* lib/gitlab/github_import: this directory contains most of the importer
  code such as the classes used for importing resources.
* app/workers/gitlab/github_import: this directory contains the Sidekiq
  workers, most of which simply use the code from the directory above.
* app/workers/concerns/gitlab/github_import: this directory provides a
  few modules that are included in every GitHub importer worker.

== Stages

The import work is divided into separate stages, with each stage
importing a specific set of data. Stages will schedule the work that
needs to be performed, followed by scheduling a job for the
"AdvanceStageWorker" worker. This worker will periodically check if all
work is completed and schedule the next stage if this is the case. If
work is not yet completed this worker will reschedule itself.

Using this approach we don't have to block threads by calling `sleep()`,
as doing so for large projects could block the thread from doing any
work for many hours.

== Retrying Work

Workers will reschedule themselves whenever necessary. For example,
hitting the GitHub API's rate limit will result in jobs rescheduling
themselves. These jobs are not processed until the rate limit has been
reset.

== User Lookups

Part of the importing process involves looking up user details in the
GitHub API so we can map them to GitLab users. The old importer used
an in-memory cache, but this obviously doesn't work when the work is
spread across different threads.

The new importer uses a Redis cache and makes sure we only perform
API/database calls if absolutely necessary.  Frequently used keys are
refreshed, and lookup misses are also cached; removing the need for
performing API/database calls if we know we don't have the data we're
looking for.

== Performance & Models

The new importer in various places uses raw INSERT statements (as
generated by `Gitlab::Database.bulk_insert`) instead of using Rails
models. This allows us to bypass any validations and callbacks,
drastically reducing the number of SQL queries and Gitaly RPC calls
necessary to import projects.

To ensure the code produces valid data the corresponding tests check if
the produced rows are valid according to the model validation rules.
2017-11-07 23:24:59 +01:00
Lyle Kozloff f667f74968 Changing the smallest of typos 2017-10-24 05:58:38 +00:00
Lee Matos cc35c64207 Update github.md importer docs to clarify branches from forks get created in GL 2017-10-05 11:26:21 +00:00
Achilleas Pipinellis 0aa4db5fe7 Remove duplicate entry, order tools by name 2017-09-06 16:59:55 +02:00
Achilleas Pipinellis 5e6b5832ea Merge branch 'master' into 'docs/migrating-from-tfs'
# Conflicts:
#   doc/user/project/import/index.md
2017-09-06 14:56:13 +00:00
Achilleas Pipinellis 794e37661d Make clear changeset vs snapshot method 2017-09-06 15:51:05 +02:00
Achilleas Pipinellis b0476ccfa6 Add TFS migration docs 2017-09-06 15:51:05 +02:00
Achilleas Pipinellis e7bfd4ae13 Make clear changeset vs snapshot method. Also typos. 2017-09-06 15:46:57 +02:00
Achilleas Pipinellis 0a835fbc61 Add CVS migration guide 2017-09-06 15:46:57 +02:00
Achilleas Pipinellis c11278de42 Add vs heading in perforce doc 2017-08-30 09:59:56 +02:00
Achilleas Pipinellis 5cac1456c9 Add perforce migration doc 2017-08-29 13:03:14 +02:00
Achilleas Pipinellis fc6fe136f9 Add docs: migrating from Clearcase to Git/GitLab 2017-08-18 18:25:56 +03:00
Achilleas Pipinellis bbd627c548 Move workflow/importing/ to user/project/import/ 2017-08-17 17:18:33 +03:00