Commit 81829ca
Feat/app UI i18n insights contracts (#1262)
## Changes
This PR adds substantially richer
authoring UI, and overhauls the deployment story. At a high level:
**Data-contract & AI rule generation**
- Import ODCS v3.x data contracts and generate DQX rules (predefined,
property-based, and natural-language) via a new `contract_rules_service`
and
`/v1/contract` route, including a dedicated "from contract" UI.
- Natural-language (`type: text`) expectations are generated through the
app's
ChatDatabricks Foundation Model path (no dspy/Spark needed
in-container).
- Reference-table checks (`foreign_key`, `has_valid_schema`) are now
authored in
the single-table editor with a table picker; schema-validation gets its
own
editor and mutual-exclusion handling for `expected_schema` vs
`ref_table`.
**UI features**
- Internationalization (English, Spanish, Italian, Portuguese-BR) with a
language selector and locale-parity test.
- Insights dashboard is now hosted persistently so the embedded Lakeview
iframe
no longer reloads on every navigation; expandable labels UI; component
reorganisation (`apx/` → `layout/`); regenerated API client (orval).
**Deployment & docs**
- Updated DEPLOYMENT.md / DEVELOPMENT.md (CLI v1.4.0+ gate, one-button
`postgres_roles`, bind workflow) and removed duplicated content.
### Linked issues
<!-- DOC: Link issue with a keyword: close, closes, closed, fix, fixes,
fixed, resolve, resolves, resolved. See
https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword
-->
Resolves #..
### Tests
<!-- How is this tested? Please see the checklist below and also
describe any other relevant tests -->
Added backend unit suites for the Lakebase executor, Postgres/Delta
migration
runners, contract rule generation, discovery DDL, dry-run dispatch, app
scheduler lease, quarantine filtering, lint policy, and i18n locale
parity.
`make app-test` (658 passing) and `make test` (1160 passing) are green,
along
with `make fmt` and `make app-check`.
- [x] manually tested
- [x] added unit tests
- [ ] added integration tests
- [ ] added end-to-end tests
- [ ] added performance tests
### Documentation and Demos
<!-- Any user facing changes require documentation and demos update -->
- [ ] added/updated demos
- [x] added/updated docs
- [x] added/updated agent skills
---------
Co-authored-by: Marcin Wojtyczka <marcin.wojtyczka@databricks.com>1 parent 7dcc54b commit 81829ca
94 files changed
Lines changed: 18370 additions & 4531 deletions
File tree
- app
- dashboards
- scripts
- src/databricks_labs_dqx_app
- backend
- migrations
- routes/v1
- services
- ui
- components
- insights
- layout
- hooks
- lib
- i18n/locales
- routes/_sidebar
- styles
- types
- tasks
- src/dqx_task_runner
- tests
- docs/dqx
- docs/guide
- static/img
- tests/unit
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
182 | 209 | | |
183 | 210 | | |
184 | 211 | | |
| |||
216 | 243 | | |
217 | 244 | | |
218 | 245 | | |
219 | | - | |
| 246 | + | |
220 | 247 | | |
221 | 248 | | |
222 | 249 | | |
| |||
245 | 272 | | |
246 | 273 | | |
247 | 274 | | |
248 | | - | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
249 | 283 | | |
250 | 284 | | |
251 | | - | |
| 285 | + | |
252 | 286 | | |
253 | 287 | | |
254 | 288 | | |
| |||
294 | 328 | | |
295 | 329 | | |
296 | 330 | | |
297 | | - | |
| 331 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
36 | 46 | | |
37 | 47 | | |
38 | 48 | | |
| |||
0 commit comments