Git and TMDL
Review semantic changes, not just lines
Git records snapshots of tracked files, not the in-memory semantic model or service refresh state. TMDL makes model objects reviewable as text. Review table names, column types, expressions, relationships, partitions and security roles. PBIR splits report definitions into reviewable JSON files. A text diff is a starting point; validate object references and native semantics before merge.
Keep dependencies and identities stable
Use a short-lived feature branch from a reviewed main branch; scope the changes to one business requirement. Preserve stable item identifiers and report-to-model references. Inspect rename impact across measures, calculated columns, visuals, bookmarks, external reports and downstream consumers. A merge with no text conflict can still break a dependency. A compatibility gate includes actual schema validation, Desktop open and query regression, not simply a JSON parser.
Worked example 1 — identify the broken rename
In broken.json, Revenue becomes Net Revenue but Profit still uses [Revenue], and revenue-card still references Revenue. The explicit dependency checker must report measure:Profit -> Revenue and visual:revenue-card -> Revenue. In the repaired version both dependencies point to Net Revenue and the measure expression remains SUM(Sales[Amount]). Expected static errors: zero; native results remain untested. A declared dependency list is not an automatic DAX parser.
Worked example 2 — inspect and revert
Run the provided local verifier. It initializes a temporary Git repository, commits baseline metadata, switches to review/rename, commits the broken candidate, reads git diff HEAD~1 HEAD -- metadata.json, and runs git revert --no-edit HEAD. The final file equals the original bytes and the revert is a new commit. This is a real local Git exercise; no external repository is used. Use the repaired candidate as a subsequent reviewed change rather than rewriting shared history.
Coordinate with Fabric lifecycle tools
Fabric Git integration synchronizes supported item definitions between a workspace and a branch. Check item support and tenant/provider prerequisites; current documentation still labels semantic model Git integration preview and excludes particular model types. Git sync is not a full deployment or backup; verify dependencies, credentials, data, permissions and bindings separately. Resolve conflicts on a reviewed branch and avoid deleting a referenced item or changing identities without impact analysis.
Practice and references
Run the verifier, inspect the two broken edges and propose tests for baseline versus repaired revenue and profit with the same filters. Describe what a revert does not restore. See TMDL view, Git integration, Git process and lifecycle.