This is an automated email from the ASF dual-hosted git repository.

lynwee pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake-website.git

commit d3f78750b77a7bdd21610a2cbf0c88a78fb060a7
Author: Startrekzky <[email protected]>
AuthorDate: Thu Nov 9 22:33:36 2023 +0800

    docs: update wordings and diagrams
---
 .../GettingStarted/HowToOrganizeDevlakeProjects.md | 215 ++++++++++++---------
 .../GettingStarted/HowToOrganizeDevlakeProjects.md |  13 +-
 .../version-v0.19/Overview/Architecture.md         |   6 +-
 3 files changed, 132 insertions(+), 102 deletions(-)

diff --git a/docs/GettingStarted/HowToOrganizeDevlakeProjects.md 
b/docs/GettingStarted/HowToOrganizeDevlakeProjects.md
index 1e6fd6a343..524599bc1a 100644
--- a/docs/GettingStarted/HowToOrganizeDevlakeProjects.md
+++ b/docs/GettingStarted/HowToOrganizeDevlakeProjects.md
@@ -1,54 +1,66 @@
 ---
 title: "How to Organize DevLake Projects"
-sidebar_position: 9
+sidebar_position: 1
 description: >
   How to Organize DevLake Projects
 ---
 
 ## 1. Introduction
-DevLake measures DORA on the `project` level. This guide provides step-by-step 
instructions for organizing projects in DevLake. 
-It is intended for team leads and developers who want to track DORA metrics 
and optimize their workflow. 
+This guide provides step-by-step instructions for organizing projects in 
DevLake. 
+It is intended for team leads and developers who want to optimize their 
workflow. 
+Herein, we will explore various use cases to demonstrate the practical 
application of these instructions.
 
-[DORA](../DORA.md) are four metrics measuring engineering velocity and 
stability, which include:
-- Velocity:
-  - [Deployment Frequency](../Metrics/DeploymentFrequency.md): How frequent 
does a project `deploy`?
-  - [Change Lead Time](../Metrics/LeadTimeForChanges.md): How fast are the 
`pull requests` resolved?
+Development teams typically manage `pull requests`, `deployments`, and 
`incidents` using various boards.
+
+Based on such, we want to measure their productivity and stability. This is 
how [DORA](../DORA.md) does that:
+- Productivity:
+  - How many times does the team `deploy`? (a.k.a. [Deployment 
Frequency](../Metrics/DeploymentFrequency.md))
+  - How fast are the `pull requests` resolved? (a.k.a. [Lead 
Time](../Metrics/LeadTimeForChanges.md))
 - Stability:
-  - [Change Failure Rate](../Metrics/CFR.md): The percentage of deployments 
that have caused `incidents` among all `deployments` in a project?
-  - [Median Time to Restore](../Metrics/MTTR.md): How fast are these 
`incidents` solved?
+  - How many `incidents` per `deploys` does the team have? (a.k.a. [Change 
Failure Rate](../Metrics/CFR.md))
+  - How fast are these `incidents` solved? (a.k.a. [Median Time to 
Restore](../Metrics/MTTR.md))
 
-As you can see, all four metrics are based on three core entities: `pull 
requests`, `deployments`, and `incidents`. Therefore, how to group these 
entities by DevLake project is the key to measure DORA precisely.
+All these questions/metrics are based on either `pull requests`, 
`deployments`, or `incidents`.
 
+Note: _All three are completely separate entities and are associated only with 
their project._
 
-## 2. What is a DevLake project?
-A `DevLake project` is a grouping of `pull requests`, `incidents`, or 
`deployments`. It can be seen as a real-world project or product line. DevLake 
measures DORA metrics for each project.
+#### General advice
 
-![](../Configuration/images/HowToOrganizeDevlakeProjects/project_pipeline.png)
+There are 3 red lines when it comes to structuring your DevLake `projects`:
 
-DevLake uses data scope such as `repos`, `boards`, `cicd_scopes` as the 
high-level entities to group `pull requests`, `incidents`, or `deployments`.
+But when we scale this up, a few problems arise:
+- A team usually works with multiple `repos`
+- A team also might work on different projects, and we want to measure these 
projects separately (e.g. it is not the same to work on a big old legacy as on 
a greenfield)
+- There may be multiple teams
+- A `board` contains incidents of multiple teams or projects
+- A `repository` is managed by multiple teams or projects, e.g. a monorepo
+- A `pipeline` can trigger deployments in multiple repos
+- Some organizations want to measure DORA based on projects, and some want to 
measure it by teams
 
