Skip to content

Mark databricks_sql_dashaboard as deprecated #4641

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions NEXT_CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

### New Features and Improvements

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

### Bug Fixes
Expand Down
2 changes: 2 additions & 0 deletions docs/resources/sql_alert.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ subcategory: "Databricks SQL"
---
# databricks_sql_alert Resource

!> This resource is deprecated! Please switch to [databricks_alert](alert.md#migrating-from-databricks_sql_alert-resource).

This resource allows you to manage [Databricks SQL Alerts](https://docs.databricks.com/sql/user/queries/index.html).

-> 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).
Expand Down
3 changes: 1 addition & 2 deletions docs/resources/sql_dashboard.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@ subcategory: "Databricks SQL"
---
# databricks_sql_dashboard Resource

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

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).


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

A dashboard may have one or more [widgets](sql_widget.md).
Expand Down
2 changes: 2 additions & 0 deletions docs/resources/sql_query.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ subcategory: "Databricks SQL"
---
# databricks_sql_query Resource

!> This resource is deprecated! Please switch to [databricks_query](query.md#migrating-from-databricks_sql_query-resource).

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).

-> documentation for this resource is a work in progress.
Expand Down
1 change: 1 addition & 0 deletions sql/resource_sql_dashboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ func ResourceSqlDashboard() common.Resource {
common.NoCustomize)

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