Commit Graph

199 Commits

Author SHA1 Message Date
Vasyl Vavrychuk 9084418774 corrected git cheat sheet url
Previous one returned HTTP 404. It was discussed in http://gitlab.com/gitlab-com/marketing/general/issues/1966
that it is preffered to use /press based git cheat sheet pdf because it
is opened in browser's pdf viewer by default rather than downloaded.
2018-04-15 13:16:00 +03:00
Achilleas Pipinellis 4bc38c414e
Link Monitor docs to the front page 2018-04-11 14:25:29 +02:00
Marcia Ramos fe399402df Replaces "Libre" => "Core" 2018-03-28 15:13:47 -03:00
Marcia Ramos 4efa5c4fd6 Docs organize main page by product category 2018-03-26 14:48:39 +00:00
Felipe Artur dd071c4b6e Bring one group board to CE 2018-03-03 12:56:17 -03:00
Marcia Ramos 5d74be2163 Docs: explain feature availability in GitLab.com 2018-02-28 15:30:31 +00:00
Marcia Ramos 650d11beb4 Docs: search/replace "Enterprise Edition" and adjust when applicable 2018-02-22 16:13:35 +00:00
Marcia Ramos ece547f4f9 Docs: update GitLab products description 2018-02-01 19:49:07 +00:00
Onuwa Nnachi Isaac d2aaf036a4 Fix: fix typo to open source 2018-01-18 14:36:06 +00:00
Marcia Ramos d30202f5d2 fix typo 2017-12-07 15:33:51 -02:00
Marcia Ramos de4f2a6e82 Docs: admin index 2017-12-07 15:09:22 +00:00
Marcia Ramos 40b306a530 Docs: add EEU tier to the landing page 2017-12-07 13:29:48 +00:00
Markus Koller b8a3931925
Add custom brand text on new project pages 2017-12-04 17:22:59 +01: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
Achilleas Pipinellis 69b4c5c011 Exclude comments from specific docs 2017-11-01 15:56:40 +00:00
Connor Shea 0011d8740f Simple docs fixes 2017-10-23 14:11:51 +00:00
Marcia Ramos 1530457eca index project settings doc from other indexes 2017-09-08 12:40:15 -03:00
Marcia Ramos 56fbff8ce5 Docs new index for project's settings 2017-09-08 14:08:07 +00:00
Achilleas Pipinellis d98b6a6fbf Add Auto DevOps docs 2017-09-07 20:39:09 +00:00
Simon Knox b9aa55e1ea Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce into ee_issue_928_backport 2017-09-06 14:35:58 +10:00
Achilleas Pipinellis c740d3de28 Deprecate Koding in docs 2017-09-01 18:27:16 +02:00
Felipe Artur 8077b728bc Continue BE backport 2017-08-31 14:48:57 -03:00
Achilleas Pipinellis 11da029edb Move GPG signed commits docs to new location
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/36804
2017-08-29 13:09:39 +02:00
Marcia Ramos 6cc53dd1ae Merge branch 'docs/gpg-refactor' into 'master'
Refactor GPG docs

See merge request !13660
2017-08-21 01:19:03 +00:00
Achilleas Pipinellis 4d4994f4cd Change GPG docs location 2017-08-18 10:52:35 +03:00
Achilleas Pipinellis bbd627c548 Move workflow/importing/ to user/project/import/ 2017-08-17 17:18:33 +03:00
Marcia Ramos a76615b0f1 link tech articles from the landing page 2017-08-15 14:25:01 -03:00
Marcia Ramos f9ddf19da8 Docs: update user docs index 2017-08-11 06:17:02 +00:00
Achilleas Pipinellis b1ae717de6 Merge branch 'docs/add-toc' into 'master'
Start using 'toc' in yaml frontmatter to explicitly disable it

See merge request !13310
2017-08-10 15:12:58 +00:00
Achilleas Pipinellis 5388f5ee13 Merge branch 'patch-24' into 'master'
there are 3 dots but it says four products. fixed

See merge request !13129
2017-08-09 05:35:24 +00:00
Paolo Falomo 288f2e7880 Update README.md with a more flexible sentence 2017-08-07 11:46:04 +00:00
Achilleas Pipinellis 9c33281c23 Start using 'toc' in yaml frontmatter to explicitly disable it
See https://gitlab.com/gitlab-com/gitlab-docs/merge_requests/107
2017-08-04 16:28:51 +03:00
Marcia Ramos c9c0a12713 New doc topic user/project/index 2017-07-31 09:44:07 +00:00
Marcia Ramos 68efbff087 Docs new topic: "user/profile/index" 2017-07-27 19:23:35 +00:00
Marcia Ramos 8a55d2ffbc Docs new topic "user/project/repository/index.md" 2017-07-27 19:12:53 +00:00
Alexis Reigel 28c75fc1a8 documentation for gpg signed commits 2017-07-27 15:43:37 +02:00
Paolo Falomo 2624d067c7 there are 3 dots but it says four products. fixed 2017-07-27 12:09:19 +00:00
Marcia Ramos 2dc2538d74 Docs new topic "user/index" 2017-07-26 08:02:11 +00:00
Clement Ho 1f9ab89d79 Add GitLab Trello Power-Up Documentation 2017-07-20 10:29:42 -05:00
Marcia Ramos af39e4be09 Refactor groups docs 2017-07-16 16:03:39 +00:00
Sean McGivern b8c4d5e0f5 Merge branch 'master' into 33929-allow-to-enable-perf-bar-for-a-group 2017-07-07 15:54:39 +01:00
Jacob Vosmaer 78089d1153 Remove option to disable Gitaly completely 2017-07-07 12:48:34 +02:00
Rémy Coutable 75bd0c3a44 Document the Performance Bar
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-07-06 11:18:26 +02:00
Marcia Ramos 84c4d2d25c adjust EE landing page to unify CE and EE docs
==
https://gitlab.com/gitlab-org/gitlab-ee/commit/30304bd2ab3c87d6304a3d4c4
bd71ab7ffd2794b from
https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/2265
2017-06-27 11:20:32 -03:00
Sean McGivern 352a9ed562 Merge branch '27070-rename-slash-commands-to-quick-actions' into 'master'
Rename "Slash commands" to "Quick actions"

Closes #27070

See merge request !11811
2017-06-16 16:32:53 +00:00
Achilleas Pipinellis 631524587e Move branches docs to new location and copyedit 2017-06-16 13:14:48 +02:00
Eric Eastwood ea090291bb Rename "Slash commands" to "Quick actions"
Fix https://gitlab.com/gitlab-org/gitlab-ce/issues/27070

Deprecate "chat commands" in favor of "slash commands"

We looked for things like:

 - `slash commmand`
 - `slash_command`
 - `slash-command`
 - `SlashCommand`
2017-06-15 09:01:56 -05:00
Mark Fletcher 0dbf4b87ee Document the Delete Merged Branches functionality
* Note that protected branches will not be part of the deletion
2017-06-08 18:52:56 +08:00
Achilleas Pipinellis 5e25308819 Move docs 'superpowers' items to respective sections 2017-05-23 15:34:32 +02:00
Marcia Ramos b13b22d04a New doc topic: issues 2017-05-08 08:35:38 +00:00