-If you have a project like "project A" in the picture, create a DevLake 
project and configure those data scopes would get things done. However, things 
can be more complicated in real world because:
+This is where the `project` concept comes into play.
 
-```
-A repo, board, cicd_scope can be managed by multiple `projects`
-```
-
-For example:
-- A Jira board may contain incidents from multiple teams or projects
-- A GitLab repository is managed by multiple projects, e.g. a monorepo
-- A Jenkins pipeline can trigger deployments in multiple repos
+## 2. What is a DevLake project?
+In practical terms, a project usually involves building or researching 
solutions to address specific problems 
+or explore new opportunities. A DevLake project is a grouping of `pull 
requests`, `deployments`, or `incidents`. 
+It can be seen as a real-world project or product line. DevLake measures DORA 
metrics for each project.
 
-This article will illustrate how to deal with these use cases.
+![](../Configuration/images/HowToOrganizeDevlakeProjects/project_pipeline.png)
 
-Note: _It does not matter if a project works on a particular repository more 
than another.
+Note: _It does not matter if a team works on a particular repository more than 
another.
 The metrics are calculated over the entire set of repos, and the values are 
accumulated.
 More on that: [Debugging DORA Issue 
Metrics](../Troubleshooting/Dashboard.md#debugging-dora-issue-metrics)._
 
-## 3. How many DevLake projects do you need?
+## 3. As a team lead, how many DevLake projects do I need?
+
+DevLake's flexible structure enables you to organize `pull requests`, 
`deployments`, and `incidents` 
+in a manner tailored to your specific projects, teams, or technologies.
 
-In general, if you have 3 projects in your real life and you want to measure 
DORA metrics for all of them, create 3 DevLake projects.
+The examples below show the patterns of how to organize your projects.
+To keep things simple we assume that we work with **GitHub** repos, **Jira** 
boards, 
+and **Jenkins CI/CD** deploys in each GitHub repo.
 
-If your team is contributing to multiple projects and you want to track DORA 
from the team perspective, please create a DevLake project for each project 
instead of for each team.
+The same would apply to other repos (e.g. GitLab or BitBucket), boards (e.g. 
TAPD), 
+or CI/CD (e.g. GitLab CI, Azure DevOps).
 
 ## 4. Use Cases
 This section demonstrates real-life situations and how they get reflected in 
DevLake.
@@ -63,19 +75,25 @@ Note: _If you use webhooks, check the [quick 
note](HowToOrganizeDevlakeProjects.
 Apache Software Foundation (ASF) has and is developing many
 
[projects](https://en.wikipedia.org/wiki/List_of_Apache_Software_Foundation_projects).
 
-To take an example, assume that ASF wants to check the health of the 
development of these projects with DORA. And they need to analyze 2 `projects`: 
DevLake and [Spark](https://spark.apache.org/).
+To take an example we will analyze 2 `projects`: DevLake and 
[Spark](https://spark.apache.org/).
+Both are independent of each other. Assume that ASF wants to check the health 
of the development
+and maintenance of these projects with DORA.
 
-DevLake manages 3 `repos`: 
[incubator-devlake](https://github.com/apache/incubator-devlake), 
[incubator-devlake-website](https://github.com/apache/incubator-devlake-website),
 and 
[incubator-devlake-helm-chart](https://github.com/apache/incubator-devlake-helm-chart).
-
-There are many repos related to _Spark_ in one way or another. To keep it 
simple, they will also pick 3 `repos`: 
[spark](https://github.com/apache/spark), 
[spark-website](https://github.com/apache/spark-website), and 
[incubator-livy](https://github.com/apache/incubator-livy).
+DevLake manages 3 `repos`: 
[incubator-devlake](https://github.com/apache/incubator-devlake), 
+[incubator-devlake-website](https://github.com/apache/incubator-devlake-website),
 
+and 
[incubator-devlake-helm-chart](https://github.com/apache/incubator-devlake-helm-chart).
+There are many repos related to _Spark_ in one way or another. To keep it 
simple, 
+we will also pick 3 `repos`: [spark](https://github.com/apache/spark),
+[spark-website](https://github.com/apache/spark-website), and 
[incubator-livy](https://github.com/apache/incubator-livy).
 
 
![](../Configuration/images/HowToOrganizeDevlakeProjects/project_use_case_1.png)
 
-Both projects use GitHub for storing code (including `pull requests`, 
`deployments` from GitHub Actions, and `incidents` from GitHub issues).
+Both projects use GitHub for storing code (including `pull requests`), 
`deployments` on GitHub Actions, and `incidents`.
 
-Note: _To avoid the confusion between DevLake as a `project` in this use case 
and DevLake as a platform, the following sections will use complete names, i.e. 
`project DevLake` and `platform DevLake` respectively._
+Note: _To avoid confusion between DevLake as a `project` in this use case and 
DevLake as a platform,
+we will use complete names i.e. `project DevLake` and `platform DevLake` 
respectively._
 
-#### 4.1.1. Organize Projects
+#### 4.1.1. Organizing Projects
 First, create two projects on the DevLake platform, one for DevLake and one 
for Spark. 
 These will represent real-world projects.
 
@@ -84,109 +102,122 @@ These will represent real-world projects.
 
 Once these are created, the connections created in the following steps will be 
bound to them.
 
-#### 4.1.2. Add Connections to Projects
+#### 4.1.2. Creating Connections
 
-Since all data (`pull requests`, `deployments`, and `incidents`) is on GitHub 
in this case, they only need to create ONE GitHub connection, and [add the 
project's repos to this connection](/docs/Configuration/GitHub.md).
+Since all is on GitHub in this case, we can use just 1 connection with the 
following properties:
+- it includes all the project's `repos`
+- its scope includes everything we work with (i.e. `pull requests`, 
`deployments`, and `incidents`)
 
-> If you store `incidents` on Jira, for example, you will need to create a 
separate connection just for them.
+If you store `incidents` on Jira, for example, you will need to create a 
separate connection just for them.
 The same applies to `deployments`, a separate connection is needed in case 
they are stored in Jenkins (or any other host for `deployments`).
 
-After a connection is created, add/bind the connection to the project 
following the [Tutorial](/docs/Configuration/Tutorial.md).
+#### 4.1.3. Configuring Connections
+This part is described in [GitHub](../Configuration/GitHub.md) connection 
configuration. Please check the [configuration 
guide](../Configuration/Tutorial.md) for configuring other data sources.
 
-#### 4.1.3. Collect Data
+#### 4.1.4. Using Connections
 
-Click `Collect All Data` in the project's blueprint to trigger the data 
collection and DORA calculation.
+At this point, we have projects and connections created on the platform 
DevLake. 
+It is time to bind those connections to the projects. To do so, follow the 
steps described in the [Tutorial](../Configuration/Tutorial.md).
 
-#### 4.1.4. Check Metrics
+#### 4.1.5. Resulting Metrics
 
-After the pipeline is finished, go to the DORA Dashboard to check if the 
metrics:
+To know if the data of a project is successfully collected to your DORA 
Dashboard:
 
 
![](../Configuration/images/HowToOrganizeDevlakeProjects/navigate_to_dora_1.png)
 
![](../Configuration/images/HowToOrganizeDevlakeProjects/navigate_to_dora_2.png)
 
-If everything goes well, you should see all 4 charts.
+If everything goes well, you should see all the 4 charts.
 If something is wrong, and you are puzzled as to why, check out the
 [Debugging Dora Issue 
Metrics](../Troubleshooting/Dashboard.md#debugging-dora-issue-metrics) page.
 
-#### 4.1.5. How to observe metrics by project?
+#### 4.1.6. How can I observe metrics by project?
 In the same DORA dashboard check out this menu point:
 
![](../Configuration/images/HowToOrganizeDevlakeProjects/observe_metrics_by_project_panel.png)
 
 The metrics should change when you select or deselect projects, representing 
the projects you selected.
 
-### 4.2. Use Case 2: Multiple teams work on different projects but share the 
same data scopes
+### 4.2. Use Case 2: Multiple Teams with Distinct Projects
 
-Consider a scenario where a company operates with several teams, each managing 
one or more projects. For illustration, let us take two teams: the `Payments 
team` and the `Internal Tools team` to simplify the use case.
+Consider a scenario where a company operates with several teams, each managing 
one or more projects. 
+For illustration, we will explore two such teams: the Payments team and the 
Internal Tools team. 
+Here's a simplified representation of this scenario:
 
 #### Quick Overview:
-- The Payments team works on a single project: “payments”. They use GitHub to 
manage `pull_requests`, Jenkins to manage `deployments`, and Jira to manage 
`incidents`.
-- The Internal Tools team manages two projects: “it-legacy” and “it-new”. They 
use GitHub to manage `pull_requests`, Jenkins to manage `deployments`, and the 
team's own tool to manage `incidents`, so they use webhooks to push incidents 
to DevLake.
+- The Payments team works on a single project: “payments”.
+- The Internal Tools team manages two projects: “it-legacy” and “it-new”.
 - Both teams use different sets of tools and boards.
 
 
![](../Configuration/images/HowToOrganizeDevlakeProjects/project_use_case_2.png)
 
-#### 4.2.1. Organize Projects
+#### Step-by-Step Simplification:
+1. **Define the Teams and Projects:**
+   - **Payments Team**:
+     - One project: "payments". 
+   - **Internal Tools Team**:
+     - Two projects: "it-legacy" and "it-new". 
+2. **Understand the Tools**:
+   - Assume both teams utilize GitHub for `repos` and Jenkins for CI/CD.
+   - The _Payments_ team uses Jira boards.
+   - The _Internal Tools_ team uses webhooks for reporting incidents.
+
+#### 4.2.1. Organizing Projects
 
-✅ Create three projects: _payments_, _it-legacy_, and _it-new_.
+DORA is effective for observing the impacts of methodology changes within a 
team.
+From DORA’s standpoint, the concept of distinct `teams` is not recognized; 
only `projects` exist. 
+Adding a `team` concept introduces unnecessary complexity without providing 
any substantial benefit. 
 
-❌ Create two projects: _payments_ and _internal-tools_.
+In DevLake, we create three `projects`: _payments_, _it-legacy_, and _it-new_.
 
-The second approach is not recommended for data accuracy. For example, the 
_Change Failure Rate_ relies on the association between _incidents_ and 
_deployments_ under the same project in a chronological order. If a DevLake 
project _"internal-tools"_ is created to measure DORA on a team level, the 
incidents in project A may be asscociated to a deployment in project B when 
calculating CFR; while the deployment in project B may have not caused any 
incidents. This will turn out to an inaccur [...]
+It is crucial to maintain **atomic** `projects`, representing the smallest, 
independent units, 
+to prevent complexity and ensure precise data representation. **Atomic** 
`projects` allow for a more flexible 
+and accurate data comparison and combination between `projects`.
 
-#### 4.2.2. Create Connections
+#### 4.2.2. Adding Connections
 
 Create just one connection and reuse it across projects by adding data scopes.
 This method optimizes data collection, minimizing redundancy and ensuring more 
efficient use of resources.
 
-> It is NOT recommended to create multiple connections, for instance, GitHub 
repos, as it will increase the time to collect the data due to the storage of 
multiple copies of shared repos in the database.<br/>
-> The only exception is the webhooks: **users need to create 1 webhook per 
project**, 
-as this is the precise way to assign `incidents` to the corresponding 
`project`.
+It is NOT recommended to create multiple connections, for instance, GitHub 
repos, as it  
+will increase the time to collect the data due to the storage of multiple 
copies of shared repos in the database.
 
-So, in total they will have to create following connections:
-- 1 connection to GitHub with all projects' repos added to collect `pull 
requests`.
-- 1 connection to Jenkins with all projects' deployment jobs added to collect 
`deployments`.
-- 1 connection to Jira with all projects' incident boards added to collect 
`incidents`.
-- 2 webhooks to push `incidents` from each project: _it-legacy_ and _it-new_.
+The only exception is the webhooks: **we must have 1 connection per project**, 
+as this is the only way DevLake can accurately assign `incidents` to the 
corresponding `project`.
 
-The step-by-step [Configuration Guide](/docs/Configuration) shows how to add 
connections and data scopes.
+So, in total we will have only these connections:
+- 1 connection for all GitHub `repos` to collect `pull requests`
+- 1 connection to Jenkins to collect all `deployments`
+- 1 connection to Jira to collect `incidents`
+- 2 webhook connections to collect `incidents`: 1 per each `project` that uses 
webhooks (_it-legacy_ and _it-new_)
 
-#### 4.2.3. Add Connections to Projects
-Now, add the connections to each project with selected data scopes:
+The step-by-step [Configuration Guide](../Configuration/Tutorial.md) shows how 
to both add connections and set scopes as described in the next chapter.
 
-For project _**payments**_: 
-- Add the GitHub connection, and select repos _**p-1...p-10**_ to collect 
pull_requests.
-- Add the Jenkins connection, and select Jenkins jobs 
_**p-1-deploy...p-10-deploy**_ to collect deployments.
-- Add the Jira connection, and select the Jira board _**Payments**_ to collect 
incidents.
+#### 4.2.3. Setting Scopes
+Now, add the connections to our projects and set the scope to them:
 
-For project _**it-legacy**_:
-- Add the GitHub connection, and select repos _**it-legacy-1**_, 
_**it-legacy-2**_, _**it-core-1**_ and _**it-core-2**_ to collect pull_requests.
-- Add the Jenkins connection, and select Jenkins jobs 
_**it-legacy-deploy-1**_, _**it-legacy-deploy-2**_ to collect deployments.
-- Add the _**it-legacy**_ webhook to push incidents.
+For payments `project`: 
+- add 1 scope to GitHub connection for _p1...p10_ `repos` to collect their 
`pull requests`
+- add 1 scope to Jenkins for `deployments` of _p1...p10_ `repos`
+- add 1 scope to Jira to collect `incidents`
 
-For project _**it-new**_:
-- Add the GitHub connection, and select repos _**it-new-1**_, _**it-new-2**_, 
_**it-core-1**_ and _**it-core-2**_ to collect pull_requests.
-- Add the Jenkins connection, and select Jenkins jobs _**it-new-deploy-1**_, 
_**it-new-deploy-2**_ to collect deployments.
-- Add the _**it-new**_ webhook to push incidents.
+For it-legacy `project`:
+- add 1 scope to GitHub for `repos` _it-legacy-1_, _it-legacy-2_, _it-core-1_ 
and _it-core-2_ to collect their `pull requests`
+- add 1 scope to Jenkins for `deployments` of _it-legacy-1_, _it-legacy-2_, 
_it-core-1_ and _it-core-2_ `repos`
+- include the _it-legacy_ webhook for collecting `incidents`
 
-#### 4.2.4. Collect Data
+For it-new `project`:
+- add 1 scope to GitHub for `repos` _it-new-1_, _it-new-2_, _it-core-1_ and 
_it-core-2_ to collect their `pull requests`
+- add 1 scope to Jenkins for `deployments` of _it-new-1_, _it-new-2_, 
_it-core-1_ and _it-core-2_ `repos`
+- include the _it-new_ webhook for collecting `incidents`
 
-Click `Collect All Data` in the project's blueprint to trigger the data 
collection and DORA calculation.
-
-#### 4.2.5. Check Metrics
-
-After the pipeline is finished, go to the DORA Dashboard to check if the 
metrics:
-
-![](../Configuration/images/HowToOrganizeDevlakeProjects/navigate_to_dora_1.png)
-![](../Configuration/images/HowToOrganizeDevlakeProjects/navigate_to_dora_2.png)
-
-If everything goes well, you should see all 4 charts.
-If something is wrong, and you are puzzled as to why, check out the
-[Debugging Dora Issue 
Metrics](../Troubleshooting/Dashboard.md#debugging-dora-issue-metrics) page.
+#### 4.2.4. Resulting Metrics
+See [4.1.5 Resulting 
Metrics](HowToOrganizeDevlakeProjects.md#415-resulting-metrics)
 
 ## 5. About Webhooks
-**Assigning a UNIQUE webhook to each project is critical.** This ensures that 
the DevLake platform correctly associates the incoming data with the 
corresponding project through the webhook.
+**Assigning a UNIQUE webhook to each project is critical.** This ensures that 
the DevLake platform 
+correctly associates the incoming data with the corresponding project through 
the webhook.
 
-If you use the same webhook across multiple projects, the data sent by it 
**will be replicated per each project that uses that webhook**. More 
information available on the [Webhook](/docs/Plugins/webhook.md) page.
+If you use the same webhook across multiple projects, the data sent by it 
**will be replicated per each
+project that uses that webhook**. More information available on the 
[Webhook](/docs/Plugins/webhook.md) page
 
 ## 6. Troubleshooting
 
diff --git 
a/versioned_docs/version-v0.19/GettingStarted/HowToOrganizeDevlakeProjects.md 
b/versioned_docs/version-v0.19/GettingStarted/HowToOrganizeDevlakeProjects.md
index aaa622fdcc..524599bc1a 100644
--- 
a/versioned_docs/version-v0.19/GettingStarted/HowToOrganizeDevlakeProjects.md
+++ 
b/versioned_docs/version-v0.19/GettingStarted/HowToOrganizeDevlakeProjects.md
@@ -112,18 +112,16 @@ If you store `incidents` on Jira, for example, you will 
need to create a separat
 The same applies to `deployments`, a separate connection is needed in case 
they are stored in Jenkins (or any other host for `deployments`).
 
 #### 4.1.3. Configuring Connections
-This part is described in [GitHub](/docs/Configuration/GitHub.md) connection 
configuration.
-For other platforms check the [Configuration Guide](/docs/Configuration)
+This part is described in [GitHub](../Configuration/GitHub.md) connection 
configuration. Please check the [configuration 
guide](../Configuration/Tutorial.md) for configuring other data sources.
 
-#### 4.1.4. Using connections
+#### 4.1.4. Using Connections
 
 At this point, we have projects and connections created on the platform 
DevLake. 
-It is time to bind those connections to the projects. To do so, follow the 
steps
-described in the [Tutorial](/docs/Configuration/Tutorial.md).
+It is time to bind those connections to the projects. To do so, follow the 
steps described in the [Tutorial](../Configuration/Tutorial.md).
 
 #### 4.1.5. Resulting Metrics
 
-To know if the data of a project is successfully collected go to your DORA 
Dashboard:
+To know if the data of a project is successfully collected to your DORA 
Dashboard:
 
 
![](../Configuration/images/HowToOrganizeDevlakeProjects/navigate_to_dora_1.png)
 
![](../Configuration/images/HowToOrganizeDevlakeProjects/navigate_to_dora_2.png)
@@ -191,8 +189,7 @@ So, in total we will have only these connections:
 - 1 connection to Jira to collect `incidents`
 - 2 webhook connections to collect `incidents`: 1 per each `project` that uses 
webhooks (_it-legacy_ and _it-new_)
 
-The step-by-step [Configuration Guide](/docs/Configuration) shows how to both 
add connections 
-and set scopes as described in the next chapter.
+The step-by-step [Configuration Guide](../Configuration/Tutorial.md) shows how 
to both add connections and set scopes as described in the next chapter.
 
 #### 4.2.3. Setting Scopes
 Now, add the connections to our projects and set the scope to them:
diff --git a/versioned_docs/version-v0.19/Overview/Architecture.md 
b/versioned_docs/version-v0.19/Overview/Architecture.md
index 66c9fc984a..b0eb280c29 100755
--- a/versioned_docs/version-v0.19/Overview/Architecture.md
+++ b/versioned_docs/version-v0.19/Overview/Architecture.md
@@ -20,9 +20,11 @@ A DevLake installation typically consists of the following 
components:
 - Dashboards: Dashboards deliver data and insights to DevLake users. A 
dashboard is simply a collection of SQL queries along with corresponding 
visualization configurations. DevLake's official dashboard tool is Grafana and 
pre-built dashboards are shipped in Grafana's JSON format. Users are welcome to 
swap for their own choice of dashboard/BI tool if desired.
 
 ## Dataflow
+<p align="center">
 
-<p align="center"><img src="/img/Architecture/arch-dataflow.svg" /></p>
-<p align="center">DevLake Dataflow</p>
+  ![](../Configuration/images/arch-dataflow.svg)
+
+</p>
 
 A typical plugin's dataflow is illustrated below:
 

Reply via email to