Skip to content

v2.6.0 - #131

Merged
gowthamrajj merged 3 commits into
mainfrom
v2.6.0
Nov 10, 2026
Merged

v2.6.0#131
gowthamrajj merged 3 commits into
mainfrom
v2.6.0

Conversation

@gowthamrajj

Copy link
Copy Markdown
Contributor

Changes

Shared fragments and templates

  • Reuse column sets and model config with *.fragment.json. Define kind: "select" or kind: "config" fragments; reference them from models via *_from_fragment in select and optional root fragments. Sync resolves fragments in memory and never rewrites your authored .model.json.
  • Template models with extends / with. Author *.template.json bodies with params; child models inherit and override via with, optional fragments, and merge/replace modes for select and ctes.
  • IDE and CLI support. JSON Schema and diagnostics for fragment/template files; go to definition and “Used by N models” on shared files; DJ: Preview Resolved Model JSON on .model.json; CLI fragment.*, template.*, and model.get with raw + resolved. “Used by” CodeLens opens a model picker; go-to-definition resolves fragment/template names after the composition registry loads.
  • Documentation and examples. Multi-page guide under docs/fragments-and-templates/ and a working demo in docs/examples/jaffle_shop/ (config fragment, select fragment with overrides, and a template child mart).

Model Wizard

  • Attach config fragments in Additional Fields when the project defines kind: "config" fragments, and add select fragments from the Data Modeling column panel. Duplicate output column names are highlighted on the Columns step and block advancing the wizard until you remove one source.
  • Create or edit template children from Basic Information (template + with parameters). The editor works on the merged model; save runs diffAgainstTemplate so only deltas stay on disk.

Local Trino & Lightdash

  • Persistent Iceberg development catalog via Docker Compose. Start a local Trino 484 + Postgres Iceberg JDBC catalog with docker compose -f docs/setup/trino/docker-compose.yml up -d so partitioned models build and table data survives container restarts. DJ: Start Lightdash Preview also automatically detects profiles.yml inside a dbt project subdirectory when dj.lightdashProfilesPath is unset.
  • Project slugs in Dashboards as Code. The Download and Upload tabs accept a Lightdash project slug as well as a UUID. Restricted-project rules in dj.lightdash.restrictedProjects apply to the project a slug resolves to.

Query drafts

  • Fixed Convert to DJ Model from the right-click menu. Cursor opens a new chat with the prompt prefilled. Claude copies the prompt to your clipboard to paste, as does Cursor when the prompt is too long to prefill.

Query Control Center

  • Live queries list newest first. The Live tab orders active queries from most recent to oldest, so the list stays in a consistent order across auto-refresh.

Materialization defaults

  • Incremental models default to delete+insert. Models that set materialization: "incremental" without a strategy now use delete+insert instead of overwrite_existing_partitions, which needs a custom dbt macro. To keep the old behavior, set dj.materialization.defaultIncrementalStrategy to overwrite_existing_partitions or set materialization.strategy on each model. Re-sync to regenerate existing SQL.

gowthamrajj and others added 3 commits November 10, 2026 13:10
* add test in workflows before publish and prerelease

* Use materialization in Model Wizard output

* Remove default values from writing to model.json file for materialization fields.
Run format.

* feat: Shared fragments and templates

- Reuse column sets and model config with `*.fragment.json`.
- Template models with `extends` / `with`.

* fix codelens navigation and highlight on duplicate column names

* run lint, schema and format

* bump minor version

* remove duplicate entry

* move cli example file to under new location

* update fragments example

* update local setup and docs for trino and lightdash
* add test in workflows before publish and prerelease

* Use materialization in Model Wizard output

* Remove default values from writing to model.json file for materialization fields.
Run format.

* feat: Shared fragments and templates

- Reuse column sets and model config with `*.fragment.json`.
- Template models with `extends` / `with`.

* fix codelens navigation and highlight on duplicate column names

* run lint, schema and format

* bump minor version

* remove duplicate entry

* move cli example file to under new location

* update fragments example

* update local setup and docs for trino and lightdash

* fix create prompt for convert to dj model

* order live queries in query control center

* add support for using project slugs in lightdash download/upload

* update jaffle shop example

* update skills for lightdash project slug support

* update jaffle shop example models

* update demo videos

* feat(extension): flag JSON syntax errors and add source template params

Malformed model, fragment, and template JSON now shows in the Problems tab, and sync skips the model until it parses.

Template param types: `model_ref` is renamed to `model`, `source` is new (must name a manifest source), and `string` is unchanged. No alias, since templates are unreleased.

Default incremental strategy changes to `delete+insert`. Projects that need the old behavior can pin `dj.materialization.defaultIncrementalStrategy` to `overwrite_existing_partitions`.

Also updates the jaffle template, regenerates fixtures, and adds regression tests.

* Fix read only files to unblock git pull & branch switches (#128) (#129)

* fix(extension): prefill template and fragment models in edit and clone

- Resolve edit and clone in merged mode so template and fragment values prefill.
- Clone clears only the name in all paths.
- Save root-fragment models without extends as deltas.
- Web: fragment entries are editable in place; nodes use the model's project.

Tests and changelog included.

---------

Co-authored-by: Ajayjayendran Arulraj <ajayjayendran.ar@gmail.com>
@gowthamrajj
gowthamrajj merged commit c6a6058 into main Nov 10, 2026
5 checks passed
@gowthamrajj
gowthamrajj deleted the v2.6.0 branch November 10, 2026 10:37
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.

3 participants