Skip to content

Commit d38d296

Browse files
authored
Merge pull request #47 from DataRecce/feature/drc-1962-add-a-doc-with-instruction-on-how-to-get-personal-token-add
feat: DRC-1962
2 parents 5d236f2 + 9836237 commit d38d296

File tree

3 files changed

+127
-32
lines changed

3 files changed

+127
-32
lines changed

docs/2-getting-started/start-free-with-cloud.md

Lines changed: 42 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,40 @@
11
---
2-
title: Start free with Cloud
2+
title: Start Free with Cloud
33
---
44

55
# Start Free with Recce Cloud
66

7-
**Launch Recce in under 2 minutes**. Each following feature provides additional value. The progressive features help you get more value from Recce over time.
7+
**Launch Recce in under 2 minutes**. Each following feature provides additional value. The progressive features help you
8+
get more value from Recce over time.
89

910
👉 **[Start Free →](https://cloud.reccehq.com){target="_blank"}**
1011

1112
## Model Changes and Impact Analysis
1213

13-
Recce shows what changed between **base** and **current** environments and helps assess potential impact. The most common case is comparing your development branch against your production or main branch to see what your changes will impact.
14+
Recce shows what changed between **base** and **current** environments and helps assess potential impact. The most
15+
common case is comparing your development branch against your production or main branch to see what your changes will
16+
impact.
1417

15-
You can:
18+
You can:
1619

1720
- Explore with the pre-loaded Jaffle Shop data
1821
- Upload your metadata (see below)
19-
- **Skip manual upload go directly to [CI/CD automation](#cicd-automation)**
22+
- **Skip manual upload go directly to [CI/CD automation](#cicd-automation)**
2023

2124
<!-- insert a video -->
2225

2326
### Upload Metadata
27+
2428
- Web interface: Click "Update" on the session you want to update in Recce Cloud.
25-
1. Click "Update" in base session to upload baseline metadata
26-
2. Click "Update" in current session to upload comparison metadata
27-
3. Click "Launch" to compare current against base
29+
1. Click "Update" in base session to upload baseline metadata
30+
2. Click "Update" in current session to upload comparison metadata
31+
3. Click "Launch" to compare current against base
2832
- CLI command:
33+
2934
```
3035
recce upload-session --session-id <your_session_id>
3136
```
37+
3238
Find your session ID in Recce Cloud web interface when clicking "Update" on any session.
3339

3440
### Required Files
@@ -47,7 +53,6 @@ Choose one method:
4753
dbt docs generate --target-path target-base --target <your_prod_target>
4854
```
4955

50-
5156
**Method 2: dbt Cloud**<br>
5257
Deploy → Jobs → Production job → Recent run → Download artifacts
5358

@@ -72,10 +77,10 @@ dbt docs generate --target <your_dev_target>
7277
**Method 2: dbt Cloud**<br>
7378
Deploy → Jobs → CI job → Recent run → Download artifacts
7479

75-
7680
## Data Warehouse Diffing {#data-diffing}
7781

78-
Go beyond metadata to see how changes affect your actual data. Configure your data warehouse connection to compare query results and catch issues before they impact production.
82+
Go beyond metadata to see how changes affect your actual data. Configure your data warehouse connection to compare query
83+
results and catch issues before they impact production.
7984

8085
### Setup Requirements
8186

@@ -99,7 +104,8 @@ Configure connection to your data warehouse to enable query result comparisons.
99104
2. Create a new connection or select an existing one from the dropdown
100105
3. Your connection is linked and ready to use
101106

102-
For detailed connection settings, see [Connect to Warehouse](../5-data-diffing/connect-to-warehouse.md). Connection credentials are encrypted and secure - see our [security practices](https://reccehq.com/security/).
107+
For detailed connection settings, see [Connect to Warehouse](../5-data-diffing/connect-to-warehouse.md). Connection
108+
credentials are encrypted and secure - see our [security practices](https://reccehq.com/security/).
103109

104110
<!-- insert a video -->
105111

@@ -114,52 +120,56 @@ Recce supports several data diffing methods. See Data Diffing sections for detai
114120
- [Histogram Diff](/5-data-diffing/histogram-diff/)
115121
- [Query](/5-data-diffing/query/)
116122

117-
## GitHub Integration {#github-integration}
123+
## Cloud-based Git Platform Integration {#git-integration}
118124

119-
Connect your GitHub repo to see all PRs in one place and validate changes before they hit production.
125+
Connect your GitHub or GitLab repository to see all PRs/MRs in one place and validate changes before they hit
126+
production.
120127

121128
### Setup Requirements
122129

123-
- GitHub repository with dbt project
124-
- Repository admin access for initial setup
125-
- Active PRs with model changes
130+
| GitHub | GitLab |
131+
|------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------|
132+
| • GitHub repository with dbt project<br>• Repository admin access for initial setup<br>• Active PRs with model changes | • GitLab project with dbt project<br>• Project maintainer or owner access for initial setup<br>• Active merge requests with model changes |
126133

127134
!!!Note
128-
You'll need administrative access to the GitHub organization you want to connect. Please ensure you have the necessary permissions for **GitHub App installations**.
135+
You'll need administrative access to the Organization/Group you want to connect. Please ensure you have the necessary
136+
permissions for **App installations** (GitHub) or **Providing a Personal Access Token** (GitLab).
129137

130-
### GitHub Connection
138+
### Connection
131139

132-
Connect your repository to track pull requests and validate changes.
140+
Connect your repository to track pull requests/merge requests and validate changes.
141+
142+
!!!Note
143+
Keep **Connection setup** note the same as before if there was one specific to this section.
133144

134145
**Connection setup:**
135146

136-
1. Navigate to settings
137-
2. Connect GitHub repository
138-
3. Authorize Recce access
139-
4. Select repository
147+
| GitHub | GitLab |
148+
|--------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
149+
| 1. Navigate to settings<br>2. Connect GitHub repository<br>3. Authorize Recce access<br>4. Select repository | 1. Navigate to settings<br>2. Connect GitLab by providing a Personal Access Token ([see our directions here](../7-cicd/gitlab-pat-guide.md))<br>3. Connect a project by adding a GitLab Project or URL to a Recce Project |
140150

141151
<!-- insert a video -->
142152

143-
### How to Use PR Tracking
153+
### How to Use PR/MR Tracking
144154

145-
Once connected, Recce displays all open and draft PRs in your dashboard.
155+
Once connected, Recce displays all open and draft PRs/MRs in your dashboard.
146156

147-
### PR Validation Workflow
157+
### PR/MR Validation Workflow
148158

149-
- View open/draft PRs in dashboard
150-
- Select PR to validate
151-
- Upload PR metadata (until CI/CD is configured)
159+
- View open/draft PRs/MRs in dashboard
160+
- Select PR/MR to validate
161+
- Upload PR/MR metadata (until CI/CD is configured)
152162
- Launch Recce to analyze changes
153163

154-
155164
## CI/CD Automation {#cicd-automation}
156165

157-
Set up CI/CD to automatically upload metadata and run validation checks on every PR.
166+
Set up CI/CD to automatically upload metadata and run validation checks on every PR.
158167

159168
!!!Note
160169
Available with Team plan (free trial included).
161170

162171
### Setup Requirements
172+
163173
See the CI/CD sections for complete setup guides:
164174

165175
- [Setup CD](/7-cicd/setup-cd/)

docs/7-cicd/gitlab-pat-guide.md

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
---
2+
title: GitLab Personal Access Token
3+
---
4+
5+
# GitLab Personal Access Token Setup
6+
7+
To integrate Recce with your GitLab project, you'll need to create a Personal Access Token (PAT) with appropriate
8+
permissions.
9+
10+
## Token Scope Requirements
11+
12+
Recce supports two different permission levels depending on your needs:
13+
14+
| Scope | Permissions | Features Available |
15+
|------------|----------------------------------|-------------------------------------------------------------------------------------------------------------------------------------|
16+
| `api` | Full API access (read and write) | • View and track merge requests<br>• **Receive generated summaries and notes on MRs from Recce**<br>• Full integration capabilities |
17+
| `read_api` | Read-only API access | • View and track merge requests<br>• **Cannot receive generated summaries and notes on MRs from Recce** |
18+
19+
!!!warning "Important: Choose the Right Scope"
20+
If you want Recce to automatically post validation summaries and notes directly to your merge requests, you **must** use
21+
the `api` scope. The `read_api` scope only allows Recce to read merge request information but cannot write comments or
22+
summaries back to GitLab.
23+
24+
## How to Create a Personal Access Token
25+
26+
Follow these steps to create a Personal Access Token in GitLab:
27+
28+
1. **Navigate to [Personal Access Token Settings in GitLab](https://gitlab.com/-/user_settings/personal_access_tokens)**
29+
30+
2. **Create New Token**
31+
- Click **Add new token** button
32+
- Enter a descriptive **Token name** (e.g., "Recce Integration")
33+
- Set an **Expiration date**
34+
35+
3. **Select Scopes**
36+
37+
Choose one of the following based on your needs:
38+
39+
**Option A: Full Integration (Recommended)**<br>
40+
-`api` scope<br>
41+
- This enables Recce to post validation summaries and notes to your merge requests
42+
43+
**Option B: Read-Only Access**<br>
44+
-`read_api` scope<br>
45+
- ⚠️ You will **not** receive generated PR summaries and notes on your MRs from Recce
46+
47+
4. **Generate Token**
48+
- Click **Create personal access token**
49+
- **Important**: Copy the token immediately - you won't be able to see it again!
50+
51+
5. **Save Token Securely**
52+
- Store the token in a secure location
53+
54+
55+
## Using Your Token with Recce
56+
57+
Once you have your Personal Access Token:
58+
59+
1. Navigate to Recce settings
60+
2. Select GitLab integration
61+
3. Paste your Personal Access Token
62+
4. Complete the connection setup
63+
64+
## Troubleshooting
65+
66+
**Token not working?**
67+
68+
- Verify you've selected the correct scope (`api` or `read_api`)
69+
- Check that the token hasn't expired
70+
- Ensure you have appropriate project permissions (Maintainer or Owner role)
71+
72+
**Not receiving summaries on merge requests?**
73+
74+
- Verify your token uses the `api` scope (not just `read_api`)
75+
- Check that Recce has write permissions to your project
76+
77+
**Still having issues?**
78+
79+
- Please reach out to us on [our Discord](https://discord.gg/HUUx9fyphJ) or via email at `[email protected]`
80+
81+
## Related Documentation
82+
83+
- [Cloud-based Git Platform Integration](../2-getting-started/start-free-with-cloud.md#git-integration)
84+
- [CI/CD Automation](../2-getting-started/start-free-with-cloud.md#cicd-automation)

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ nav:
8888
#- 7-cicd/recce-summary.md content outdated
8989
- 7-cicd/preset-checks.md
9090
- 7-cicd/best-practices-prep-env.md
91+
- 7-cicd/gitlab-pat-guide.md
9192

9293
- Technical Concepts:
9394
- 8-technical-concepts/state-file.md

0 commit comments

Comments
 (0)