Skip to content

Commit ab7d1a8

Browse files
ruslantalpaIsaac
andcommitted
Document Data API field removal and status.url limitations
Add a Badness note to the update acceptance test: removing a previously set field plans an update, but update_mask=spec merges, so the server keeps the last value and the next plan is clean. Reword the status.url stable_output_fields comment: the URL is stable only with respect to the Data API's own updates. Renaming the database's postgres_database changes it, and a reference resolved in that same deploy keeps the old URL until the next deploy. Co-authored-by: Isaac <no-reply@databricks.com>
1 parent 46d77f5 commit ab7d1a8

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# A leaf update mask would reset a removed field, but resetting db_max_rows or
2+
# jwt_role_claim_key currently breaks serving, so DoUpdate masks spec instead.
3+
Badness = "Removing a previously set field is not applied: update_mask=spec merges, so the server keeps the last value; the plan shows an update and the next plan is clean"

‎bundle/direct/dresources/configs/postgres_data_apis.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ stable_output_fields:
99
# see the stable_output_fields doc in config.go and ES-2202624.
1010
- field: name
1111
# url is built from the read-write endpoint host, the workspace and the
12-
# database's Postgres name, none of which a Data API update can change, so a
12+
# database's Postgres name. A Data API update cannot change any of them, so a
1313
# ${resources.postgres_data_apis.<key>.status.url} reference resolves during
1414
# an in-place update instead of planning a no-op update of its dependents.
15+
# Renaming the database's postgres_database changes the URL; a reference
16+
# resolved in that same deploy keeps the old URL until the next deploy.
1517
- field: status.url
1618
backend_defaults:
1719
# DoRead fills the spec from status, which reports every setting in effect.

0 commit comments

Comments
 (0)