Commit 46988e2
Mark postgres_snapshot_schedules Beta and drop its PyDABs support (#6887)
## Summary
`postgres_snapshot_schedules` was the only `postgres_*` resource exposed
in PyDABs, while its seven siblings are Beta and PyDABs-excluded. That
inconsistency traced to a dead `launchStageOverrides` entry: the
type-level launch-stage override is only applied *after* `findRef`
resolves a resource to an embedded Databricks SDK spec type in
`.codegen/cli.json`. The snapshot-schedule resource is a hand-written
singleton (`GetSnapshotSchedule` / `UpdateSnapshotSchedule` only) with
no embedded spec type, so `findRef` missed, the override never fired,
the schema shipped it unlabelled, and the PyDABs stage filter (which
excludes `PUBLIC_BETA` / `PRIVATE_PREVIEW`) let it through.
## Changes
- **`bundle/internal/schema/parser.go`**: compute the launch-stage
override before the `findRef` early return and stamp the type's self
descriptor on a `findRef` miss, so `launchStageOverrides` is
authoritative regardless of SDK backing.
- **`bundle/schema/jsonschema.json`** (regenerated): the resource object
now carries `x-databricks-launch-stage: PUBLIC_BETA` and the `[Beta]`
tag, matching the other `postgres_*` resources.
- **PyDABs** (regenerated via `./task pydabs-codegen`): the resource is
now excluded, so its Python bindings, core wiring, generated test cases,
docs and public-API snapshot are removed, along with the now-obsolete
`acceptance/bundle/python/postgres_snapshot_schedules-support/` fixture.
The resource still works via YAML / the direct engine; its
deploy/bind/invariant acceptance tests are unchanged.
## Breaking change
PyDABs support for `postgres_snapshot_schedules` is removed
(`Resources.add_postgres_snapshot_schedule`,
`postgres_snapshot_schedule_mutator`). Configure it in YAML instead.
## Tests
- `go build ./...` and `./task lint-q` clean.
- `bundle/internal/schema` and `bundle/internal/annotation` unit tests
pass.
- Acceptance: `refschema` (unchanged), snapshot-schedule `resources` /
`bind` / `invariant` pass.
- PyDABs `test_python_support` (coverage guard) and `test_public_api`
pass.
- `./task generate-schema` is idempotent; `./task check-changelog`
valid.
This pull request and its description were written by Isaac.
---------
Co-authored-by: Isaac <no-reply@databricks.com>1 parent 5b4efa9 commit 46988e2
26 files changed
Lines changed: 15 additions & 795 deletions
File tree
- .nextchanges/bundles
- acceptance/bundle/python/postgres_snapshot_schedules-support
- bundle
- internal/schema
- schema
- python
- databricks_tests/core
- _generated
- databricks/bundles
- core
- _generated
- postgres_snapshot_schedules
- _models
- docs
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
Lines changed: 0 additions & 19 deletions
This file was deleted.
Lines changed: 0 additions & 13 deletions
This file was deleted.
Lines changed: 0 additions & 4 deletions
This file was deleted.
Lines changed: 0 additions & 40 deletions
This file was deleted.
Lines changed: 0 additions & 20 deletions
This file was deleted.
Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 0 additions & 7 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
177 | 185 | | |
178 | 186 | | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
179 | 190 | | |
180 | 191 | | |
181 | 192 | | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | 193 | | |
186 | 194 | | |
187 | 195 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments