summaryrefslogtreecommitdiff
path: root/doc/development/README.md
Commit message (Collapse)AuthorAgeFilesLines
* Add documentation about reading query plansdocs/document-query-plansYorick Peterse2018-08-171-1/+7
| | | | | | This adds a database guide on how to read the output of "EXPLAIN" and "EXPLAIN ANALYZE", and how to use this output to understand a query's performance and optimise it.
* First version of pry_debugging.mdToon Claes2018-07-201-0/+1
|
* Fix typo in doc/development/README.mdDennis Tang2018-06-121-1/+1
|
* Docs: add the documentation guidelines into its own dirMarcia Ramos2018-06-061-2/+2
|
* Add `present_using` to typesBob Van Landuyt2018-06-051-0/+2
| | | | | | | | By specifying a presenter for the object type, we can keep the logic out of `GitlabSchema`. The presenter gets initialized using the object being presented, and the context (including the `current_user`).
* Docs: add custom descriptions to most relevant docsMarcia Ramos2018-05-091-0/+1
|
* Add missing security process for developersJames Lopez2018-05-081-0/+1
|
* Merge branch '43614-osw-diff-docs' into 'master'Douwe Maan2018-04-301-0/+1
|\ | | | | | | | | | | | | Add developer documentation on diff handling and limits Closes #43614 See merge request gitlab-org/gitlab-ce!18269
| * Add developer documentation on diff handling and limitsOswaldo Ferreira2018-04-301-0/+1
| |
* | Remove link to object state modelVictor Wu2018-04-261-1/+0
|/
* Track and act upon the number of executed queriesquery-countsYorick Peterse2018-02-011-0/+1
| | | | | | | | | | | This ensures that we have more visibility in the number of SQL queries that are executed in web requests. The current threshold is hardcoded to 100 as we will rarely (maybe once or twice) change it. In production and development we use Sentry if enabled, in the test environment we raise an error. This feature is also only enabled in production/staging when running on GitLab.com as it's not very useful to other users.
* Add documents for GitLab utilitiesdocs-gitlab-utilitiesLin Jen-Shin2018-01-021-0/+1
|
* Merge branch 'no-ivar-in-modules' into 'master'Robert Speicher2017-12-151-0/+1
|\ | | | | | | | | Add cop to make sure we don't use ivar in a module See merge request gitlab-org/gitlab-ce!12800
| * Merge remote-tracking branch 'upstream/master' into no-ivar-in-modulesLin Jen-Shin2017-12-151-1/+2
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * upstream/master: (671 commits) Make rubocop happy Use guard clause Improve language Prettify Use temp branch Pass info about who started the job and which job triggered it Docs: add indexes for monitoring and performance monitoring clearer-documentation-on-inline-diffs Add docs for commit diff discussion in merge requests sorting for tags api Clear BatchLoader after each spec to prevent holding onto records longer than necessary Include project in BatchLoader key to prevent returning blobs for the wrong project moved lfs_blob_ids method into ExtractsPath module Converted JS modules into exported modules spec fixes Bump gitlab-shell version to 5.10.3 Clear caches before updating MR diffs Use new Ruby version 2.4 in GitLab QA images moved lfs blob fetch from extractspath file Update GitLab QA dependencies ...
| * | Updates based on feedbackLin Jen-Shin2017-11-221-0/+1
| | |
* | | Docs update documentation guidelinesMarcia Ramos2017-12-151-3/+2
| |/ |/|
* | Add "Guidelines for implementing Enterprise Edition features" in CE ↵docs/improve-limit-conflicts-with-eeRémy Coutable2017-12-061-0/+1
| | | | | | | | | | | | development doc since the doc page is already there Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Move the "Limit conflicts with EE" doc to "Automatic CE-> EE merge"Rémy Coutable2017-12-051-1/+1
|/ | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Add basic docs for troubleshooting database problemsdocs/db-debuggingEric Eastwood2017-11-151-0/+1
|
* Add basic emoji development docsEric Eastwood2017-11-151-0/+1
|
* Rewrite the GitHub importer from scratchYorick Peterse2017-11-071-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Exclude comments from specific docsAchilleas Pipinellis2017-11-011-0/+4
|
* Fix a missing link and create a separate "Testing guides" sectiondocs/fix-dev-docRémy Coutable2017-10-111-1/+5
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Refactor the Development documentation, and divide the Testing documentation ↵Rémy Coutable2017-10-111-50/+64
| | | | into multiple pages
* Move i18n/introduction to i18n/indexAchilleas Pipinellis2017-10-091-2/+2
|
* Merge branch 'master' into jramsay-4012-improve-internationization-docsAchilleas Pipinellis2017-10-091-0/+1
|\
| * Added some Gitaly docs to `docs/development`Andrew Newdigate2017-09-271-0/+1
| |
* | Docs: add translation and proof reading guidelinesJames Ramsay2017-10-051-1/+3
|/
* Add developer documentation about working with sent emails and previewsRobert Speicher2017-09-121-0/+1
|
* Document how to swap database tables.docs/document-swapping-tablesYorick Peterse2017-09-111-0/+1
|
* Document not using database hash indexesYorick Peterse2017-08-161-0/+1
|
* Document how to handle different DB (versions)Yorick Peterse2017-08-161-0/+1
|
* Add more database development related docsYorick Peterse2017-08-161-0/+2
|
* Added EachBatch for iterating tables in batchesactive-record-each-batchYorick Peterse2017-07-071-0/+1
| | | | | | | This module provides a class method called `each_batch` that can be used to iterate tables in batches in a more efficient way compared to Rails' `in_batches` method. This commit also includes a RuboCop cop to blacklist the use of `in_batches` in favour of this new method.
* Added code for defining SHA attributesYorick Peterse2017-06-291-0/+1
| | | | | | These attributes are stored in binary in the database, but exposed as strings. This allows one to query/create data using plain SHA1 hashes as Strings, while storing them more efficiently as binary.
* Add the ability to perform background migrationsYorick Peterse2017-06-121-0/+1
| | | | | | | | Background migrations can be used to perform long running data migrations without these blocking a deployment procedure. See MR https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/11854 for more information.
* Document not using STIdocument-polymorphing-columnsYorick Peterse2017-06-071-0/+1
|
* Document not using polymorphic associationsYorick Peterse2017-06-071-0/+1
| | | | | Instead of using polymorphic associations a developer should use separate tables.
* Merge branch 'document-not-using-serialize' into 'master'Douwe Maan2017-06-011-0/+1
|\ | | | | | | | | Document not using ActiveRecord's serialize method See merge request !11821
| * Document not storing serialized dataYorick Peterse2017-05-311-0/+1
| |
* | Add feature toggles through FlipperAlejandro Rodríguez2017-05-311-0/+1
|/
* Add guide to collaborate with i18n.Rubén Dávila Santos2017-05-161-0/+4
|
* Add documentation about adding foreign keysYorick Peterse2017-05-081-0/+1
| | | | [ci skip]
* Add a manual job to trigger package build in omnibusBalasankar C2017-05-051-0/+1
|
* Remove outdated ci_setup.md doc page and document MySQL and RSpec profiling ↵30692-document-rspec-profile-and-mysql-branch-testing-and-remove-ci_setup-doc-pageRémy Coutable2017-04-251-1/+0
| | | | | | for specific branches Signed-off-by: Rémy Coutable <remy@rymai.me>
* Fix links and do some refactoringAchilleas Pipinellis2017-03-291-0/+2
|
* Creates Frontend Style guideFilipa Lacerda2017-03-221-1/+1
|
* Document "No gems fetched from git repositories" policy [ci skip]Adam Niedzielski2017-01-271-0/+1
|
* Link to object state models [ci skip]Victor Wu2016-11-171-0/+1
|
* Start to document how to code for CE with EE in mindRémy Coutable2016-11-171-0/+1
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>