Skip to content

Show a name for Postgres branches, endpoints, databases, and roles in bundle summary - #6663

Merged
janniklasrose merged 2 commits into
mainfrom
janniklasrose/summary-name-from-id
Sep 14, 2026
Merged

janniklasrose merged 2 commits into
mainfrom
janniklasrose/summary-name-from-id

Conversation

@janniklasrose

@janniklasrose janniklasrose commented Sep 13, 2026

Copy link
Copy Markdown
Member

Implement GetName() for postgres resources.

They don't have a display name, but their resource path (e.g. /projects/my-project/branches/my-branch) is their effective name.

Below a list of how GetName() is currently used.

Resources with a dedicated name / display field

Resource GetName() returns
Job Name
Pipeline Name
Cluster ClusterName
ClusterPolicy Name
InstancePool InstancePoolName
SqlWarehouse Name
Volume Name
Schema Name
Catalog Name
RegisteredModel Name
MlflowModel Name
MlflowExperiment Name
ModelServingEndpoint Name
VectorSearchIndex Name
VectorSearchEndpoint Name
ExternalLocation Name
DatabaseInstance Name
DatabaseCatalog Name
SyncedDatabaseTable Name
Alert DisplayName
Dashboard DisplayName
PostgresProject DisplayName
GenieSpace Title
QualityMonitor TableName

Resources with no name field — identified by ID / hierarchical name

Resource GetName() returns
PostgresBranch IDprojects/{p}/branches/{b} ⭐ this PR (was "")
PostgresEndpoint ID.../endpoints/{e} ⭐ this PR (was "")
PostgresDatabase ID.../databases/{d} ⭐ this PR (was "")
PostgresRole ID.../roles/{r} ⭐ this PR (was "")
PostgresSnapshotSchedule ID{branch}/snapshot-schedule precedent (#6449)
PostgresSyncedTable ID (strips synced_tables/ prefix)
PostgresCatalog CatalogId
Snapshot RelativePath()
App ID if set, else Name
Secret ID if set, else {catalog}.{schema}.{name}
SecretScope ID if set, else Name

Resources with no name at all

Resource GetName() returns
JobRun "" a run has no name (and does have a URL)

This pull request and its description were written by Isaac.

janniklasrose and others added 2 commits September 13, 2026 09:41
… bundle summary

These four resource types have no dedicated name field, so GetName() returned an empty string and bundle summary rendered a blank Name row. Follow the postgres_snapshot_schedule precedent (#6449) and return the resource ID (the hierarchical name, e.g. projects/{project_id}/branches/{branch_id}) instead, so a name is shown once the resource is deployed or bound.

Co-authored-by: Isaac <no-reply@databricks.com>
Co-authored-by: Isaac <no-reply@databricks.com>
@eng-dev-ecosystem-bot

Copy link
Copy Markdown
Collaborator

Integration test report

Commit: d442e49

Run: 34750314572

Env 💚​RECOVERED ✅​pass 🙈​skip Time
💚​ aws linux 1 291 17 5:00
💚​ aws windows 1 293 15 5:43
💚​ azure linux 1 274 21 4:15
💚​ azure windows 1 276 19 3:41
💚​ gcp linux 1 275 21 4:11
💚​ gcp windows 1 277 19 3:49
Test Name aws linux aws windows azure linux azure windows gcp linux gcp windows
💚​ TestAccept 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
Top 3 slowest tests (at least 2 minutes):
duration env testname
3:46 gcp windows TestAccept
3:42 aws windows TestAccept
3:39 azure windows TestAccept

@janniklasrose
janniklasrose requested a review from denik September 14, 2026 07:25
@janniklasrose

Copy link
Copy Markdown
Member Author

Integration Tests status not being reported, but did succeed.

@janniklasrose
janniklasrose merged commit 9b17918 into main Sep 14, 2026
34 checks passed
@janniklasrose
janniklasrose deleted the janniklasrose/summary-name-from-id branch September 14, 2026 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants