Commit Graph

217 Commits

Author SHA1 Message Date
GitLab Bot 5ebc4d92cd Add latest changes from gitlab-org/gitlab@master 2020-04-14 06:09:37 +00:00
GitLab Bot e2ee1eec50 Add latest changes from gitlab-org/gitlab@master 2020-04-08 03:09:31 +00:00
GitLab Bot 8a7efa45c3 Add latest changes from gitlab-org/gitlab@master 2020-04-02 18:08:11 +00:00
GitLab Bot e20baee820 Add latest changes from gitlab-org/gitlab@master 2020-03-27 18:07:48 +00:00
GitLab Bot 116d4e56e8 Add latest changes from gitlab-org/gitlab@master 2020-03-26 06:08:40 +00:00
GitLab Bot 8ae26d705a Add latest changes from gitlab-org/gitlab@master 2020-03-17 12:09:52 +00:00
GitLab Bot c8df22c555 Add latest changes from gitlab-org/gitlab@master 2020-03-17 06:09:21 +00:00
GitLab Bot 76e9fc7b29 Add latest changes from gitlab-org/gitlab@master 2020-03-11 18:09:23 +00:00
GitLab Bot 87ef501eac Add latest changes from gitlab-org/gitlab@master 2020-03-03 09:07:54 +00:00
GitLab Bot 988b28ec1a Add latest changes from gitlab-org/gitlab@master 2020-03-02 12:07:57 +00:00
GitLab Bot a325f3a104 Add latest changes from gitlab-org/gitlab@master 2020-03-02 09:07:59 +00:00
GitLab Bot ffc43b862d Add latest changes from gitlab-org/gitlab@master 2020-02-27 06:09:20 +00:00
GitLab Bot 996c6bf06f Add latest changes from gitlab-org/gitlab@master 2020-02-27 03:08:49 +00:00
GitLab Bot 7e3005967d Add latest changes from gitlab-org/gitlab@master 2020-02-25 06:09:07 +00:00
GitLab Bot 55733b19c5 Add latest changes from gitlab-org/gitlab@master 2020-02-11 06:09:46 +00:00
GitLab Bot 0c6bc5443a Add latest changes from gitlab-org/gitlab@master 2020-02-07 21:08:39 +00:00
GitLab Bot a89cb5cbdd Add latest changes from gitlab-org/gitlab@master 2020-02-06 21:08:48 +00:00
GitLab Bot 536aa3a1f4 Add latest changes from gitlab-org/gitlab@master 2020-01-30 15:09:15 +00:00
GitLab Bot 46b10c0fc8 Add latest changes from gitlab-org/gitlab@master 2020-01-29 09:08:49 +00:00
GitLab Bot c1924b863a Add latest changes from gitlab-org/gitlab@master 2020-01-28 21:08:56 +00:00
GitLab Bot 24256212ea Add latest changes from gitlab-org/gitlab@master 2020-01-23 21:08:35 +00:00
GitLab Bot 22a0d312ae Add latest changes from gitlab-org/gitlab@master 2020-01-17 18:08:41 +00:00
GitLab Bot 92f95ccac8 Add latest changes from gitlab-org/gitlab@master 2020-01-14 18:08:31 +00:00
GitLab Bot b558264c9d Add latest changes from gitlab-org/gitlab@master 2019-12-26 21:07:49 +00:00
GitLab Bot 6287caa6fa Add latest changes from gitlab-org/gitlab@master 2019-12-19 06:08:05 +00:00
GitLab Bot 0e2fc1701b Add latest changes from gitlab-org/gitlab@master 2019-12-13 21:07:41 +00:00
GitLab Bot eac0da9a47 Add latest changes from gitlab-org/gitlab@master 2019-11-29 15:06:43 +00:00
GitLab Bot 79348faced Add latest changes from gitlab-org/gitlab@master 2019-11-28 09:06:32 +00:00
GitLab Bot 46bfa73d93 Add latest changes from gitlab-org/gitlab@master 2019-10-24 21:06:26 +00:00
GitLab Bot 666acb10b4 Add latest changes from gitlab-org/gitlab@master 2019-10-21 03:06:30 +00:00
GitLab Bot 00c78fb814 Add latest changes from gitlab-org/gitlab@master 2019-10-16 15:06:17 +00:00
GitLab Bot 429d1abad2 Add latest changes from gitlab-org/gitlab@master 2019-10-14 15:06:07 +00:00
GitLab Bot ab2382923e Add latest changes from gitlab-org/gitlab@master 2019-10-07 09:05:55 +00:00
GitLab Bot 3900b8a006 Add latest changes from gitlab-org/gitlab@master 2019-10-07 06:06:10 +00:00
GitLab Bot 404bb44ef7 Add latest changes from gitlab-org/gitlab@master 2019-10-02 06:06:28 +00:00
GitLab Bot 3fdbfaf3e5 Add latest changes from gitlab-org/gitlab@master 2019-09-25 18:06:17 +00:00
GitLab Bot 4a45a78770 Add latest changes from gitlab-org/gitlab@master 2019-09-24 06:06:02 +00:00
GitLab Bot 80f61b4035 Add latest changes from gitlab-org/gitlab@master 2019-09-18 14:02:45 +00:00
GitLab Bot 4ab54c2233 Add latest changes from gitlab-org/gitlab@master 2019-09-17 14:16:34 +00:00
Nick Thomas fda560bdb4 Add Danger bot development documentation
This is overdue, and some of the suggestions are embarrassing, but
this is how we actually develop Danger today.
2019-09-03 00:23:52 +00:00
Alessio Caiazza b86d3f2876 Document uploads development guidelines
Explain Workhorse acceleration features
2019-08-23 10:40:04 +00:00
Mayra Cabrera bf5797d000 Adds new DB case study for namespaces statistics
Includes a new database case study about all the approaches taken to
store and update the namespace statistics in a performan manner
performant approach to store and update the namespaces statistics
2019-08-22 12:12:28 +00:00
Marcel Amirault d2cb8f785e Update docs to pass new markdownlint
Deletes extra spaces and line, makes lists consistent, and
fixes links.
2019-08-22 08:50:31 +00:00
Evan Read 0479cda57b Make section headings consistent 2019-08-12 09:52:48 +00:00
Victor Zagorodny e5304cf630 Add shell scripting guides to development README 2019-08-05 14:47:46 +00:00
Sean McGivern 0d2b5bff8c Merge branch 'docs-label-filtering' into 'master'
Add development documentation on label filtering

