Skip to content

Commit dde35b4

Browse files
authored
Mark databricks_sql_dashaboard as deprecated (#4641)
## Changes <!-- Summary of your changes that are easy to understand --> Also added corresponding warnings to documentation for `sql_query` and `sql_alert` ## Tests <!-- How is this tested? Please see the checklist below and also describe any other relevant tests --> - [x] `make test` run locally - [x] relevant change in `docs/` folder - [ ] covered with integration tests in `internal/acceptance` - [ ] using Go SDK - [ ] using TF Plugin Framework
1 parent 6cc796c commit dde35b4

File tree

5 files changed

+7
-2
lines changed

5 files changed

+7
-2
lines changed

NEXT_CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
### New Features and Improvements
66

7+
* Mark `databricks_sql_dashaboard` as deprecated ([#4641](https://github.com/databricks/terraform-provider-databricks/pull/4641))
78
* Add a new settings resource `databricks_disable_legacy_dbfs_setting` ([#4605](https://github.com/databricks/terraform-provider-databricks/pull/4605))
89

910
### Bug Fixes

docs/resources/sql_alert.md

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ subcategory: "Databricks SQL"
33
---
44
# databricks_sql_alert Resource
55

6+
!> This resource is deprecated! Please switch to [databricks_alert](alert.md#migrating-from-databricks_sql_alert-resource).
7+
68
This resource allows you to manage [Databricks SQL Alerts](https://docs.databricks.com/sql/user/queries/index.html).
79

810
-> To manage [SQLA resources](https://docs.databricks.com/sql/get-started/concepts.html) you must have `databricks_sql_access` on your [databricks_group](group.md#databricks_sql_access) or [databricks_user](user.md#databricks_sql_access).

docs/resources/sql_dashboard.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@ subcategory: "Databricks SQL"
33
---
44
# databricks_sql_dashboard Resource
55

6-
-> Please switch to [databricks_dashboard](dashboard.md) to author new AI/BI dashboards using the latest tooling.
6+
!> This resource is deprecated! Please switch to [databricks_dashboard](dashboard.md) to author new AI/BI dashboards using the latest tooling.
77

88
This resource is used to manage [Legacy dashboards](https://docs.databricks.com/sql/user/dashboards/index.html). To manage [SQL resources](https://docs.databricks.com/sql/get-started/concepts.html) you must have `databricks_sql_access` on your [databricks_group](group.md#databricks_sql_access) or [databricks_user](user.md#databricks_sql_access).
99

10-
1110
-> documentation for this resource is a work in progress.
1211

1312
A dashboard may have one or more [widgets](sql_widget.md).

docs/resources/sql_query.md

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ subcategory: "Databricks SQL"
33
---
44
# databricks_sql_query Resource
55

6+
!> This resource is deprecated! Please switch to [databricks_query](query.md#migrating-from-databricks_sql_query-resource).
7+
68
To manage [SQLA resources](https://docs.databricks.com/sql/get-started/concepts.html) you must have `databricks_sql_access` on your [databricks_group](group.md#databricks_sql_access) or [databricks_user](user.md#databricks_sql_access).
79

810
-> documentation for this resource is a work in progress.

sql/resource_sql_dashboard.go

+1
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ func ResourceSqlDashboard() common.Resource {
102102
common.NoCustomize)
103103

104104
return common.Resource{
105+
DeprecationMessage: "This resource is deprecated and will be removed in the future. Please use the `databricks_dashboard` resource.",
105106
Create: func(ctx context.Context, data *schema.ResourceData, c *common.DatabricksClient) error {
106107
var d DashboardEntity
107108
ad, err := d.toAPIObject(s, data)

0 commit comments

Comments
 (0)