Skip to content

Commit 419177e

Browse files
d-bytebaseclaude
andcommitted
docs: update examples and documentation for approval template id field
Update all examples and tutorials to include the required 'id' field in approval flow configurations. Regenerate documentation to reflect the new schema changes. Changes: - Add id field to examples/setup/approval_flow.tf - Add id field to tutorials/4-3-approval-flow.tf - Regenerate docs/resources/setting.md with updated schema - Regenerate docs/data-sources/setting.md with updated schema All examples now use the built-in template ID format: 'bb.project-owner-workspace-dba-workspace-admin' 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 2896f1d commit 419177e

File tree

6 files changed

+6
-2
lines changed

6 files changed

+6
-2
lines changed

docs/data-sources/risk.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ The risk data source.
2424
- `active` (Boolean) The risk active.
2525
- `condition` (String) The risk condition.
2626
- `id` (String) The ID of this resource.
27-
- `level` (Number) The risk level.
27+
- `level` (String) The risk level.
2828
- `source` (String) The risk source.
2929
- `title` (String) The risk title.
3030

docs/data-sources/risk_list.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Read-Only:
2727

2828
- `active` (Boolean)
2929
- `condition` (String)
30-
- `level` (Number)
30+
- `level` (String)
3131
- `name` (String)
3232
- `source` (String)
3333
- `title` (String)

docs/data-sources/setting.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ Read-Only:
214214
Read-Only:
215215

216216
- `description` (String)
217+
- `id` (String)
217218
- `roles` (List of String)
218219
- `title` (String)
219220

docs/resources/setting.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ Optional:
5555

5656
Required:
5757

58+
- `id` (String) The approval template ID. Built-in templates use 'bb.*' prefix (e.g., 'bb.project-owner', 'bb.workspace-dba'), custom templates use UUIDs.
5859
- `roles` (List of String) The role require to review in this step
5960
- `title` (String)
6061

examples/setup/approval_flow.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ resource "bytebase_setting" "approval_flow" {
33
approval_flow {
44
rules {
55
flow {
6+
id = "bb.project-owner-workspace-dba-workspace-admin"
67
title = "Project Owner -> DBA -> Admin"
78
description = "Need DBA and workspace admin approval"
89

tutorials/4-3-approval-flow.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ resource "bytebase_setting" "approval_flow" {
44
approval_flow {
55
rules {
66
flow {
7+
id = "bb.project-owner-workspace-dba-workspace-admin"
78
title = "Project Owner → DBA → Admin"
89
description = "Need DBA and workspace admin approval"
910
roles = [

0 commit comments

Comments
 (0)