Closes #49651

See merge request gitlab-org/gitlab-ce!30741
2019-07-26 09:53:53 +00:00
Sean McGivern 1ec7dae9ad Add development documentation on label filtering
This topic comes up periodically, and we've investigated several options
for changing the way we filter labels. Unfortunately, we have yet to
find an option that is strictly better than the current state.
2019-07-25 08:56:45 +01:00
Toon Claes 34a5f77e77 Document database review process
See https://gitlab.com/gitlab-com/gl-infra/infrastructure/issues/6069
2019-07-19 17:33:48 +00:00
Oswaldo Ferreira df96b7c075 Document interacting GitLab components and features
It's not uncommon that a single code change can reflect and
interact with multiple parts of GitLab codebase, making it
possible to break an existing feature.

This commit expands documentation in that regard for developers.
2019-07-19 03:04:09 +00:00
Filipa Lacerda 85b065f9fb Updates frontend to Frontend 2019-07-11 15:00:18 +00:00
Mayra Cabrera 0253016806 Add pgFormatter as a database tooling
Includes a PostgreSQL syntax beautifier as a database tooling.
2019-07-05 01:54:18 +00:00
Dmitriy Zaporozhets 75fd8a40b9
Add code comments development guide
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2019-06-25 18:34:35 +03:00
Nick Thomas 319a448860 Merge branch 'dm-add-deep-dives-to-docs-ce' into 'master'
Add Create Deep Dives to development docs

