Skip to content

Commit 7b45de4

Browse files
authored
chore: handle proto change and release 3.14.0 (#168)
* chore: handle proto change and release 3.14.0 * fix: lint
1 parent cf8bfa3 commit 7b45de4

40 files changed

Lines changed: 732 additions & 186 deletions

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.13.1
1+
3.14.0

docs/data-sources/instance.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ The instance data source.
3333
- `environment` (String) The environment name for your instance in "environments/{resource id}" format.
3434
- `external_link` (String) The external console URL managing this instance (e.g. AWS RDS console, your in-house DB instance console)
3535
- `id` (String) The ID of this resource.
36-
- `maximum_connections` (Number) The maximum number of connections. The default value is 10.
3736
- `name` (String) The instance full name in instances/{resource id} format.
3837
- `sync_databases` (Set of String) Enable sync for following databases. Default empty, means sync all schemas & databases.
3938
- `sync_interval` (Number) How often the instance is synced in seconds. Default 0, means never sync.

docs/data-sources/instance_list.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ Read-Only:
4141
- `engine_version` (String)
4242
- `environment` (String)
4343
- `external_link` (String)
44-
- `maximum_connections` (Number)
4544
- `name` (String)
4645
- `resource_id` (String)
4746
- `sync_databases` (Set of String)

docs/data-sources/project.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,35 @@ The project data source.
2121

2222
### Read-Only
2323

24-
- `allow_modify_statement` (Boolean) Allow modifying statement after issue is created.
24+
- `allow_request_role` (Boolean) Whether to allow requesting roles in this project.
2525
- `allow_self_approval` (Boolean) Whether to allow the issue creator to self-approve the issue.
2626
- `auto_enable_backup` (Boolean) Whether to automatically enable backup.
27-
- `auto_resolve_issue` (Boolean) Enable auto resolve issue.
27+
- `data_classification_config_id` (String) The data classification configuration ID for the project.
2828
- `databases` (Set of String) The databases full name in the resource.
2929
- `enforce_issue_title` (Boolean) Enforce issue title created by user instead of generated by Bytebase.
30+
- `enforce_sql_review` (Boolean) Whether to enforce SQL review checks to pass before issue creation.
31+
- `force_issue_labels` (Boolean) Force issue labels to be used when creating an issue.
3032
- `id` (String) The ID of this resource.
33+
- `issue_labels` (List of Object) Labels available for tagging issues in this project. (see [below for nested schema](#nestedatt--issue_labels))
34+
- `labels` (Map of String) Labels are key-value pairs that can be attached to the project.
3135
- `name` (String) The project full name in projects/{resource id} format.
3236
- `postgres_database_tenant_mode` (Boolean) Whether to enable the database tenant mode for PostgreSQL. If enabled, the issue will be created with the pre-appended "set role <db_owner>" statement.
37+
- `require_issue_approval` (Boolean) Whether to require issue approval before rollout.
38+
- `require_plan_check_no_error` (Boolean) Whether to require plan check to have no error before rollout.
3339
- `skip_backup_errors` (Boolean) Whether to skip backup errors and continue the data migration.
3440
- `title` (String) The project title.
3541
- `webhooks` (Set of Object) The webhooks in the project. (see [below for nested schema](#nestedatt--webhooks))
3642

43+
<a id="nestedatt--issue_labels"></a>
44+
### Nested Schema for `issue_labels`
45+
46+
Read-Only:
47+
48+
- `color` (String)
49+
- `group` (String)
50+
- `value` (String)
51+
52+
3753
<a id="nestedatt--webhooks"></a>
3854
### Nested Schema for `webhooks`
3955

docs/data-sources/project_list.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,35 @@ The project data source list.
3131

3232
Read-Only:
3333

34-
- `allow_modify_statement` (Boolean)
34+
- `allow_request_role` (Boolean)
3535
- `allow_self_approval` (Boolean)
3636
- `auto_enable_backup` (Boolean)
37-
- `auto_resolve_issue` (Boolean)
37+
- `data_classification_config_id` (String)
3838
- `databases` (Set of String)
3939
- `enforce_issue_title` (Boolean)
40+
- `enforce_sql_review` (Boolean)
41+
- `force_issue_labels` (Boolean)
42+
- `issue_labels` (List of Object) (see [below for nested schema](#nestedobjatt--projects--issue_labels))
43+
- `labels` (Map of String)
4044
- `name` (String)
4145
- `postgres_database_tenant_mode` (Boolean)
46+
- `require_issue_approval` (Boolean)
47+
- `require_plan_check_no_error` (Boolean)
4248
- `resource_id` (String)
4349
- `skip_backup_errors` (Boolean)
4450
- `title` (String)
4551
- `webhooks` (Set of Object) (see [below for nested schema](#nestedobjatt--projects--webhooks))
4652

53+
<a id="nestedobjatt--projects--issue_labels"></a>
54+
### Nested Schema for `projects.issue_labels`
55+
56+
Read-Only:
57+
58+
- `color` (String)
59+
- `group` (String)
60+
- `value` (String)
61+
62+
4763
<a id="nestedobjatt--projects--webhooks"></a>
4864
### Nested Schema for `projects.webhooks`
4965

docs/data-sources/setting.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,6 @@ Optional:
155155
- `external_url` (String) The URL user visits Bytebase. The external URL is used for: 1. Constructing the correct callback URL when configuring the VCS provider. The callback URL points to the frontend; 2. Creating the correct webhook endpoint when configuring the project GitOps workflow. The webhook endpoint points to the backend.
156156
- `maximum_role_expiration_in_seconds` (Number) The max duration in seconds for role expired. If the value is less than or equal to 0, we will remove the setting. AKA no limit.
157157
- `password_restriction` (Block List, Max: 1) Password restriction settings. (see [below for nested schema](#nestedblock--workspace_profile--password_restriction))
158-
- `token_duration_in_seconds` (Number) The duration for login token in seconds. The duration should be at least 3600 (one hour).
159158
- `watermark` (Boolean) Whether to display watermark on pages. Requires ENTERPRISE license.
160159

161160
<a id="nestedblock--workspace_profile--announcement"></a>

docs/resources/instance.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ The instance resource.
2828
- `environment` (String) The environment full name for the instance in environments/{environment id} format.
2929
- `external_link` (String) The external console URL managing this instance (e.g. AWS RDS console, your in-house DB instance console)
3030
- `list_all_databases` (Boolean) List all databases in this instance. If false, will only list 500 databases.
31-
- `maximum_connections` (Number) The maximum number of connections. Require instance license to enable this feature.
3231
- `sync_databases` (Set of String) Enable sync for following databases. Default empty, means sync all schemas & databases.
3332
- `sync_interval` (Number) How often the instance is synced in seconds. Default 0, means never sync. Require instance license to enable this feature.
3433

docs/resources/project.md

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,22 @@ The project resource.
2222

2323
### Optional
2424

25-
- `allow_modify_statement` (Boolean) Allow modifying statement after issue is created.
25+
- `allow_request_role` (Boolean) Whether to allow requesting roles in this project.
2626
- `allow_self_approval` (Boolean) Whether to allow the issue creator to self-approve the issue.
2727
- `auto_enable_backup` (Boolean) Whether to automatically enable backup.
28-
- `auto_resolve_issue` (Boolean) Enable auto resolve issue.
2928
- `ci_sampling_size` (Number) The maximum databases of rows to sample during CI data validation. Without specification, sampling is disabled, resulting in a full validation.
29+
- `data_classification_config_id` (String) The data classification configuration ID for the project.
3030
- `databases` (Set of String) The databases full name in the resource.
3131
- `enforce_issue_title` (Boolean) Enforce issue title created by user instead of generated by Bytebase.
32+
- `enforce_sql_review` (Boolean) Whether to enforce SQL review checks to pass before issue creation. If enabled, issues cannot be created when SQL review finds errors.
3233
- `execution_retry_policy` (Number) The maximum number of retries for the lock timeout issue.
34+
- `force_issue_labels` (Boolean) Force issue labels to be used when creating an issue.
35+
- `issue_labels` (Block List) Labels available for tagging issues in this project. (see [below for nested schema](#nestedblock--issue_labels))
36+
- `labels` (Map of String) Labels are key-value pairs that can be attached to the project. For example, { "environment": "production", "team": "backend" }
3337
- `parallel_tasks_per_rollout` (Number) The maximum number of parallel tasks to run during the rollout.
3438
- `postgres_database_tenant_mode` (Boolean) Whether to enable the database tenant mode for PostgreSQL. If enabled, the issue will be created with the pre-appended "set role <db_owner>" statement.
39+
- `require_issue_approval` (Boolean) Whether to require issue approval before rollout.
40+
- `require_plan_check_no_error` (Boolean) Whether to require plan check to have no error before rollout.
3541
- `skip_backup_errors` (Boolean) Whether to skip backup errors and continue the data migration.
3642
- `webhooks` (Set of Object) The webhooks in the project. (see [below for nested schema](#nestedatt--webhooks))
3743

@@ -40,6 +46,19 @@ The project resource.
4046
- `id` (String) The ID of this resource.
4147
- `name` (String) The project full name in projects/{resource id} format.
4248

49+
<a id="nestedblock--issue_labels"></a>
50+
### Nested Schema for `issue_labels`
51+
52+
Required:
53+
54+
- `value` (String) The label value/name.
55+
56+
Optional:
57+
58+
- `color` (String) The color code for the label (e.g., hex color).
59+
- `group` (String) The group this label belongs to.
60+
61+
4362
<a id="nestedatt--webhooks"></a>
4463
### Nested Schema for `webhooks`
4564

docs/resources/setting.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,6 @@ Optional:
212212
- `external_url` (String) The URL user visits Bytebase. The external URL is used for: 1. Constructing the correct callback URL when configuring the VCS provider. The callback URL points to the frontend; 2. Creating the correct webhook endpoint when configuring the project GitOps workflow. The webhook endpoint points to the backend.
213213
- `maximum_role_expiration_in_seconds` (Number) The max duration in seconds for role expired. If the value is less than or equal to 0, we will remove the setting. AKA no limit.
214214
- `password_restriction` (Block List, Max: 1) Password restriction settings. (see [below for nested schema](#nestedblock--workspace_profile--password_restriction))
215-
- `token_duration_in_seconds` (Number) The duration for login token in seconds. The duration should be at least 3600 (one hour).
216215
- `watermark` (Boolean) Whether to display watermark on pages. Requires ENTERPRISE license.
217216

218217
<a id="nestedblock--workspace_profile--announcement"></a>

examples/database/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
terraform {
33
required_providers {
44
bytebase = {
5-
version = "3.13.1"
5+
version = "3.14.0"
66
# For local development, please use "terraform.local/bytebase/bytebase" instead
77
source = "registry.terraform.io/bytebase/bytebase"
88
}

0 commit comments

Comments
 (0)