Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

fix header levels

as-op0e214970b424
diff --git a/docs/api/bcf/bcf-rest-api.md b/docs/api/bcf/bcf-rest-api.md
index 71d1b7b4768..33d38b8316d 100644
--- a/docs/api/bcf/bcf-rest-api.md
+++ b/docs/api/bcf/bcf-rest-api.md
@@ -15,41 +15,41 @@ OpenProject offers a second API (v3) which might be able to fill the gaps the BC
The document follows the structure of the standard specification to ease comparing the two documents.
-# 1. Introduction
+## 1. Introduction
All end points are nested within the `/api` path. So for a server listening on `https://foo.com/` the API root will be
`https://foo.com/api/bcf/2.1`. For a server listening on `https://foo.com/bar` the API root will be
`https://foo.com/bar/api/bcf/2.1`.
-## 1.1 Paging, Sorting and Filtering
+### 1.1 Paging, Sorting and Filtering
_Not implemented_
-## 1.2 Caching
+### 1.2 Caching
_Implemented_
-## 1.3 Updating Resources via HTTP PUT
+### 1.3 Updating Resources via HTTP PUT
_Implemented_
-## 1.4 Cross Origin Resource Sharing (CORS)
+### 1.4 Cross Origin Resource Sharing (CORS)
_Not implemented_
-## 1.5 Http Status Codes
+### 1.5 Http Status Codes
_Implemented_
-## 1.6 Error Response Body Format
+### 1.6 Error Response Body Format
_Implemented_
-## 1.7 DateTime Format
+### 1.7 DateTime Format
_Implemented_
-## 1.8 Authorization
+### 1.8 Authorization
_Implemented_
@@ -58,37 +58,37 @@ data structure with WorkPackages, which enables them to be worked on by the proj
a user also needs to have the _view_work_packages_ permission to have _view_linked_issues_. For _manage_bcf_ the permissions
_view_work_packages_, _add_work_packages_, _edit_work_packages_ and _delete_work_packages_ are dependently required.
-### 1.8.1 Per-Entity Authorization
+#### 1.8.1 Per-Entity Authorization
_Implemented_
The `authorization` field is always returned, regardless of an `includeAuthorization` query parameter.
-### 1.8.2 Determining Authorized Entity Actions
+#### 1.8.2 Determining Authorized Entity Actions
_Implemented_
-## 1.9 Additional Response and Request Object Properties
+### 1.9 Additional Response and Request Object Properties
The implementation relies on a client to particularly adhere to this.
-## 1.10 Binary File Uploads
+### 1.10 Binary File Uploads
_Implemented_
-# 2. Topologies
+## 2. Topologies
_Out of scope_
-# 3. Public Services
+## 3. Public Services
-## 3.1 Versions Service
+### 3.1 Versions Service
_Not implemented_
-## 3.2 Authentication Services
+### 3.2 Authentication Services
-### 3.2.1 Obtaining Authentication Information
+#### 3.2.1 Obtaining Authentication Information
_Implemented_
@@ -109,68 +109,68 @@ The OAuth2 flows alternatively proposed by the specification
* `resource_owner_password_credentials_grant` - [4.3 - Resource Owner Password Credentials Grant](https://tools.ietf.org/html/rfc6749#section-4.3)
are not implemented.
-### 3.2.2 OAuth2 Example
+#### 3.2.2 OAuth2 Example
_Out of scope_
-### 3.2.3 OAuth2 Protocol Flow - Dynamic Client Registration
+#### 3.2.3 OAuth2 Protocol Flow - Dynamic Client Registration
_Not implemented_
-## 3.3 User Services
+### 3.3 User Services
-### 3.3.1 Get current user
+#### 3.3.1 Get current user
_Implemented_
-# 4. BCF Services
+## 4. BCF Services
-## 4.1 Project Services
+### 4.1 Project Services
The `project_id` is an integer value. However, the API also understands requests where the project identifier, e.g. `bcf_project`
is used instead of the integer within a url. So the following urls might point to the same project resource: `/api/bcf/2.1/projects/3` and `/api/bcf/2.1/projects/bcf_project`.
-### 4.1.1 GET Projects Service
+#### 4.1.1 GET Projects Service
_Partly implemented_
The end point is implemented but lacks the `authorization` property. However, the [Project Extension Service](#414-get-project-extension-service) is completely implemented and provides the same information.
-### 4.1.2 GET Project Service
+#### 4.1.2 GET Project Service
_Partly implemented_
The end point is implemented but lacks the `authorization` property. However, the [Project Extension Service](#414-get-project-extension-service) is completely implemented and provides the same information.
-### 4.1.3 PUT Project Service
+#### 4.1.3 PUT Project Service
_Implemented_
-### 4.1.4 GET Project Extension Service
+#### 4.1.4 GET Project Extension Service
_Implemented and extended_
However, as some end points are not implemented, the actions indicating the ability to call those end points will also not be returned, e.g. `updateDocumentReferences`
-### 4.1.5 Expressing User Authorization Through Project Extensions
+#### 4.1.5 Expressing User Authorization Through Project Extensions
_Out of scope_
-#### 4.1.5.1 Project
+##### 4.1.5.1 Project
_Implemented and extended_
* *viewTopic* - The ability to see topics (see [4.2.3 GET Topic Service](#423-get-topic-service))
-#### 4.1.5.2 Topic
+##### 4.1.5.2 Topic
_Implemented_
-#### 4.1.5.3 Comment
+##### 4.1.5.3 Comment
_Implemented_
-## 4.2 Topic Services
+### 4.2 Topic Services
BCF topics are tightly coupled to work packages in OpenProject. This coupling is denoted in the `reference_links` property
of a topic which will always have a link to the work package resource in the API v3. e.g.:
@@ -183,7 +183,7 @@ of a topic which will always have a link to the work package resource in the API
<-- other properties -->
```
-### 4.2.1 GET Topics Service
+#### 4.2.1 GET Topics Service
_Partly implemented_
@@ -198,7 +198,7 @@ The following properties are not supported:
OData sort, filtering and pagination is not supported.
-### 4.2.2 POST Topic Service
+#### 4.2.2 POST Topic Service
_Partly implemented_
@@ -207,13 +207,13 @@ See [4.2.3 GET Topic Service](#423-get-topic-service) for details.
Either a new work package is created or, if a work package is referenced in the `reference_links` section, a the referenced
work package is associated to the newly created topic. A work package can only be associated to one topic and vice versa.
-### 4.2.3 GET Topic Service
+#### 4.2.3 GET Topic Service
_Partly implemented_
See [4.2.3 GET Topic Service](#423-get-topic-service) for details.
-### 4.2.4 PUT Topic Service
+#### 4.2.4 PUT Topic Service
_Partly implemented_
@@ -221,194 +221,194 @@ The reference to the work package cannot be altered.
See [4.2.3 GET Topic Service](#423-get-topic-service) for details.
-### 4.2.5 DELETE Topic Service
+#### 4.2.5 DELETE Topic Service
_Implemented_
The associated work package will also be deleted.
-### 4.2.6 GET Topic BIM Snippet Service
+#### 4.2.6 GET Topic BIM Snippet Service
_Not implemented_
-### 4.2.7 PUT Topic BIM Snippet Service
+#### 4.2.7 PUT Topic BIM Snippet Service
_Not implemented_
-## 4.3 File Services
+### 4.3 File Services
-### 4.3.1 GET Files (Header) Service
+#### 4.3.1 GET Files (Header) Service
_Not implemented_
-### 4.3.2 PUT Files (Header) Service
+#### 4.3.2 PUT Files (Header) Service
_Not implemented_
-## 4.4 Comment Services
+### 4.4 Comment Services
-### 4.4.1 GET Comments Service
+#### 4.4.1 GET Comments Service
_Not implemented_
-### 4.4.2 POST Comment Service
+#### 4.4.2 POST Comment Service
_Not implemented_
-### 4.4.3 GET Comment Service
+#### 4.4.3 GET Comment Service
_Not implemented_
-### 4.4.4 PUT Comment Service
+#### 4.4.4 PUT Comment Service
_Not implemented_
-### 4.4.5 DELETE Comment Service
+#### 4.4.5 DELETE Comment Service
_Not implemented_
-### 4.4.6 Determining allowed Comment modifications
+#### 4.4.6 Determining allowed Comment modifications
_Not implemented_
-## 4.5 Viewpoint Services
+### 4.5 Viewpoint Services
-### 4.5.1 GET Viewpoints Service
+#### 4.5.1 GET Viewpoints Service
_Implemented_
-### 4.5.2 POST Viewpoint Service
+#### 4.5.2 POST Viewpoint Service
_Implemented_
-#### 4.5.2.1 Point
+##### 4.5.2.1 Point
_Implemented_
-#### 4.5.2.2 Direction
+##### 4.5.2.2 Direction
_Implemented_
-#### 4.5.2.3 Orthogonal camera
+##### 4.5.2.3 Orthogonal camera
_Implemented_
-#### 4.5.2.4 Perspective camera
+##### 4.5.2.4 Perspective camera
_Implemented_
-#### 4.5.2.5 Line
+##### 4.5.2.5 Line
_Implemented_
-#### 4.5.2.6 Clipping plane
+##### 4.5.2.6 Clipping plane
_Implemented_
-#### 4.5.2.7 Bitmap
+##### 4.5.2.7 Bitmap
_Implemented_
-#### 4.5.2.8 Snapshot
+##### 4.5.2.8 Snapshot
_Implemented_
-#### 4.5.2.9 Components
+##### 4.5.2.9 Components
_Implemented_
-#### 4.5.2.10 Component
+##### 4.5.2.10 Component
_Implemented_
-#### 4.5.2.11 Coloring
+##### 4.5.2.11 Coloring
_Implemented_
-#### 4.5.2.12 Visibility
+##### 4.5.2.12 Visibility
_Implemented_
-#### 4.5.2.13 View setup hints
+##### 4.5.2.13 View setup hints
_Implemented_
-### 4.5.3 GET Viewpoint Service
+#### 4.5.3 GET Viewpoint Service
_Implemented_
-### 4.5.4 GET Viewpoint Snapshot Service
+#### 4.5.4 GET Viewpoint Snapshot Service
_Implemented_
-### 4.5.6 GET selected Components Service
+#### 4.5.6 GET selected Components Service
_Implemented_
-### 4.5.7 GET colored Components Service
+#### 4.5.7 GET colored Components Service
_Implemented_
-### 4.5.8 GET visibility of Components Service
+#### 4.5.8 GET visibility of Components Service
_Implemented_
-## 4.6 Related Topics Services
+### 4.6 Related Topics Services
-### 4.6.1 GET Related Topics Service
+#### 4.6.1 GET Related Topics Service
_Not implemented_
-### 4.6.2 PUT Related Topics Service
+#### 4.6.2 PUT Related Topics Service
_Not implemented_
-## 4.7 Document Reference Services
+### 4.7 Document Reference Services
-### 4.7.1 GET Document References Service
+#### 4.7.1 GET Document References Service
_Not implemented_
-### 4.7.2 POST Document Reference Service
+#### 4.7.2 POST Document Reference Service
_Not implemented_
-### 4.7.3 PUT Document Reference Service
+#### 4.7.3 PUT Document Reference Service
_Not implemented_
-## 4.8 Document Services
+### 4.8 Document Services
-### 4.8.1 GET Documents Service
+#### 4.8.1 GET Documents Service
_Not implemented_
-### 4.8.2 POST Document Service
+#### 4.8.2 POST Document Service
_Not implemented_
-### 4.8.3 GET Document Service
+#### 4.8.3 GET Document Service
_Not implemented_
-## 4.9 Topics Events Services
+### 4.9 Topics Events Services
-### 4.9.1 GET Topics Events Service
+#### 4.9.1 GET Topics Events Service
_Not implemented_
-### 4.9.2 GET Topic Events Service
+#### 4.9.2 GET Topic Events Service
_Not implemented_
-## 4.10 Comments Events Services
+### 4.10 Comments Events Services
_Not implemented_
-### 4.10.1 GET Comments Events Service
+#### 4.10.1 GET Comments Events Service
_Not implemented_
-### 4.10.2 GET Comment Events Service
+#### 4.10.2 GET Comment Events Service
_Not implemented_
diff --git a/docs/development/README.md b/docs/development/README.md
index ef2bafb5b77..ad686cadb55 100644
--- a/docs/development/README.md
+++ b/docs/development/README.md
@@ -108,7 +108,7 @@ If you want to contribute to OpenProject, please make sure to accept our Contrib
[Read and accept the Contributor License Agreement here.](https://www.openproject.org/legal/contributor-license-agreement/)
-# Additional resources
+## Additional resources
* [Development environment for Ubuntu 18.04](development-environment-ubuntu)
diff --git a/docs/development/application-architecture/README.md b/docs/development/application-architecture/README.md
index b0a692c913b..15a23acfae9 100644
--- a/docs/development/application-architecture/README.md
+++ b/docs/development/application-architecture/README.md
@@ -77,14 +77,14 @@ flowchart TD
| API integrations | Structural access to OpenProject through API endpoints. Optional access to users and third party organizations depending on authorized scopes | HTTPS | (Optional) R<br>(Optional) W<br> | [API configuration](../../system-admin-guide/api-and-webhooks/) |
| Outgoing Webhooks | Outgoing requests for changes within the application | HTTPS | R (Outgoing webhook data) | [Webhook configuration an administration](../../system-admin-guide/api-and-webhooks/#webhooks) |
-# Software
+## Software
OpenProject is developed as a GPLv3 licensed, open-source software. The software core is developed and maintained using [GitHub](https://github.com/opf/openproject/). OpenProject is available as several versions:
- [Community Edition](https://www.openproject.org/community-edition/)
- [Enterprise on-premises and Enterprise cloud](https://www.openproject.org/enterprise-edition/)
-# Environments
+## Environments
OpenProject is continuously tested, developed, and distributed using the following environments
@@ -98,23 +98,23 @@ OpenProject is continuously tested, developed, and distributed using the followi
| Production<br>(Helm chart) | [Official public OpenProject Helm charts](../../installation-and-operations/installation/helm-chart/)<br>Stable releases | Stable releases (configurable through container tags) | Updates to Helm chart are manual, underlying deployment uses OpenProject docker images |
| PullPreview | Temporary instances for development of features scope to a pull request. | Feature branches | Automatically deployed when developers/QA request a pull preview instance by labelling pull requests with the `PullPreview` tag. |
-# Patch and change management
+## Patch and change management
OpenProject uses the Community instance [https://community.openproject.org](https://community.openproject.org) for managing the application lifecycle. For a full overview on the process of developing changes to the application, please see our [product development guide](../product-development-handbook/).
This section summarizes all relevant information about the process for providing releases.
-## Current release
+### Current release
The [release notes](../../release-notes) provide a list of all the releases including the current stable one.
Administrators can identify their currently deployed version of OpenProject in the [Administration information page of their installation](../../system-admin-guide/information).
-## Upcoming releases
+### Upcoming releases
See the [Roadmap](https://community.openproject.org/projects/openproject/roadmap) for the overview of the upcoming stable releases.
-## Versioning
+### Versioning
OpenProject follows [Semantic Versioning](https://semver.org/). Therefore, the version is a composition of three digits in the format of e.g. 0.1.1 and can be summarized as followed:
@@ -138,7 +138,7 @@ This list is not conclusive but rather serves to highlight the difference to the
<div id="version-tracing"></div>
-## Version tracing in containers and packages
+### Version tracing in containers and packages
OpenProject embeds some release information into the packages and containers to ensure they are traceable. For all containers, the following files exist under `/app`. For packages, these files reside under `/opt/openproject/` and `/opt/openproject/config`, depending on the used version.
@@ -147,43 +147,43 @@ OpenProject embeds some release information into the packages and containers to
- **PRODUCT_VERSION** Commit of the flavour/product version. In case of the [openDesk container](https://hub.docker.com/r/openproject/open_desk), contains a reference to the openDesk repository https://github.com/opf/openproject-open_desk
- **BUILDER_VERSION** Internal reference of the building CI repository that we use to create and publish the images.
-## Support of releases
+### Support of releases
For the community edition, only the current stable release is maintained. The [Enterprise on-premises](https://www.openproject.org/enterprise-edition) provides extended maintenance.
We recommended to update to a new stable release as soon as possible to have a supported version installed. To that end, OpenProject will show an information banner to administrators in case a new stable release is available.
-## Change history
+### Change history
All changes made to the OpenProject software are documented via work packages bundled by the version. The [Roadmap view](https://community.openproject.org/projects/openproject/roadmap) gives a corresponding overview. A release is also summarized in the [release notes](../../release-notes).
-## Distribution
+### Distribution
OpenProject is distributed in [various formats](../../installation-and-operations/installation). Manual installation based on the code in GitHub is possible but not supported.
-## Versions in the codebase
+### Versions in the codebase
The version is represented as [tags](../git-workflow/#tagging) and [branches](../git-workflow/#branching-model) in the repository. The version is also manifested in the [version.rb](https://github.com/opf/openproject/blob/dev/lib/open_project/version.rb).
-# Components
+## Components
A typical installation of OpenProject uses a web server such as NGINX or Apache to proxy requests to and from the internal [Puma](https://puma.io/) application server. All web requests are handled internally by it. A background job queue is used to execute longer running data requests or asynchronous communications.
-## Puma application server
+### Puma application server
OpenProject uses a Puma application server to run and handle requests for the Rails stack. All HTTP(S) requests to OpenProject are handled by it. Puma is a configurable multi-process, multithreading server. The exact number of servers being operated depends on your deployment method of OpenProject. See the [process control and scaling documentation](../../installation-and-operations/operation/control/) for more information.
-## External load balancer or proxying server
+### External load balancer or proxying server
A web server is expected to handle requests between the end-user and the internal Puma application server. It is responsible for e.g., terminating TLS and managing user-facing HTTP connections, but depending on the deployment, also for serving static assets and certain caching related functionality. This server performs a proxy-reverse proxy pattern with the internal application server. No external connections are allowed directly to the Puma server.
-## Rails application
+### Rails application
The core application, built on the Ruby on Rails framework, handling business logic, database operations, and user interactions. Utilizes the Model-View-Controller (MVC) design pattern. Follows [secure coding guidelines](../concepts/secure-coding/) for authentication, session management, user input validation, and error logging.
The application aims to return to the MVC pattern using Rails, Hotwire, and ViewComponents for UI element composition. This strategy aims for higher usability and efficient development.
-## Angular frontend
+### Angular frontend
Some of the responses of the application include a frontend application approach using Angular. These pages communicate with a REST API to receive data and perform updates. An example of this is the work packages module. Requests within the module are handled completely in the frontend, while boundary requests are forwarded to the Rails stack, returning to a classical request/response pattern.
@@ -191,7 +191,7 @@ All requests to the application are still handled by Rails. In some of the respo
In the following, we'll take a look at the different components at use in the application stack of OpenProject as well as concrete examples on how these components interact.
-### Exemplary frontend view request
+#### Exemplary frontend view request
Let's take a look at how the request to `/projects/identifier/work_packages` would be handled by Rails and Angular (excluding any external actual HTTP requests to the web server)
@@ -207,7 +207,7 @@ This will result in a page on which the majority of the content has been rendere
This approach has the significant disadvantage to go through the entire Rails stack first to output a response that is mostly irrelevant for the Angular application, and both systems (Rails and Angular) need a somewhat duplicated routing information. The long-term goal is to move to a single-page application and avoid the first two steps.
-### Exemplary Rails view request augmented by Angular
+#### Exemplary Rails view request augmented by Angular
A response that is fully controlled by Rails but extended by some Angular components in the frontend might look as follows. Let's take a look at the request to [edit a type's form configuration](../../system-admin-guide/manage-work-packages/work-package-types/#work-package-form-configuration-enterprise-add-on) `/types/1/edit/form_configuration`:
@@ -223,7 +223,7 @@ A response that is fully controlled by Rails but extended by some Angular compon
![Exemplary form configuration](form-configuration.png)
-# Evolution of the application
+## Evolution of the application
Historically, OpenProject has been forked from [Redmine](https://www.redmine.org/) and modified from a primarily software-development focused flow into a general project management application suite. A Ruby on Rails monolith was used to serve the entire application, frontend and API. Javascript was used to extend some of the functionality with Prototype.js and jQuery on existing, Rails-rendered pages.
diff --git a/docs/development/concepts/dynamic-forms/README.md b/docs/development/concepts/dynamic-forms/README.md
index fbc8792095e..dcbdba15ae4 100644
--- a/docs/development/concepts/dynamic-forms/README.md
+++ b/docs/development/concepts/dynamic-forms/README.md
@@ -5,14 +5,10 @@ description: An introduction on how to generate forms from an API form object
keywords: concept, forms, dynamic forms, schemas
---
-
-
# Dynamically generated forms
Starting in OpenProject 11.3.0, the frontend application received a new mechanism to dynamically generate HTML forms from an APIv3 form response. The form response contains the model being changed/created and [a schema resource](../resource-schemas/) to describe the attributes of the resource.
-
-
## Key takeaways
Dynamic forms are wrappers around the APIv3 form and schema objects to render a full HTML form based on the attribute definitions returned by the API.
@@ -23,9 +19,6 @@ The following guides are related:
- [Schema resources](../resource-schemas/)
-
-
-
## API overview
Let us take a look at the new projects form API response to get an overview of how this works.
@@ -86,9 +79,7 @@ The form has four important segments:
- **_embedded.validationErrors**: This object contains any references to attributes in the payload that are currently erroneous, and a human-readable message. In the example above, the required _name_ of the project is missing.
- **_links**: The links section contains HAL links and actions on the form resource itself. For example, it has a `validate` link to validate any pending changes made by the user. If the form has no validation errors, it will show a `commit` link to save the changes to the database. As the example form is invalid, this link is not present.
-
-
-# Frontend usage
+## Frontend usage
Using the dynamic form is incredibly easy once you have a backend that provides a form resource with an embedded schema.
@@ -98,9 +89,7 @@ The dynamic form component will request the form for you, render the form, and h
In case of the projects component, there is a `fieldsSettingsPipe` that allows you to override parts of the rendering. For projects, [it is used](https://github.com/opf/openproject/blob/dev/frontend/src/app/features/projects/components/projects/projects.component.ts#L34-L44) hiding the `identifier` field of the project which is handled by the backend.
-
-
-## Basic use case
+### Basic use case
For the most basic use case, simply place the `DynamicFormsModule` into your module imports and use the component as follows:
diff --git a/docs/development/create-openproject-plugin/README.md b/docs/development/create-openproject-plugin/README.md
index 02ec0e414fd..31b2707483b 100644
--- a/docs/development/create-openproject-plugin/README.md
+++ b/docs/development/create-openproject-plugin/README.md
@@ -138,8 +138,7 @@ It is probably best to use READMEs of already released plugins as a template.
4. Twitter with a link to the news article.
5. If the plugin is referenced in our feature tour, add a download link to the plugin in the feature tour
-
-# Frontend plugins [WIP]
+## Frontend plugins [WIP]
Plugins that extend the frontend application may be packaged as **npm modules**.
These plugins must contain a `package.json` in the root directory of the plugin.
diff --git a/docs/development/development-environment-osx/README.md b/docs/development/development-environment-osx/README.md
index 1ba34148a01..427c28055ba 100644
--- a/docs/development/development-environment-osx/README.md
+++ b/docs/development/development-environment-osx/README.md
@@ -17,19 +17,19 @@ OpenProject will be installed with a PostgreSQL database.
If you find any bugs or you have any recommendations for improving this tutorial, please, feel free to send a pull
request or comment in the [OpenProject forums](https://community.openproject.org/projects/openproject/boards).
-# Prepare your environment
+## Prepare your environment
We'll use [homebrew](https://brew.sh/) to install most of our requirements. Please install that first using the guide on
their homepage.
-## Install Ruby
+### Install Ruby
Use [rbenv](https://github.com/rbenv/rbenv) and [ruby-build](https://github.com/rbenv/ruby-build#readme) to install
Ruby. We always require the latest ruby versions, and you can check which version is required
by [checking the Gemfile](https://github.com/opf/openproject/blob/dev/Gemfile#L31) for the `ruby "~> X.Y"` statement. At
the time of writing, this version is "3.2.3"
-### Install rbenv and ruby-build
+#### Install rbenv and ruby-build
rbenv is a ruby version manager that lets you quickly switch between ruby versions.
ruby-build is an addon to rbenv that installs ruby versions.
@@ -41,7 +41,7 @@ $ brew install rbenv ruby-build
$ rbenv init
```
-### Installing ruby
+#### Installing ruby
With both installed, we can now install the actual ruby version. You can check available ruby versions
with `rbenv install --list`.
@@ -69,7 +69,7 @@ You also need to install [bundler](https://github.com/bundler/bundler/), the rub
gem install bundler
```
-## Setup PostgreSQL database
+### Setup PostgreSQL database
Next, install a PostgreSQL database. If you wish to use a MySQL database instead and have installed one, skip these
steps.
@@ -97,12 +97,12 @@ createdb -O openproject openproject_dev
createdb -O openproject openproject_test
```
-## Install Node.js
+### Install Node.js
We will install the latest LTS version of Node.js via [nodenv](https://github.com/nodenv/nodenv). This is basically the
same steps as for rbenv:
-### Install nodenv and node-build
+#### Install nodenv and node-build
```shell
# Install
@@ -111,7 +111,7 @@ brew install nodenv node-build
nodenv init
```
-### Install latest LTS node version
+#### Install latest LTS node version
You can find the latest LTS version here: [nodejs.org/en/download](https://nodejs.org/en/download/)
@@ -122,13 +122,13 @@ nodenv install 20.9.0
nodenv global 20.9.0
```
-### Update NPM to the latest version
+#### Update NPM to the latest version
```shell
npm install npm@latest -g
```
-## Verify your installation
+### Verify your installation
You should now have an active ruby and node installation. Verify that it works with these commands.
@@ -146,7 +146,7 @@ npm --version
10.5.0
```
-# Install OpenProject
+## Install OpenProject
```shell
# Download the repository
@@ -158,7 +158,7 @@ Note that we have checked out the `dev` branch of the OpenProject repository. De
the `dev` branch (there is no `master` branch).
So, if you want to develop a feature, create a feature branch from a current `dev` branch.
-## Configure OpenProject
+### Configure OpenProject
Create and configure the database configuration file in `config/database.yml` (relative to the openproject-directory.
@@ -190,7 +190,7 @@ To configure the environment variables such as the number of web server threads
the `.env.example` to `.env` and add the environment variables you want to configure. The variables will be
automatically loaded to the application's environment.
-## Finish the Installation of OpenProject
+### Finish the Installation of OpenProject
Install code dependencies, link plugin modules and export translation files.
@@ -211,7 +211,7 @@ RAILS_ENV=development bin/rails db:seed
1
-## Run OpenProject through overmind
+### Run OpenProject through overmind
You can run all required workers of OpenProject through `overmind`, which combines them in a single tab. Optionally, you
may also
@@ -248,11 +248,11 @@ Username: admin
Password: admin
```
-## Run OpenProject manually
+### Run OpenProject manually
To run OpenProject manually, you need to run the rails server and the webpack frontend bundler to:
-### Rails web server
+#### Rails web server
```shell
RAILS_ENV=development bin/rails server
@@ -260,7 +260,7 @@ RAILS_ENV=development bin/rails server
This will start the development server on port `3000` by default.
-### Angular frontend
+#### Angular frontend
To run the frontend server, please run
@@ -275,7 +275,7 @@ should you be working on the TypeScript / Angular frontend part.
You can then access the application either through `localhost:3000` (Rails server) or through the frontend
proxied `http://localhost:4200`, which will provide hot reloading for changed frontend code.
-### Delayed Job background worker
+#### Delayed Job background worker
```shell
RAILS_ENV=development bundle exec good_job start
@@ -283,12 +283,12 @@ RAILS_ENV=development bundle exec good_job start
This will start a Delayed::Job worker to perform asynchronous jobs like sending emails.
-## Additional test dependencies
+### Additional test dependencies
The test suite requires a few additional dependencies to be installed. These are not required for running OpenProject in
development mode, but only for running the entire test suite.
-### Java 7 or later
+#### Java 7 or later
To test the integration with LDAP servers, we rely on [ladle](https://github.com/NUBIC/ladle) to spin up an LDAP server
when running tests. As this runs [ApacheDS](https://directory.apache.org/apacheds/) internally, it requires Java 7 or
@@ -303,7 +303,7 @@ brew install openjdk
sudo ln -sfn $(brew --prefix)/opt/openjdk/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk.jdk
```
-### Subversion
+#### Subversion
To test the integration with Subversion repositories, we rely on the `svnadmin` command to be available. If subversion
is not installed, the tests *will be skipped*. To run the tests, install subversion with
@@ -312,7 +312,7 @@ is not installed, the tests *will be skipped*. To run the tests, install subvers
brew install subversion
```
-### Git
+#### Git
To test the integration with Git repositories, we rely on the `git` command to be available. Git is either installed via
the Xcode Command Line Tools, with [Xcode](https://apps.apple.com/us/app/xcode/id497799835?mt=12) or via homebrew.
@@ -325,9 +325,9 @@ xcode-select --install
brew install git
```
-## Known issues
+### Known issues
-### Spawning a lot of browser tabs
+#### Spawning a lot of browser tabs
If you haven't run this command for a while, chances are that a lot of background jobs have queued up and might cause a
significant amount of open tabs (due to the way we deliver mails with the letter_opener gem). To get rid of the jobs
@@ -338,7 +338,7 @@ in a production setting.**
RAILS_ENV=development bin/rails runner "Delayed::Job.delete_all"
```
-## Start Coding
+### Start Coding
Please have a look at [our development guidelines](../code-review-guidelines) for tips and guides on how to start
coding. We have advice on how to get your changes back into the OpenProject core as smooth as possible.
@@ -346,13 +346,13 @@ Also, take a look at the `doc` directory in our sources, especially
the [how to run tests](https://github.com/opf/openproject/blob/dev/docs/development/running-tests) documentation (we
like to have automated tests for every new developed feature).
-## Troubleshooting
+### Troubleshooting
The OpenProject logfile can be found in `log/development.log`.
If an error occurs, it should be logged there (as well as in the output to STDOUT/STDERR of the rails server process).
-## Questions, Comments, and Feedback
+### Questions, Comments, and Feedback
If you have any further questions, comments, feedback, or an idea to enhance this guide, please tell us at the
appropriate community.openproject.org [forum](https://community.openproject.org/projects/openproject/boards/9).
diff --git a/docs/development/development-environment-ubuntu/README.md b/docs/development/development-environment-ubuntu/README.md
index 104f234faf3..124cca6b7fc 100644
--- a/docs/development/development-environment-ubuntu/README.md
+++ b/docs/development/development-environment-ubuntu/README.md
@@ -23,7 +23,7 @@ Remark: *At the time of writing* in this page refers to 12/10/2021
If you find any bugs or you have any recommendations for improving this tutorial, please, feel free to send a pull
request or comment in the [OpenProject forums](https://community.openproject.org/projects/openproject/boards).
-# Prepare your environment
+## Prepare your environment
We need an active Ruby and Node JS environment to run OpenProject. To this end, we need some packages installed on the
system.o
@@ -36,14 +36,14 @@ sudo apt-get update
sudo apt-get install git curl build-essential zlib1g-dev libyaml-dev libssl-dev libpq-dev libreadline-dev
```
-## Install Ruby
+### Install Ruby
Use [rbenv](https://github.com/rbenv/rbenv) and [ruby-build](https://github.com/rbenv/ruby-build#readme) to install
Ruby. We always require the latest ruby versions, and you can check which version is required
by [checking the Gemfile](https://github.com/opf/openproject/blob/dev/Gemfile#L31) for the `ruby "~> X.Y"` statement. At
the time of writing, this version is "3.2.3"
-### Install rbenv and ruby-build
+#### Install rbenv and ruby-build
rbenv is a ruby version manager that lets you quickly switch between ruby versions.
ruby-build is an addon to rbenv that installs ruby versions.
@@ -64,7 +64,7 @@ echo 'eval "$(rbenv init - bash)"' >> ~/.bashrc
source ~/.bashrc
```
-### Installing ruby-build
+#### Installing ruby-build
ruby-build is an addon to rbenv that installs ruby versions
@@ -72,7 +72,7 @@ ruby-build is an addon to rbenv that installs ruby versions
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
```
-### Installing ruby
+#### Installing ruby
With both installed, we can now install ruby. You can check available ruby versions with `rbenv install --list`.
At the time of this writing, the latest stable version is `3.2.3` which we also require.
@@ -100,7 +100,7 @@ an error, first try with a fresh reboot).
If you get `Command 'gem' not found...` here, ensure you followed the instructions `rbenv init` command to ensure it is
loaded in your shell.
-## Setup PostgreSQL database
+### Setup PostgreSQL database
Next, install a PostgreSQL database.
@@ -127,12 +127,12 @@ Now, create the database `openproject_dev` and `openproject_test` owned by the p
[postgres@ubuntu]# exit
```
-## Install Node.js
+### Install Node.js
We will install the latest LTS version of Node.js via [nodenv](https://github.com/nodenv/nodenv). This is basically the
same steps as for rbenv:
-### Install nodenv
+#### Install nodenv
```shell
# Install nodenv
@@ -150,13 +150,13 @@ echo 'eval "$(nodenv init -)"' >> ~/.bashrc
source ~/.bashrc
```
-### Install node-build
+#### Install node-build
```shell
git clone https://github.com/nodenv/node-build.git $(nodenv root)/plugins/node-build
```
-### Install latest LTS node version
+#### Install latest LTS node version
You can find the latest LTS version here: [nodejs.org/en/download/](https://nodejs.org/en/download/)
@@ -168,13 +168,13 @@ nodenv global 20.9.0
nodenv rehash
```
-### Update NPM to the latest version
+#### Update NPM to the latest version
```shell
npm install npm@latest -g
```
-## Verify your installation
+### Verify your installation
You should now have an active ruby and node installation. Verify that it works with these commands.
@@ -192,7 +192,7 @@ npm --version
10.5.0
```
-# Install OpenProject Sources
+## Install OpenProject Sources
In order to create a pull request to the core OpenProject repository, you will want to fork it to your own GitHub
account.
@@ -214,7 +214,7 @@ Note that we have checked out the `dev` branch of the OpenProject repository. De
the `dev` branch (there is no `master` branch).
So, if you want to develop a feature, create a feature branch from a current `dev` branch.
-## Configure OpenProject
+### Configure OpenProject
Create and configure the database configuration file in `config/database.yml` (relative to the openproject-directory.
@@ -246,7 +246,7 @@ To configure the environment variables such as the number of web server threads
the `.env.example` to `.env` and add the environment variables you want to configure. The variables will be
automatically loaded to the application's environment.
-## Finish the Installation of OpenProject
+### Finish the Installation of OpenProject
Install code dependencies, link plugin modules and export translation files.
@@ -265,7 +265,7 @@ Now, run the following tasks to seed the dev database, and prepare the test setu
RAILS_ENV=development bin/rails db:seed
```
-## Run OpenProject through overmind
+### Run OpenProject through overmind
You can run all required workers of OpenProject through `overmind`, which combines them in a single tab. Optionally, you
may also
@@ -302,11 +302,11 @@ Username: admin
Password: admin
```
-## Run OpenProject manually
+### Run OpenProject manually
To run OpenProject manually, you need to run the rails server and the webpack frontend bundler to:
-### Rails web server
+#### Rails web server
```shell
RAILS_ENV=development bin/rails server
@@ -314,7 +314,7 @@ RAILS_ENV=development bin/rails server
This will start the development server on port `3000` by default.
-### Angular frontend
+#### Angular frontend
To run the frontend server, please run
@@ -329,7 +329,7 @@ should you be working on the TypeScript / Angular frontend part.
You can then access the application either through `localhost:3000` (Rails server) or through the frontend
proxied `http://localhost:4200`, which will provide hot reloading for changed frontend code.
-### Background job worker
+#### Background job worker
```shell
RAILS_ENV=development bundle exec good_job start
@@ -337,9 +337,9 @@ RAILS_ENV=development bundle exec good_job start
This will start a Delayed::Job worker to perform asynchronous jobs like sending emails.
-## Known issues
+### Known issues
-### Spawning a lot of browser tabs
+#### Spawning a lot of browser tabs
If you haven't run this command for a while, chances are that a lot of background jobs have queued up and might cause a
significant amount of open tabs (due to the way we deliver mails with the letter_opener gem). To get rid of the jobs
@@ -350,7 +350,7 @@ in a production setting.**
RAILS_ENV=development bin/rails runner "Delayed::Job.delete_all"
```
-## Start Coding
+### Start Coding
Please have a look at [our development guidelines](../code-review-guidelines/) for tips and guides on how to start
coding. We have advice on how to get your changes back into the OpenProject core as smooth as possible.
@@ -358,13 +358,13 @@ Also, take a look at the `doc` directory in our sources, especially
the [how to run tests](https://github.com/opf/openproject/tree/dev/docs/development/running-tests) documentation (we
like to have automated tests for every new developed feature).
-## Troubleshooting
+### Troubleshooting
The OpenProject logfile can be found in `log/development.log`.
If an error occurs, it should be logged there (as well as in the output to STDOUT/STDERR of the rails server process).
-## Questions, Comments, and Feedback
+### Questions, Comments, and Feedback
If you have any further questions, comments, feedback, or an idea to enhance this guide, please tell us at the
appropriate community.openproject.org [forum](https://community.openproject.org/projects/openproject/boards/9).
diff --git a/docs/development/git-workflow/README.md b/docs/development/git-workflow/README.md
index 5c4d679a893..d2bbe2d3da1 100644
--- a/docs/development/git-workflow/README.md
+++ b/docs/development/git-workflow/README.md
@@ -5,17 +5,15 @@ description: How new features and bug fixes are developed at OpenProject
keywords: development workflow, gitflow, git flow
---
+# Development workflow
-
-# Development at GitHub
+## Development at GitHub
This guide will introduce you to how we at OpenProject develop OpenProject with Git, and how to contribute code. For other ways on how to contribute to OpenProject, [please see the contribution guide](../#contributor-code-of-conduct).
The OpenProject core is developed fully at our [GitHub repository](https://github.com/opf/openproject). In the course of this guide, we assume that you are familiar with Git. If you need a refresher on certain topics, we recommend the [free Pro Git online book](https://git-scm.com/book/en/v2) as a resource for all topics on Git.
-
-
-# Branching model
+## Branching model
OpenProject works with a git branching model similar to Git Flow to organize development and stable branches. The important branches are:
@@ -33,7 +31,7 @@ The following is an overview of the processes that happen during the release of
![Overview of the branches](branching-diagram.png)
-# Contribution flow
+## Contribution flow
The basic overview of how to contribute code to OpenProject is as follows.
@@ -42,9 +40,7 @@ The basic overview of how to contribute code to OpenProject is as follows.
3. [Create a pull request](#create-a-pull-request) on our repository. Please see and review [code style and review](../code-review-guidelines) for guidelines on how to submit a pull request and requirements for getting your changes merged.
4. We will evaluate your pull review and changes.
-
-
-## Fork OpenProject
+### Fork OpenProject
For contributing source code, please follow the git workflow below:
@@ -85,9 +81,7 @@ Make your changes, then push the branch into your **own** repository:
git push origin <your feature branch>
```
-
-
-## Create a Pull Request
+### Create a Pull Request
Create a pull request against a branch of of the `opf/openproject` repository, containing a **clear description** of what the pull request attempts to change and/or fix.
@@ -95,21 +89,16 @@ If your pull request **does not contain a description** for what it does and wha
The core contributor team will then review your pull request according to our [code review guideline](../code-review-guidelines/). Please note that you can add commits after the pull request has been created by pushing to the branch in your fork.
-
-
-### Features
+#### Features
New features are always added to the current `dev` branch, which is the development version of the next major or minor OpenProject version.
-
-
-### Bugs and hotfixes
+#### Bugs and hotfixes
Bugfixes for one of the actively supported versions of OpenProject should be issued against the respective branch. For that, we maintain at least one `release/X.Y` branch for OpenProject releases X.Y.Z. For example, the OpenProject release branch for 11.0 would be `release/11.0` and contains all releases between `11.0.0` until `11.0.X` .
A fix for the current version (called "Hotfix" and the branch ideally being named `fix/XYZ`) should target `release/*` and a fix for the former version (called "Backport" and the branch ideally being named `backport/XYZ`) should target `backport/*`. We will try to merge hotfixes into dev branch but if that is no trivial task, we might ask you to create another PR for that.
-
-### Tagging
+#### Tagging
The stable/X branch with the highest number is the currently supported stable release. Its commits are tagged (e.g. v12.5.8) to pinpoint individual releases.
diff --git a/docs/development/report-a-bug/README.md b/docs/development/report-a-bug/README.md
index 465fe284a2f..e1c9f7a7a65 100644
--- a/docs/development/report-a-bug/README.md
+++ b/docs/development/report-a-bug/README.md
@@ -18,9 +18,9 @@ If you find a bug please create a bug report.
7. Press **Create**.
-# Information you should add to the bug description
+## Information you should add to the bug description
-## Preconditions to reproduce the bug
+### Preconditions to reproduce the bug
Prior to detailing which steps to take to reproduce the error, the necessary preconditions which have to be met should be stated.
@@ -36,7 +36,7 @@ Example:
* Forum messages exist with many replies
```
-## Steps to reproduce the bug
+### Steps to reproduce the bug
* The detailed steps that led to the bug should be listed in the description in order to replicate the bug and determine the underlying problem.
@@ -47,7 +47,7 @@ Example:
2. Scroll to bottom of messages
```
-## Actual behavior
+### Actual behavior
* The actual, erroneous behavior should be stated briefly and concisely.
@@ -57,7 +57,7 @@ Example:
* Not possible to switch to next entry in pagination
```
-## Expected behavior
+### Expected behavior
* If known, the expected behavior of the application should be described concisely.
@@ -67,13 +67,13 @@ Example:
* Possible to switch to next pagination page
```
-## Screenshots
+### Screenshots
* If applicable, a screenshot should be added to the bug report in order to explain the bug visually.
* The unintended behavior should be marked in the screenshot (e.g. by using red color).
* The screenshot can be attached as a file and can be integrated in the description with the following syntax: "!Name_of_screenshot.png!" (without quotation marks)
(Notice: *Name_of_screenshot* should be replaced with the respective name of the file. The file ending (here: *.png*) has to be adjusted to the appropriate file type of the screenshot.)
-## Example of bug reporting
+### Example of bug reporting
![bug_report_example](bug_report_example-1706822.png)
diff --git a/docs/development/running-tests/README.md b/docs/development/running-tests/README.md
index 8db55e8d95e..4f7438fa32d 100644
--- a/docs/development/running-tests/README.md
+++ b/docs/development/running-tests/README.md
@@ -2,9 +2,9 @@
OpenProject uses automated tests throughout the stack. Tests that are executed in the browser (angular frontend, rspec system tests) require to have Chrome installed. To ensure we deliver high quality code to our customers, it's essential to conduct various types of tests.
+## Testing
-
-## Involved Roles
+### Involved Roles
Testing OpenProject is distributed between different roles and members, depending on the testing task.
@@ -14,9 +14,7 @@ Testing OpenProject is distributed between different roles and members, dependin
- **Usability testing**: UX Designer, Customers, Community members
- **Accessibility testing**: Product team, Developer, External accessibility experts
-
-
-## Functional testing
+### Functional testing
Functional testing ensures that the application works against the set of requirements or specifications. Tests should therefore make sure all the acceptance criteria are met.
@@ -33,7 +31,7 @@ The following types of functional tests are used at OpenProject.
-### Unit tests
+#### Unit tests
Unit testing concerns testing of isolating individual components of the application, such as individual methods within a model, service, or library, in order to verify that they perform as expected under various conditions. OpenProject uses RSpec for writing unit tests / specs.
@@ -73,7 +71,7 @@ Unit testing concerns testing of isolating individual components of the applicat
-### Integration tests
+#### Integration tests
Integration tests focus on the interactions between different components of OpenProject to ensure they work together to deliver a specific functionality. OpenProject uses RSpec to perform integration tests to simulate real-world user behavior. In contrast to system tests, integration tests still leave out some assumptions or characteristics of the application (e.g., not running tests in an instrumented browser instance).
@@ -99,7 +97,7 @@ In Rails, the difference between integration tests and feature tests can be blur
-### Feature tests
+#### Feature tests
Feature tests at OpenProject drive a browser instance to act as if a user was operating the application. This includes logging in, setting session cookies, and navigating/manipulating the browser to interact as the user.
@@ -128,7 +126,7 @@ Feature tests at OpenProject drive a browser instance to act as if a user was op
-### Smoke tests
+#### Smoke tests
Smoke tests are automated and manual tests to ensure the main application features and happy paths are working as expected. At OpenProject, all installation methods are automatically tested using smoke tests. Packaging processes test all distributions for successful installation of OpenProject. We run the released docker image for setting up and accessing OpenProject.
@@ -156,7 +154,7 @@ Smoke tests are automated and manual tests to ensure the main application featur
-### Sanity and regression tests
+#### Sanity and regression tests
Sanity and regression tests are manually performed tests by QA for relevant components on a stabilized version, e.g., the developed new features or components of an OpenProject release. A sanity test is a subset of a regression test, which evaluates the entire application prior to a release or production deployment.
@@ -197,7 +195,7 @@ For writing and executing manual sanity and regression testing, especially focus
-### Acceptance tests
+#### Acceptance tests
Acceptance testing is the final phase of testing where the extension to the OpenProject application is evaluated against predefined requirements to ensure it meets user and stakeholder expectations before deployment.
@@ -221,9 +219,7 @@ Acceptance tests evaluate both functional and non-functional requirements.
2. Perform acceptance test in an environment that mimics the production environment as closely as possible. This could be an isolated edge environment, or a separately deployed instance at the customer's request.
3. Maintain clear and detailed documentation of test cases, outcomes, and any *discrepancies* between expected and actual implementation and results.
-
-
-## Non-functional testing
+### Non-functional testing
Non-functional testing goes beyond the functionality of the product and is aimed at end-user experience. Test cases should hence make sure to define what is expected in terms of security, performance, compatibility, accessibility etc.
@@ -239,7 +235,7 @@ Examples for non-functional test cases: software should be compatible with most
-### Performance tests
+#### Performance tests
Identify and prevent common causes of bottlenecks in the application. As OpenProject is a software where a lot of information might come together and presented in a very flexible manner, performance is an ever-present concern and consideration for the developers.
@@ -262,7 +258,7 @@ Identify and prevent common causes of bottlenecks in the application. As OpenPro
-### Security tests
+#### Security tests
Automated or manual security tests for OpenProject are evaluating common weaknesses of web applications and follow the best practices of the [secure coding guidelines](../concepts/secure-coding/).
@@ -287,7 +283,7 @@ Automated or manual security tests for OpenProject are evaluating common weaknes
-### Installation and upgrade tests
+#### Installation and upgrade tests
OpenProject employs a number of automated tests for installation testing. Packaged installation build tests for various distributions, Docker installation smoke tests for verifying correct startup and basic operation of the container.
@@ -315,7 +311,7 @@ Upgrade tests are manually performed for major code changes and data migrations
-### Usability testing
+#### Usability testing
When new features or changes to the application are available on our [Edge or Community environments](../environments), product team members, customers, and community users can provide usability feedback on how the change is perceived.
@@ -344,7 +340,7 @@ When new features or changes to the application are available on our [Edge or Co
-### Accessibility tests
+#### Accessibility tests
OpenProject strives to be accessible for all users while also retaining a high usability. In web applications, these two requirements can sometimes be a seemingly contradictory requirement, especially when animations or *modern* functionalities of browsers are used.
@@ -379,9 +375,7 @@ OpenProject strives to be accessible for all users while also retaining a high u
- https://github.com/dequelabs/axe-core-gems/blob/develop/packages/axe-core-rspec/README.md
- https://github.com/citizensadvice/capybara_accessible_selectors
-
-
-# Continuous testing workflow
+## Continuous testing workflow
As part of the [development flow at OpenProject](../../development/#branching-model-and-development-flow), proposed changes to the core application will be made through a GitHub pull request and the entire test suite is automatically evaluated on GitHub Actions. You will see the results as a status on your pull request.
@@ -389,8 +383,7 @@ You will likely start working with the OpenProject test suite through our contin
Successful test suite runs are one requirement to see your changes merged.
-
-## List failures
+### List failures
A failing status will look like the following on your pull request. You may need to click *Show all checks* to expand all checks to see the details link.
@@ -424,9 +417,7 @@ rspec ./spec/features/work_packages/timeline/timeline_navigation_spec.rb:317 # W
![GitHub job log showing failing test](github-broken-tests.png)
-
-
-## Diagnose failures
+### Diagnose failures
Once you know which tests are failing, run them locally to try and reproduce the failures. Having reproducible failures locally is the first step to diagnose and fix them.
@@ -463,8 +454,7 @@ If you want to run the tests directly to rspec, you can use this command:
./script/github_pr_errors | xargs bundle exec rspec
```
-
-## Tests failing on GitHub Actions CI and passing locally
+### Tests failing on GitHub Actions CI and passing locally
Some tests can fail on GitHub actions CI, and pass locally which makes them harder to reproduce, diagnose, and fix.
@@ -500,35 +490,29 @@ Possible reasons are:
* Roll the migration back: `rails db:migrate:down VERSION=<migration-id>`
* Switch back to where you left: `git switch -`
-
-
-## Skip test execution on GitHub Actions CI
+### Skip test execution on GitHub Actions CI
Sometimes, you know you're pushing changes to a pull request that you now are work in progress or are known to break existing or new tests.
To avoid additional test executions, you can include `[skip ci]` in your commit message to ensure GitHub Actions are not being triggered and skips your build. Please note that a successful merge of your pull request will require a green CI build.
-
-
-# Running tests locally
+## Running tests locally
As there are multiple ways employed to test OpenProject, you may want to run a specific test or test group.
-
-
-## Prerequisites
+### Prerequisites
In order to be able to run tests locally, you need to have set up a local development stack.
-### Verifying your dependencies
+#### Verifying your dependencies
To ensure your local installation is up to date and prepared for development or running tests, there is a helper script `./bin/setup_dev` that installs backend and frontend dependencies. When switching branches or working on a new topic, it is recommended to run this script again.
-### Setting up a test database
+#### Setting up a test database
As part of the development environment guides, you will have created a development and test database and specified it under `config/database.yml`:
@@ -565,9 +549,7 @@ RAILS_ENV=development rails db:migrate db:test:prepare
This migrates the _development_ database, outputting its schema to `db/schema.rb` and will copy this schema to the test database. This ensures your test database matches your current expected schema.
-
-
-## Frontend tests
+### Frontend tests
To run JavaScript frontend tests, first ensure you have all necessary dependencies installed via npm (i.e. `npm install`).
@@ -583,9 +565,7 @@ Alternatively, when in the `frontend/` folder, you can also use the watch mode o
./node_modules/.bin/ng test --watch
```
-
-
-## Unit tests
+### Unit tests
After following the prerequisites, use the following command to run individual specs:
@@ -599,9 +579,7 @@ Run multiple specs by separating them with spaces:
RAILS_ENV=test bundle exec rspec spec/models/work_package_spec.rb spec/models/project_spec.rb
```
-
-
-## System tests
+### System tests
System tests are also called *rspec feature specs* and use [Capybara](https://rubydoc.info/github/teamcapybara/capybara/master) and [Selenium](https://www.selenium.dev/documentation/webdriver/) to run. They are automatically executed with an actual browser when `js: true` is set.
@@ -613,7 +591,7 @@ RAILS_ENV=test bundle exec rspec spec/features/auth/login_spec.rb
-### Dependencies
+#### Dependencies
For the javascript dependent integration tests, you have to install Chrome and Firefox, to run them locally.
@@ -621,7 +599,7 @@ Capybara uses Selenium to drive the browser and perform the actions we describe
-### Running system tests
+#### Running system tests
Almost all system tests depend on the browser for testing, you will need to have the Angular CLI running to serve frontend assets.
@@ -641,7 +619,7 @@ You can also run *all* feature specs locally with this command. This is not reco
RAILS_ENV=test bundle exec rake parallel:features -- --group-number 1 --only-group 1
```
-#### WSL2
+##### WSL2
In case you are on Windows using WSL2 rather than Linux directly, running tests this way will not work. You will see an error like "Failed to find Chrome binary.". The solution here is to use Selenium Grid.
@@ -701,13 +679,13 @@ bundle exec rspec ./modules/documents/spec/features/attachment_upload_spec.rb[1:
There is no need to prefix this with the `RAILS_ENV` here since we've exported it already before.
-### Headless testing
+#### Headless testing
Firefox tests through Selenium are run with Chrome as `--headless` by default. This means that you do not see the browser that is being tested. Sometimes you will want to see what the test is doing to debug. To override this behavior and watch the Chrome or Firefox instance set the ENV variable `OPENPROJECT_TESTING_NO_HEADLESS=1`.
-### Troubleshooting
+#### Troubleshooting
```text
Failure/Error: raise ActionController::RoutingError, "No route matches [#{env['REQUEST_METHOD']}] #{env['PATH_INFO'].inspect}"
@@ -719,9 +697,7 @@ Failure/Error: raise ActionController::RoutingError, "No route matches [#{env['R
If you get an error like this when running feature specs it means your assets have not been built.
You can fix this either by accessing a page locally (if the rails server is running) once or by ensuring the `bin/setup_dev` script has been run.
-
-
-## Entire local RSpec suite
+### Entire local RSpec suite
You can run the specs with the following commands:
@@ -729,14 +705,13 @@ You can run the specs with the following commands:
* `SPEC_OPTS="--seed 12935" bundle exec rake spec` Run the core specs with the seed 12935. Use this to control in what order the tests are run to identify order-dependent failures. You will find the seed that GitHub Actions CI used in their log output.
-
-## Parallel testing
+### Parallel testing
Running tests in parallel makes usage of all available cores of the machine.
Functionality is being provided by [parallel_tests](https://github.com/grosser/parallel_tests) gem.
See its GitHub page for any options like number of cpus used.
-### Prepare
+#### Prepare
By default, `parallel_test` will use CPU count to parallelize. This might be a bit much to handle for your system when 8 or more parallel browser instances are being run. To manually set the value of databases to create and tests to run in parallel, use this command:
@@ -762,11 +737,11 @@ First migrate and dump your current development schema with `RAILS_ENV=developme
Then you can just use `RAILS_ENV=test ./bin/rails parallel:prepare` to prepare test databases.
-### RSpec specs
+#### RSpec specs
Run all unit and system tests in parallel with `RAILS_ENV=test ./bin/rails parallel:spec`
-### Running specific tests
+#### Running specific tests
If you want to run specific tests (e.g., only those from the team planner module), you can use this command:
@@ -774,7 +749,7 @@ If you want to run specific tests (e.g., only those from the team planner module
RAILS_ENV=test bundle exec parallel_rspec -- modules/team_planner/spec
```
-## Automatically run tests when files are modified
+### Automatically run tests when files are modified
To run tests automatically when a file is modified, you can use [watchexec](https://github.com/watchexec/watchexec) like this:
@@ -796,18 +771,17 @@ wrspec spec/some/path/to/a_particular_spec.rb
To easily change the RSpec examples being run without relaunching `watchexec` every time, you can focus a particular example or example group with `focus: true`, `fit`, `fdescribe`, and `fcontext`. More details available on [RSpec documentation](https://rspec.info/features/3-12/rspec-core/filtering/filter-run-when-matching/).
-
-## Manual acceptance tests
+### Manual acceptance tests
* Sometimes you want to test things manually. Always remember: If you test something more than once, write an automated test for it.
* Assuming you do not have a version of Edge already installed on your computer, you can grab a VM with preinstalled IE's directly from [Microsoft](https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/)
-## Accessing a local OpenProject instance from a VM or mobile phone
+### Accessing a local OpenProject instance from a VM or mobile phone
If you want to access the development server of OpenProject from a VM or your mobile phone, you need to work around the
CSP `localhost` restrictions.
-### Old way, fixed compilation
+#### Old way, fixed compilation
One way is to disable the Angular CLI that serves some of the assets when developing. To do that, run
@@ -821,7 +795,7 @@ OPENPROJECT_CLI_PROXY='' ./bin/rails s -b 0.0.0.0 -p 3000
Now assuming networking is set up in your VM, you can access your app server on `<your local ip>:3000` from it.
-### New way, with ng serve
+#### New way, with ng serve
**The better way** when you want to develop against your local setup is to set up your server to allow the CSP to the
remote host.
@@ -840,7 +814,7 @@ OPENPROJECT_CLI_PROXY='http://<your local ip>:4200' ./bin/rails s -b 0.0.0.0 -p
You might have to also update your host name setting `bundle exec rake setting:set[host_name=yourip]`.
-## Legacy LDAP tests
+### Legacy LDAP tests
OpenProject supports using LDAP for user authentications. To test LDAP
with OpenProject, load the LDAP export from `test/fixtures/ldap/test-ldap.ldif`
@@ -851,12 +825,12 @@ Setting up the test ldap server is beyond the scope of this documentation.
The Apache DS project provides a simple LDAP implementation that should work
good as a test server.
-## Running tests locally in Docker
+### Running tests locally in Docker
Most of the above applies to running tests locally, with some docker specific setup changes that are discussed [in the
docker development documentation](../development-environment-docker).
-## Generators
+### Generators
In order to support developer productivity and testing confidence, we've extracted out common setup and boilerplate for good tests
as RSpec generators and are encouraged to use them when adding a new spec file in OpenProject.
@@ -874,3 +848,4 @@ Along with the generators, we've bundled some helpful **USAGE** guides for each
```shell
./bin/rails generate open_project:rspec:GENERATOR_NAME -h
```
+
diff --git a/docs/getting-started/my-account/README.md b/docs/getting-started/my-account/README.md
index d0c9f146dca..2ed90d97ed0 100644
--- a/docs/getting-started/my-account/README.md
+++ b/docs/getting-started/my-account/README.md
@@ -255,7 +255,7 @@ Also, you can upload a **Custom Avatar** by choosing a Avatar to be uploaded fro
> **Note**: The optimum size to upload a new profile picture is 128 by 128 pixel. Larger files will be cropped.
-# Delete account
+## Delete account
You can delete your own account in **My account**.
diff --git a/docs/installation-and-operations/configuration/README.md b/docs/installation-and-operations/configuration/README.md
index c172ca308a8..ddcfaa3c511 100644
--- a/docs/installation-and-operations/configuration/README.md
+++ b/docs/installation-and-operations/configuration/README.md
@@ -16,7 +16,7 @@ OpenProject can be configured via environment variables. These are often helpful
-# Packaged installation
+## Packaged installation
The file `/opt/openproject/.env.example` contains some information to learn more. Files stored within `/etc/openproject/conf.d/` are used for parsing the variables and your custom values to your configuration. Whenever you call `openproject config:set VARIABLE=value`, it will end up in this folder.
@@ -36,9 +36,9 @@ After the file `/etc/openproject/conf.d/other` is changed the command `sudo ope
Configuring OpenProject through environment variables is described in detail [in the environment variables guide](environment/).
-# Docker
+## Docker
-## one container per process installation
+### one container per process installation
Add your custom configuration to `docker-compose.override.yml`.
@@ -128,7 +128,7 @@ Let's say you have a `.env.prod` file with some production-specific configurati
docker-compose --env-file .env.prod up
```
-### Disabling services in the docker-compose file
+#### Disabling services in the docker-compose file
If you have a `docker-compose.override.yml` file created, it is also easy to disable certain services, such as the database container if you have an external one running anyway.
@@ -145,7 +145,7 @@ Configuring OpenProject through environment variables is described in detail [in
-## Docker all-in-one container installation
+### Docker all-in-one container installation
Environment variables can be either passed directly on the command-line to the
Docker Engine, or via an environment file:
@@ -160,7 +160,7 @@ Configuring OpenProject through environment variables is described in detail [in
-# Seeding through environment
+## Seeding through environment
OpenProject allows some resources to be seeded/created initially through configuration variables.
@@ -171,7 +171,7 @@ OpenProject allows some resources to be seeded/created initially through configu
-## Initial admin user creation
+### Initial admin user creation
**Note:** These variables are only applicable during the first initial setup of your OpenProject setup. Changing or setting them later will have no effect, as the admin user will already have been created.
@@ -190,7 +190,7 @@ OPENPROJECT_SEED_ADMIN_USER_MAIL="[email protected]" # Email attribute to assign
-## Seeding LDAP connections
+### Seeding LDAP connections
OpenProject allows you to create and maintain an LDAP connection with optional synchronized group filters. This is relevant for e.g., automated deployments, where you want to trigger the synchronization right at the start.
@@ -258,7 +258,7 @@ When a filter is defined, synchronization happens directly during seeding for en
-# Examples for common use cases
+## Examples for common use cases
* `attachments_storage_path`
* `autologin_cookie_name` (default: 'autologin'),
@@ -290,7 +290,7 @@ When a filter is defined, synchronization happens directly during seeding for en
-## Allowing public access
+### Allowing public access
By default, any request to the OpenProject application needs to be authenticated. If you want to enable public unauthenticated access like we do for https://community.openproject.org, you can set the `login_required` to `false`. If not provided through environment variables, this setting is also accessible in the administrative UI. Please see the [authentication settings guide](../../system-admin-guide/authentication/authentication-settings/#general-authentication-settings) for more details.
@@ -304,7 +304,7 @@ OPENPROJECT_LOGIN__REQUIRED="false"
-## Setting session options
+### Setting session options
**Delete old sessions for the same user when logging in**
@@ -326,13 +326,13 @@ To disable, set the configuration option:
OPENPROJECT_DROP__OLD__SESSIONS__ON__LOGOUT="false"
```
-## Attachments storage
+### Attachments storage
You can modify the folder where attachments are stored locally. Use the `attachments_storage_path` configuration variable for that. But ensure that you move the existing paths. To find out the current path on a packaged installation, use `openproject config:get OPENPROJECT_ATTACHMENTS__STORAGE__PATH`.
To update the path, use `openproject config:set OPENPROJECT_ATTACHMENTS__STORAGE__PATH="/path/to/new/folder"`. Ensure that this is writable by the `openproject` user. Afterwards issue a restart by `sudo openproject configure`
-### attachment storage type
+#### attachment storage type
Attachments can be stored using e.g. Amazon S3, In order to set these values through ENV variables, add to the file :
@@ -349,7 +349,7 @@ OPENPROJECT_FOG_DIRECTORY="uploads"
-## Auth source sso
+### Auth source sso
Can be used to automatically login a user defined through a custom header sent by a load balancer or reverse proxy in front of OpenProject, for instance in a Kerberos Single Sign-On (SSO) setup via apache.
The header with the given name has to be passed to OpenProject containing the logged in user and the defined global secret as in `$login:$secret`.
@@ -375,9 +375,9 @@ auth_source_sso:
-## Backups
+### Backups
-### Enable backups
+#### Enable backups
If enabled, admins (or users with the necessary permission) can download backups of the OpenProject installation
via OpenProject's web interface or via the API.
@@ -388,7 +388,7 @@ via OpenProject's web interface or via the API.
OPENPROJECT_BACKUP__ENABLED="false"
```
-### Backup attachment size max sum mb
+#### Backup attachment size max sum mb
Per default the maximum overall size of all attachments must not exceed 1GB for them to be included in the backup. If they are larger only the database dump will be included.
@@ -398,7 +398,7 @@ Per default the maximum overall size of all attachments must not exceed 1GB for
OPENPROJECT_BACKUP__ATTACHMENT__SIZE__MAX__SUM__MB="8192"
```
-### Additional configurations for backup
+#### Additional configurations for backup
```yaml
OPENPROJECT_BACKUP__DAILY__LIMIT="3"
@@ -408,7 +408,7 @@ OPENPROJECT_BACKUP__INITIAL__WAITING__PERIOD="86400"
-## BCrypt configuration
+### BCrypt configuration
OpenProject uses BCrypt to derive and store user passwords securely. BCrypt uses a so-called Cost Factor to derive the computational effort required to derive a password from input.
@@ -422,11 +422,11 @@ OPENPROJECT_OVERRIDE__BCRYPT__COST__FACTOR="16"
-## Database configuration and SSL
+### Database configuration and SSL
Please see [this separate guide](./database/) on how to set a custom database connection string and optionally, require SSL/TTLS verification.
-## disable password login
+### disable password login
If you enable this option you have to configure at least one omniauth authentication
provider to take care of authentication instead of the password login.
@@ -442,7 +442,7 @@ OPENPROJECT_DISABLE__PASSWORD__LOGIN="true"
-## omniauth direct login provider
+### omniauth direct login provider
Per default the user may choose the usual password login as well as <u>several</u> omniauth providers on the login page and in the login drop down menu. With this configuration option you can set a specific omniauth provider to be used for direct login. Meaning that the login provider selection is skipped and the configured provider is used directly (non-interactive) instead.
@@ -459,7 +459,7 @@ This route is only available when the direct login provider is set.
OPENPROJECT_OMNIAUTH__DIRECT__LOGIN__PROVIDER="google"
```
-## prevent omniauth remapping of existing users
+### prevent omniauth remapping of existing users
Per default external authentication providers through OmniAuth (such as SAML or OpenID connect providers) are allowed to take over existing
accounts if the mapped login is already taken. This is usually desirable, if you have e.g., accounts created through LDAP and want these
@@ -474,7 +474,7 @@ to create a new account.
OPENPROJECT_OAUTH__ALLOW__REMAPPING__OF__EXISTING__USERS="false"
```
-## Gravatar images
+### Gravatar images
OpenProject uses gravatar images with a `404` fallback by default to render an internal, initials-based avatar.
You can override this behavior by setting `gravatar_fallback_image` to a different value to always render Gravatars
@@ -503,7 +503,7 @@ rake attachments:copy_to[file]
> **NOTE:** that you have to configure the respective storage (i.e. fog) beforehand as described in the previous section. In the case of fog you only have to configure everything under `fog`, however. Don't change `attachments_storage` to `fog` just yet. Instead leave it as `file`. This is because the current attachments storage is used as the source for the migration.
-## direct uploads
+### direct uploads
> **NOTE**: This only works for AWS S3 or S3-compatible storages<sup>\*</sup>. When using fog with another provider this configuration will be `false`. The same goes for when no fog storage is configured, or when the `use_iam_profile` option is used in the fog credentials when using S3.
@@ -526,7 +526,7 @@ OPENPROJECT_REMOTE__STORAGE__UPLOAD__HOST=mybucket.s3.amazonaws.com
OPENPROJECT_REMOTE__STORAGE__DOWNLOAD__HOST=mybucket.s3.eu-west.amazonaws.com"
```
-### fog download url expires in
+#### fog download url expires in
When using remote storage for attachments via fog - usually S3 (see [`attachments_storage`](#attachments-storage) option) - each attachment download will generate a temporary URL. This option determines how long these links will be valid.
@@ -538,7 +538,7 @@ The default is 21600 seconds, that is 6 hours, which is the maximum expiry time
OPENPROJECT_FOG__DOWNLOAD__URL__EXPIRES__IN="60"
```
-## Force help link
+### Force help link
You can override the default help menu of OpenProject by specifying a `force_help_link` option to
the configuration. This value is used for the href of the help link, and the default dropdown is removed.
@@ -549,7 +549,7 @@ the configuration. This value is used for the href of the help link, and the def
OPENPROJECT_FORCE__HELP__LINK="https://it-support.example.com"
```
-## Impressum link
+### Impressum link
You can set a impressum link (legal notice) for your OpenProject instance by setting `impressum_link` to an absolute URL.
@@ -559,7 +559,7 @@ You can set a impressum link (legal notice) for your OpenProject instance by set
OPENPROJECT_IMPRESSUM__LINK="https://impressum.example.com"
```
-## Hidden menu items admin menu
+### Hidden menu items admin menu
You can disable specific menu items in the menu sidebar for each main menu (such as Administration and Projects). The configuration can be done through environment variables. You have to define one variable for each menu that shall be hidden.
@@ -579,9 +579,9 @@ OPENPROJECT_HIDDEN__MENU__ITEMS_ADMIN__MENU="roles types statuses workflows enum
-## Rate limiting and blocklisting
+### Rate limiting and blocklisting
-### Rate limiting
+#### Rate limiting
OpenProject provides some rate limiting protections. The default configuration protects against repeated access to authentication credential resets (e.g., lost password functionality).
@@ -591,7 +591,7 @@ You can optionally enable additional rules on API rate limiting as follows:
Additional application-level rate limiting rules will be added in the future. Additionally to these application level rules, use your load balancer / proxying web server to apply individual rate limiting rules using modules such as `ngx_http_limit_req_module` or `mod_security`.
-### Blacklisted routes
+#### Blacklisted routes
You can blacklist specific routes
@@ -603,7 +603,7 @@ The following example forbid all routes for the second example at the 'hidden me
OPENPROJECT_BLACKLISTED__ROUTES="admin/info admin/plugins project_types colors settings admin/enumerations workflows/* statuses types admin/roles"
```
-## disabled modules
+### disabled modules
Modules may be disabled through the configuration.
Just give a list of the module names either as an array or as a string with values separated by spaces.
@@ -614,7 +614,7 @@ Just give a list of the module names either as an array or as a string with valu
OPENPROJECT_DISABLED__MODULES="backlogs meetings"
```
-## local checkout path
+### local checkout path
*default: "repositories"*
@@ -624,7 +624,7 @@ Remote git repositories will be checked out here.
note: to be verified, maybe option was removed, not in environement variables list
```
-## APIv3 enable basic auth
+### APIv3 enable basic auth
You can control basic auth access to the APIv3 with the following configuration option:
@@ -634,7 +634,7 @@ You can control basic auth access to the APIv3 with the following configuration
OPENPROJECT_APIV3__ENABLE__BASIC__AUTH="false"
```
-## global basic auth
+### global basic auth
*default: none*
@@ -654,7 +654,7 @@ default:
password: adminpw
```
-## Security Upgrade Badge
+### Security Upgrade Badge
OpenProject provides a release indicator (security badge) that will inform administrators of an OpenProject installation on whether new releases or security updates are available for your platform. If enabled, this option will display a badge with your installation status at Administration &gt; Information right next to the release version, and on the home screen. It is only displayed to administrators.
@@ -668,7 +668,7 @@ To disable rendering the badge, uncheck the setting at Administration &gt; Syste
OPENPROJECT_SECURITY__BADGE__DISPLAYED="false"
```
-## Cache configuration options
+### Cache configuration options
* `rails_cache_store`: `memcache` for [memcached](https://www.memcached.org/), `redis` for [Redis cache](https://redis.io/), or `memory_store` (default: `file_store`)
* When using `memcached`, the following configuration option is relevant:
@@ -680,17 +680,17 @@ OPENPROJECT_SECURITY__BADGE__DISPLAYED="false"
* `cache_expires_in`: Expiration time for memcache entries (default: `nil`, no expiry)
* `cache_namespace`: Namespace for cache keys, useful when multiple applications use a single memcache server (default: `nil`)
-## rails asset host
+### rails asset host
`rails_asset_host`: A custom host to use to serve static assets such as javascript, CSS, images, etc. (default: `nil`)
-## onboarding video url
+### onboarding video url
`onboarding_video_url`: An URL for the video displayed on the onboarding modal. This is only shown when the user logs in for the first time.
*default="[https://player.vimeo.com/video/163426858?autoplay=1](https://player.vimeo.com/video/163426858?autoplay=1)"*
-## enterprise fail fast
+### enterprise fail fast
If using an Enterprise token there are certain limits that apply. You can configure how these limits are enforced.
@@ -717,7 +717,7 @@ enterprise:
fail_fast: true
```
-## Show or hide community links
+### Show or hide community links
If you would like to hide the homescreen links to the OpenProject community, you can do this with the following configuration:
@@ -727,7 +727,7 @@ If you would like to hide the homescreen links to the OpenProject community, you
OPENPROJECT_SHOW__COMMUNITY__LINKS=false
```
-## Web worker configuration
+### Web worker configuration
Configuration of the main ruby web server (currently puma). Sensible *defaults* are provided.
@@ -741,9 +741,9 @@ OPENPROJECT_WEB_MAX__THREADS="16"
> **NOTE:** Timeouts only are supported when using at least 2 workers.
-## Two-factor authentication
+### Two-factor authentication
-### 2fa enforced
+#### 2fa enforced
You can set the available 2FA strategies and/or enforce or disable 2FA system-wide.
@@ -783,7 +783,7 @@ OPENPROJECT_2FA_DISABLED="true"
OPENPROJECT_2FA_ACTIVE__STRATEGIES="[]"
```
-### statsd
+#### statsd
*default: { host: nil, port: 8125 }*
@@ -796,7 +796,7 @@ OPENPROJECT_STATSD_HOST="127.0.0.1"
OPENPRJOECT_STATSD_PORT="8125"
```
-## Other configuration topics
+### Other configuration topics
| Topic | Content |
| ------------------------------------------------------------ | :----------------------------------------------------------- |
diff --git a/docs/installation-and-operations/configuration/environment/README.md b/docs/installation-and-operations/configuration/environment/README.md
index 7d554c32b27..dd51cec0cfb 100644
--- a/docs/installation-and-operations/configuration/environment/README.md
+++ b/docs/installation-and-operations/configuration/environment/README.md
@@ -4,8 +4,6 @@ sidebar_navigation:
priority: 10
---
-
-
# Environment variables
> **NOTE:** This documentation is for OpenProject on-premises Installations only, if you would like to setup similar in your OpenProject cloud instance, please contact us at [email protected]
@@ -51,16 +49,12 @@ storage config above like this:
OPENPROJECT_STORAGE_TYPE=nfs
```
-
-
## Seed variables
Some of the provided variables are only applicable during the seeding of a new installation (i.e., during the first start or run of the `db:seeds` setup task).
These variables are prefixed with `OPENPROJECT_SEED_*` to identify them. Changing these variables to a new value in a running system of OpenProject will likely have no effect unless explicitly marked in the configuration guides.
-
-
## Passing data structures to the app
The configuration uses YAML to parse overrides from ENV. Using YAML inline syntax, you can:
@@ -93,7 +87,7 @@ enterprise:
fail_fast: true
```
-# Supported environment variables
+## Supported environment variables
A list of all configuration variables that can be overridden by defining them in the environment from bash could be generated by executing the following rake task:
@@ -347,10 +341,10 @@ OPENPROJECT_WORKING__DAYS (default=[1, 2, 3, 4, 5]) Set working days of the week
OPENPROJECT_YOUTUBE__CHANNEL (default="https://www.youtube.com/c/OpenProjectCommunity") Link to YouTube channel in help menu
```
-# Environment-specific configuration variables
+### Environment-specific configuration variables
-## Docker
+#### Docker
-### PostgreSQL statement_timeout
+##### PostgreSQL statement_timeout
In docker installations, there is a default `statement_timeout` of 90s set for the docker image. To override this value in case you're getting statement timeout errors such as "ERROR: canceling statement due to statement timeout", use the environment variable `POSTGRES_STATEMENT_TIMEOUT`
diff --git a/docs/installation-and-operations/configuration/repositories/README.md b/docs/installation-and-operations/configuration/repositories/README.md
index 63ecadb8a90..fa115dab355 100644
--- a/docs/installation-and-operations/configuration/repositories/README.md
+++ b/docs/installation-and-operations/configuration/repositories/README.md
@@ -167,11 +167,11 @@ It could also externally be refreshed by using a cron job using the Sys API. Exe
For a future release, we are hoping to provide a webhook to update changesets and storage immediately after a change has been committed to the repository.
-# Accessing repositories through Apache
+## Accessing repositories through Apache
With managed repositories, OpenProject takes care of the lifetime of repositories and their association with projects, however we still need to serve the repositories to the client.
-## Preliminary Setup
+### Preliminary Setup
In the remainder of this document, we assume that you run OpenProject using a separate process, which listens for requests on `http://localhost:3000` that you serve over Apache using a proxy.
@@ -189,7 +189,7 @@ forget to save the settings). We need that API key later in our Apache configura
You also need a distinct filesystem path for Subversion and Git repositories.
In this guide, we assume that you put your svn repositories in /srv/openproject/svn and your git repositories in /srv/openproject/git .
-## Subversion Integration
+### Subversion Integration
Apache provides the module `mod_dav_svn` to serve Subversion repositories through HTTP(s).
@@ -200,7 +200,7 @@ apt-get install subversion libapache2-mod-perl2 libapache2-svn
a2enmod proxy proxy_http dav dav_svn
```
-### Permissions
+#### Permissions
**Important:** If Apache and OpenProject run under separate users, you need to ensure OpenProject remains the owner of the repository in order to browse and delete it, when requested through the user interface.
@@ -216,11 +216,11 @@ Without correcting the permissions, the following situation will occur:
The following workarounds exist:
-#### Apache running `mod_dav_svn` and OpenProject must be run with the same user
+##### Apache running `mod_dav_svn` and OpenProject must be run with the same user
This is a simple solution, but theoretically less secure when the server provides more than just SVN and OpenProject.
-#### Use Filesystem ACLs
+##### Use Filesystem ACLs
You can define ACLs on the managed repository root (requires compatible FS).
You'll need the the `acl` package and define the ACL.
@@ -263,19 +263,19 @@ On many file systems, ACLS are enabled by default. On others, you might need to
Note that this issue applies to mod_dav_svn only.
-### Use the Apache wrapper script
+#### Use the Apache wrapper script
Similar to the integration we use ourselves for the packager-based installation, you can set up Apache to manage repositories using the remote hook in OpenProject.
For more information, see the section 'Managing Repositories Remotely'.
-### Exemplary Apache Configuration
+#### Exemplary Apache Configuration
We provide an example apache configuration. Some details are explained inline as comments.
​
-## Git Integration
+### Git Integration
We can exploit git-http-backend to serve Git repositories through HTTP(s) with Apache.
@@ -291,12 +291,12 @@ Depending on your installation, it may reside in `/usr/libexec/git-core/git-http
[More information on git-http-backend.](https://git-scm.com/docs/git-http-backend)
-### Permissions
+#### Permissions
We create bare Git repositories in OpenProject with the [`--shared`](https://www.kernel.org/pub/software/scm/git/docs/git-init.html) option of `git-init` set to group-writable.
Thus, if you use a separate user for Apache and OpenProject, they need to reside in a common group that is used for repository management. That group must be set in the `configuration.yml` (see above).
-### Exemplary Apache Configuration
+#### Exemplary Apache Configuration
We provide an example apache configuration. Some details are explained inline as comments.
diff --git a/docs/installation-and-operations/installation/misc/README.md b/docs/installation-and-operations/installation/misc/README.md
index 49a05ff771e..c854c7f0713 100644
--- a/docs/installation-and-operations/installation/misc/README.md
+++ b/docs/installation-and-operations/installation/misc/README.md
@@ -17,7 +17,7 @@ on different platforms which use either the docker container or the package:
* [Manual (not recommended)](../manual)
-# Community provided installation variants
+## Community provided installation variants
There are additional methods on installing OpenProject, which we will link below for reference. Please note that we do not officially support these methods, and cannot guarantee their stability or correctness.
diff --git a/docs/installation-and-operations/installation/packaged/README.md b/docs/installation-and-operations/installation/packaged/README.md
index f9acedeac45..ee99c7bc6e8 100644
--- a/docs/installation-and-operations/installation/packaged/README.md
+++ b/docs/installation-and-operations/installation/packaged/README.md
@@ -305,11 +305,11 @@ sudo zypper install openproject
Then finish the installation by reading the [*Initial configuration*](#initial-configuration) section.
-# Full-text extraction not supported
+## Full-text extraction not supported
For some distributions we do not provide the required dependencies for full-text extraction of attachments. If you need this feature, please install the required dependencies (`catdoc unrtf poppler-utils tesseract-ocr`) manually. For more information, [please see the plaintext gem](https://github.com/planio-gmbh/plaintext). Once installed, check `Administration > Information` to see if OpenProject is able to pick up these dependencies.
-# Initial Configuration
+## Initial Configuration
After you have successfully installed the OpenProject package, you can now perform the initial configuration of OpenProject, using the wizard that ships with the OpenProject package.
diff --git a/docs/release-notes/10/10-6-0/README.md b/docs/release-notes/10/10-6-0/README.md
index 7d4b956e2e7..60b28f5f5f3 100644
--- a/docs/release-notes/10/10-6-0/README.md
+++ b/docs/release-notes/10/10-6-0/README.md
@@ -6,15 +6,15 @@ release_version: 10.6.0
release_date: 2020-06-02
---
-# Release notes OpenProject 10.6.0
+# OpenProject 10.6.0
+
+## Release notes OpenProject 10.6.0
| Release notes | Description |
| ------------------------------------------------------------ | :----------------------------------------------------------- |
| [OpenProject 10.6.0](#openproject-1060) | What is new for OpenProject 10.6.0? |
| [OpenProject 10.6.0 BIM edition for construction project management](#openproject-1060-bim-edition) | What is new for the construction project management for the building industry in OpenProject 10.5.0? |
-# OpenProject 10.6.0
-
The new release of the open source project management software brings improved table formatting, quicker time logging, the Slovenian translation, better overview over activities and much more usability improvements and bug fixes.
## Better styling of tables with improved table formatting options
diff --git a/docs/system-admin-guide/authentication/kerberos/README.md b/docs/system-admin-guide/authentication/kerberos/README.md
index 59f66af2c7c..8443606aadf 100644
--- a/docs/system-admin-guide/authentication/kerberos/README.md
+++ b/docs/system-admin-guide/authentication/kerberos/README.md
@@ -139,9 +139,9 @@ For non-existing users, if you have an LDAP configured with automatic user regis
-# Known issues
+## Known issues
-## Using the OpenProject REST API
+### Using the OpenProject REST API
As Kerberos provides its own Basic Auth challenges if configured as shown above, it will prevent you from using the OpenProject API using an Authorization header such as API key authentication or OAuth2.
@@ -195,6 +195,6 @@ ProxyPassReverse /openproject-api/ http://127.0.0.1:6000/openproject/
</LocationMatch>
```
-# Additional resources
+## Additional resources
- [Kerberos documentation by Ubuntu](https://help.ubuntu.com/community/Kerberos)