See merge request gitlab-org/gitlab-ce!29793
2019-06-18 16:29:22 +00:00
Douwe Maan 9b3295d341
Add Create Deep Dives to development docs
See https://gitlab.com/gitlab-org/create-stage/issues/1 for more context
2019-06-18 17:35:29 +02:00
Arun Kumar Mohan 2a66d0d69a Update list items to conform to documentation style guide 2019-06-16 23:06:55 -05:00
Arun Kumar Mohan 0880d712a0 Fix minor grammar issue 2019-06-14 16:20:32 -05:00
Lucas Charles d3ff1e07e2 Add section to dev docs on accessing chatops
closes 62127
2019-06-07 01:00:36 +00:00
Dmitriy Zaporozhets 9a2a572a73 Add developmenty documentation about routing
Explain and recommend developers to use `/-/` scope for group and
project routes in Rails

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2019-05-27 08:33:40 +00:00
Enrique Alcántara d24756aec2 Add links to GDK autodevops and runner guides 2019-05-17 19:13:55 +00:00
James Edwards-Jones 35658e1d83 Document ways of accessing Session data in GitLab 2019-05-15 09:57:00 +07:00
Marcel Amirault 1775c8c73b Docs: Realigning scattered EE docs into CE 2019-05-06 00:56:13 +00:00
Marcel Amirault 0207468401 Docs: Merge EE doc/development to CE 2019-05-05 13:57:21 +00:00
Jacob Vosmaer b3663ea4d3 Document how Git object deduplication works in GitLab 2019-03-19 13:25:12 +00:00
Thong Kuah 54d3ad5217 Development guide for Kubernetes
Start writing some development guidelines in relation to our Kubernetes
integration
2019-02-12 14:18:49 +13:00
Philippe Lafoucrière 1effc189c3 Add Go guidelines to developer docs 2019-02-06 16:10:12 +00:00
James Lopez ad08f65e18 Add Import/Export dev docs 2019-01-14 18:18:54 +00:00
Jan Provaznik 4fd35cd58f Removed rails 5 documentation
Because we removed rails 4 support, this document is not needed
anymore.
2018-12-14 18:58:12 +01:00
Sarrah Vesselov 47da931c9e deprecate UX Guide and redirect to design.gitlab 2018-11-21 15:25:15 +00:00
Stan Hu 24a7d86da2 Add documentation on how to use structured logging 2018-11-14 12:32:21 -08:00
Jan Provaznik cb5506565c Add rails5 doc 2018-11-14 12:41:16 +01:00
Achilleas Pipinellis 5d1ba632e6 Merge branch 'docs-improve-contributing-guide' into 'master'
Improve the contributing documentation

See merge request gitlab-org/gitlab-ce!22291
2018-10-15 10:59:52 +00:00
Thong Kuah 85316bbb2a Link to DeclarativePolicy page from /development 2018-10-15 12:12:45 +13:00
Rémy Coutable bfd6129506
Improve the contributing documentation
This removes duplicated content from CONTRIBUTING.md and consolidate
everything under doc/development/contributing/.

This also fixes missing links.

Lastly, this moves the style guides from the "Implement design & UI
elements" page to a new "Style guides" page.

Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-10-11 16:33:46 +02:00
Marcel Amirault 109cfd951d
Correct grammar (setup to set-up) in Docs 2018-09-21 16:29:14 +02:00
Toon Claes ce830d3c60 Add Gitlab::Database::Subquery.self_join to delete_all with limit
`delete_all` doesn't support limit, so you'd need to subquery
that. And instead of subquerying with `where(id: query)`, it's better
to use an `INNER JOIN`. This method also works with MySQL, while
subquerying doesn't (without another layer of subquerying)

