.. | ||
agent | ||
cicd | ||
code_intelligence | ||
contributing | ||
database | ||
deprecation_guidelines | ||
documentation | ||
event_tracking | ||
experiment_guide | ||
fe_guide | ||
feature_categorization | ||
feature_flags | ||
geo | ||
go_guide | ||
graphql_guide | ||
i18n | ||
img | ||
integrations | ||
new_fe_guide | ||
product_analytics | ||
python_guide | ||
refactoring_guide | ||
shell_scripting_guide | ||
telemetry | ||
testing_guide | ||
usage_ping | ||
ux_guide | ||
adding_database_indexes.md | ||
adding_service_component.md | ||
api_graphql_styleguide.md | ||
api_styleguide.md | ||
application_limits.md | ||
application_secrets.md | ||
approval_rules.md | ||
architecture.md | ||
auto_devops.md | ||
background_migrations.md | ||
build_test_package.md | ||
bulk_import.md | ||
cached_queries.md | ||
changelog.md | ||
chaos_endpoints.md | ||
chatops_on_gitlabcom.md | ||
code_comments.md | ||
code_review.md | ||
creating_enums.md | ||
cycle_analytics.md | ||
dangerbot.md | ||
database_debugging.md | ||
database_query_comments.md | ||
database_review.md | ||
db_dump.md | ||
deleting_migrations.md | ||
diffs.md | ||
distributed_tracing.md | ||
doc_styleguide.md | ||
ee_features.md | ||
elasticsearch.md | ||
emails.md | ||
export_csv.md | ||
feature_flags.md | ||
features_inside_dot_gitlab.md | ||
file_storage.md | ||
filtering_by_label.md | ||
foreign_keys.md | ||
frontend.md | ||
gemfile.md | ||
geo.md | ||
git_object_deduplication.md | ||
gitaly.md | ||
github_importer.md | ||
gitlab_diagram_overview.odg | ||
gotchas.md | ||
hash_indexes.md | ||
i18n_guide.md | ||
image_scaling.md | ||
import_export.md | ||
import_project.md | ||
insert_into_tables_in_batches.md | ||
instrumentation.md | ||
interacting_components.md | ||
internal_api.md | ||
internal_users.md | ||
issuable-like-models.md | ||
issue_types.md | ||
iterating_tables_in_batches.md | ||
kubernetes.md | ||
lfs.md | ||
licensed_feature_availability.md | ||
licensing.md | ||
logging.md | ||
mass_insert.md | ||
merge_request_performance_guidelines.md | ||
migration_style_guide.md | ||
module_with_instance_variables.md | ||
multi_version_compatibility.md | ||
namespaces_storage_statistics.md | ||
newlines_styleguide.md | ||
omnibus.md | ||
ordering_table_columns.md | ||
packages.md | ||
performance.md | ||
permissions.md | ||
pipelines.md | ||
policies.md | ||
polling.md | ||
polymorphic_associations.md | ||
post_deployment_migrations.md | ||
profiling.md | ||
projections.md | ||
prometheus.md | ||
prometheus_metrics.md | ||
pry_debugging.md | ||
query_count_limits.md | ||
query_performance.md | ||
query_recorder.md | ||
rails_initializers.md | ||
rake_tasks.md | ||
reactive_caching.md | ||
README.md | ||
redis.md | ||
reference_processing.md | ||
renaming_features.md | ||
repository_mirroring.md | ||
reusing_abstractions.md | ||
rolling_out_changes_using_feature_flags.md | ||
routing.md | ||
scalability.md | ||
secure_coding_guidelines.md | ||
serializing_data.md | ||
service_measurement.md | ||
session.md | ||
sha1_as_binary.md | ||
shared_files.md | ||
shell_commands.md | ||
sidekiq_debugging.md | ||
sidekiq_style_guide.md | ||
single_table_inheritance.md | ||
snowplow.md | ||
sql.md | ||
stage_group_dashboards.md | ||
swapping_tables.md | ||
testing.md | ||
ui_guide.md | ||
understanding_explain_plans.md | ||
uploads.md | ||
usage_ping.md | ||
utilities.md | ||
value_stream_analytics.md | ||
verifying_database_capabilities.md | ||
what_requires_downtime.md | ||
wikis.md | ||
windows.md | ||
writing_documentation.md |
comments | type | stage | group | info | description |
---|---|---|---|---|---|
false | index, dev | none | Development | See the Technical Writers assigned to Development Guidelines: https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments-to-development-guidelines | Development Guidelines: learn how to contribute to GitLab. |
Contributor and Development Docs
Learn the processes and technical information needed for contributing to GitLab.
This content is intended for members of the GitLab Team as well as community contributors. Content specific to the GitLab Team should instead be included in the Handbook.
For information on using GitLab to work on your own software projects, see the GitLab user documentation.
For information on working with the GitLab APIs, see the API documentation.
For information about how to install, configure, update, and upgrade your own GitLab instance, see the administration documentation.
Get started
- Set up the GitLab development environment with the GitLab Development Kit (GDK)
- GitLab contributing guide
- Issues workflow for more information about:
- Issue tracker guidelines.
- Triaging.
- Labels.
- Feature proposals.
- Issue weight.
- Regression issues.
- Technical or UX debt.
- Merge requests workflow for more
information about:
- Merge request guidelines.
- Contribution acceptance criteria.
- Definition of done.
- Dependencies.
- Style guides
- Implement design & UI elements
- Issues workflow for more information about:
- GitLab Architecture Overview
- Rake tasks for development
Processes
Must-reads:
- Guide on adapting existing and introducing new components
- Code review guidelines for reviewing code and having code reviewed
- Database review guidelines for reviewing database-related changes and complex SQL queries, and having them reviewed
- Secure coding guidelines
- Pipelines for the GitLab project
Complementary reads:
- GitLab core team & GitLab Inc. contribution process
- Security process for developers
- Guidelines for implementing Enterprise Edition features
- Danger bot
- Generate a changelog entry with
bin/changelog
- Requesting access to ChatOps on GitLab.com (for GitLab team members)
- Patch release process for developers
- Adding a new service component to GitLab
Development guidelines review
When you submit a change to the GitLab development guidelines, who you ask for reviews depends on the level of change.
Wording, style, or link changes
Not all changes require extensive review. For example, MRs that don't change the content's meaning or function can be reviewed, approved, and merged by any maintainer or Technical Writer. These can include:
- Typo fixes.
- Clarifying links, such as to external programming language documentation.
- Changes to comply with the Documentation Style Guide that don't change the intent of the documentation page.
Specific changes
If the MR proposes changes that are limited to a particular stage, group, or team, request a review and approval from an experienced GitLab Team Member in that group. For example, if you're documenting a new internal API used exclusively by a given group, request an engineering review from one of the group's members.
After the engineering review is complete, assign the MR to the Technical Writer associated with the stage and group in the modified documentation page's metadata.
If you have questions or need further input, request a review from the Technical Writer assigned to the Development Guidelines.
Broader changes
Some changes affect more than one group. For example:
- Changes to code review guidelines.
- Changes to commit message guidelines.
- Changes to guidelines in feature flags in development of GitLab.
- Changes to feature flags documentation guidelines.
In these cases, use the following workflow:
-
Request a peer review from a member of your team.
-
Request a review and approval of an Engineering Manager (EM) or Staff Engineer who's responsible for the area in question:
You can skip this step for MRs authored by EMs or Staff Engineers responsible for their area.
If there are several affected groups, you may need approvals at the EM/Staff Engineer level from each affected area.
-
After completing the reviews, consult with the EM/Staff Engineer author / approver of the MR.
If this is a significant change across multiple areas, request final review and approval from the VP of Development, the DRI for Development Guidelines, @clefelhocz1.
-
After all approvals are complete, assign the merge request to the Technical Writer for Development Guidelines for final content review and merge. The Technical Writer may ask for additional approvals as previously suggested before merging the MR.
UX and Frontend guides
- GitLab Design System, for building GitLab with existing CSS styles and elements
- Frontend guidelines
- Emoji guide
Backend guides
- GitLab utilities
- Issuable-like Rails models
- Logging
- API style guide for contributing to the API
- GraphQL API style guide for contributing to the GraphQL API
- Sidekiq guidelines for working with Sidekiq workers
- Working with Gitaly
- Manage feature flags
- Licensed feature availability
- Dealing with email/mailers
- Shell commands in the GitLab codebase
Gemfile
guidelines- Pry debugging
- Sidekiq debugging
- Accessing session data
- Gotchas to avoid
- Avoid modules with instance variables, if possible
- How to dump production data to staging
- Working with the GitHub importer
- Import/Export development documentation
- Test Import Project
- Elasticsearch integration docs
- Working with Merge Request diffs
- Kubernetes integration guidelines
- Permissions
- Guidelines for reusing abstractions
- DeclarativePolicy framework
- How Git object deduplication works in GitLab
- Geo development
- Routing
- Repository mirroring
- Git LFS
- Developing against interacting components or features
- File uploads
- Auto DevOps development guide
- Mass Inserting Models
- Value Stream Analytics development guide
- Issue types vs first-class types
- Application limits
- Redis guidelines
- Rails initializers
- Code comments
- Renaming features
- Windows Development on GCP
- Code Intelligence
- Approval Rules
- Feature categorization
- Wikis development guide
- Newlines style guide
- Image scaling guide
- Export to CSV
Performance guides
- Instrumentation for Ruby code running in production environments.
- Performance guidelines for writing code, benchmarks, and certain patterns to avoid.
- Merge request performance guidelines for ensuring merge requests do not negatively impact GitLab performance
- Profiling a URL, measuring performance using Sherlock, or tracking down N+1 queries using Bullet.
- Cached queries guidelines, for tracking down N+1 queries masked by query caching, memory profiling and why should we avoid cached queries.
Database guides
See database guidelines.
Integration guides
- Jira Connect app
- Security Scanners
- Secure Partner Integration
- How to run Jenkins in development environment
- How to run local Codesandbox integration for Web IDE Live Preview
Testing guides
Refactoring guides
Deprecation guides
Documentation guides
Internationalization (i18n) guides
Product Intelligence guides
Experiment guide
Build guides
Compliance
- Licensing for ensuring license compliance
Go guides
Shell Scripting guides
Domain-specific guides
Other Development guides
- Defining relations between files using projections
- Reference processing
- Compatibility with multiple versions of the application running at the same time
- Features inside
.gitlab/
- Dashboards for stage groups