Reference:
https://stackoverflow.com/questions/17892762/mysql-this-version-of-mysql-doesnt-yet-support-limit-in-all-any-some-subqu/17892886#17892886
2018-09-20 16:27:09 +02:00
Robert Speicher 272876fd6f
Remove redundant word from development doc index 2018-09-18 15:17:07 -05:00
Yorick Peterse 831300bcec
Enhance some performance guideline titles
This enhances a few performance guideline titles in the development
README, making it easier to understand what topics they cover.
2018-09-18 14:25:22 +02:00
Yorick Peterse b15d28b4c7
Document abstraction levels and code reuse
This is based on the discussion in
https://gitlab.com/gitlab-org/gitlab-ce/issues/49653 and the example
merge request found at
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/20908. The idea
is fairly straightforward: we define a variety of abstractions, then
state which can reuse which. This should ultimately foster _better_ code
reuse, make it easier to debug problems, and make it harder to
accidentally introduce a performance regression.
2018-09-13 17:01:20 +02:00
Jarka Košanová d556eca07d Document permissions for different entities 2018-09-10 10:54:52 +00:00
Kamil Trzciński 9f2a6ca03c Add development documentation 2018-09-04 15:01:34 +02:00
Tom Atkins 9bc960c871 Add link to Profiling doc to README 2018-08-24 12:21:09 +00:00
Yorick Peterse 3d46f3155a
Add documentation about reading query plans
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.
2018-08-17 15:22:42 +02:00
Toon Claes 13afac6533 First version of pry_debugging.md 2018-07-20 11:56:17 +02:00
Dennis Tang c08718c321 Fix typo in doc/development/README.md 2018-06-12 03:28:29 +00:00
Marcia Ramos cc9928c256 Docs: add the documentation guidelines into its own dir 2018-06-06 11:32:38 +00:00
Bob Van Landuyt aa4b1ae712 Add `present_using` to types
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`).
2018-06-05 20:47:42 +02:00
Marcia Ramos f703ba3f85 Docs: add custom descriptions to most relevant docs 2018-05-09 11:07:11 +00:00
James Lopez 686ed453c7 Add missing security process for developers 2018-05-08 10:55:02 +00:00
Douwe Maan 7275c225f1 Merge branch '43614-osw-diff-docs' into 'master'
Add developer documentation on diff handling and limits

Closes #43614

See merge request gitlab-org/gitlab-ce!18269
2018-04-30 15:34:12 +00:00
Oswaldo Ferreira 5e0a2db706 Add developer documentation on diff handling and limits 2018-04-30 11:16:29 -03:00
Victor Wu 4677186908 Remove link to object state model 2018-04-26 09:06:33 +01:00
Yorick Peterse cca61980d5
Track and act upon the number of executed queries
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.
2018-02-01 17:00:46 +01:00
Lin Jen-Shin a265ac25cb Add documents for GitLab utilities 2018-01-02 21:30:10 +08:00
Robert Speicher b540b98764 Merge branch 'no-ivar-in-modules' into 'master'
Add cop to make sure we don't use ivar in a module

See merge request gitlab-org/gitlab-ce!12800
2017-12-15 19:56:15 +00:00
Marcia Ramos a68656e650 Docs update documentation guidelines 2017-12-15 10:56:21 +00:00
Lin Jen-Shin 59ac184fcf Merge remote-tracking branch 'upstream/master' into no-ivar-in-modules
* 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
  ...
2017-12-15 17:14:26 +08:00
Rémy Coutable cd03bf847d
Add "Guidelines for implementing Enterprise Edition features" in CE development doc since the doc page is already there
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-12-06 17:24:35 +01:00
Rémy Coutable aaf1699730
Move the "Limit conflicts with EE" doc to "Automatic CE-> EE merge"
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-12-05 17:49:49 +01:00
Lin Jen-Shin 45568bed36 Updates based on feedback 2017-11-22 00:59:38 +08:00
Eric Eastwood 4f5588b808 Add basic docs for troubleshooting database problems 2017-11-15 21:19:14 -06:00