Skip to content

Commit

Permalink
fix(semantic-model-tmdl): add missing paths (#248)
Browse files Browse the repository at this point in the history
# 📥 Pull Request

fix #247

## ❓ What are you trying to address

Add support for missing `definition/expressions.tmdl` and
`definition/relationships.tmdl` paths in the Semantic Model TMDL format.
  • Loading branch information
DariuszPorowski authored Feb 12, 2025
1 parent 7d47ea2 commit c9da02f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changes/unreleased/fixed-20250212-122940.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
kind: fixed
body: Add support for missing `definition/expressions.tmdl` and `definition/relationships.tmdl` paths in the Semantic Model TMDL format.
time: 2025-02-12T12:29:40.6415539+01:00
custom:
Issue: "247"
2 changes: 1 addition & 1 deletion docs/data-sources/semantic_model.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ output "example_definition_bim_object" {

### Read-Only

- `definition` (Attributes Map) Definition parts. Possible path keys: **TMDL** format: `definition.pbism`, `definition/database.tmdl`, `definition/model.tmdl`, `definition/tables/*.tmdl`, `diagramLayp.json` **TMSL** format: `definition.pbism`, `diagramLayp.json`, `model.bim` (see [below for nested schema](#nestedatt--definition))
- `definition` (Attributes Map) Definition parts. Possible path keys: **TMDL** format: `definition.pbism`, `definition/database.tmdl`, `definition/expressions.tmdl`, `definition/model.tmdl`, `definition/relationships.tmdl`, `definition/tables/*.tmdl`, `diagramLayp.json` **TMSL** format: `definition.pbism`, `diagramLayp.json`, `model.bim` (see [below for nested schema](#nestedatt--definition))
- `description` (String) The Semantic Model description.
- `display_name` (String) The Semantic Model display name.

Expand Down
2 changes: 1 addition & 1 deletion docs/resources/semantic_model.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ resource "fabric_semantic_model" "example_update" {

### Required

- `definition` (Attributes Map) Definition parts. Read more about [Semantic Model definition part paths](https://learn.microsoft.com/rest/api/fabric/articles/item-management/definitions/semantic-model-definition). Accepted path keys: **TMDL** format: `definition.pbism`, `definition/database.tmdl`, `definition/model.tmdl`, `definition/tables/*.tmdl`, `diagramLayp.json` **TMSL** format: `definition.pbism`, `diagramLayp.json`, `model.bim` (see [below for nested schema](#nestedatt--definition))
- `definition` (Attributes Map) Definition parts. Read more about [Semantic Model definition part paths](https://learn.microsoft.com/rest/api/fabric/articles/item-management/definitions/semantic-model-definition). Accepted path keys: **TMDL** format: `definition.pbism`, `definition/database.tmdl`, `definition/expressions.tmdl`, `definition/model.tmdl`, `definition/relationships.tmdl`, `definition/tables/*.tmdl`, `diagramLayp.json` **TMSL** format: `definition.pbism`, `diagramLayp.json`, `model.bim` (see [below for nested schema](#nestedatt--definition))
- `display_name` (String) The Semantic Model display name.
- `format` (String) The Semantic Model format. Possible values: `TMDL`, `TMSL`
- `workspace_id` (String) The Workspace ID.
Expand Down
2 changes: 1 addition & 1 deletion internal/services/semanticmodel/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ var itemDefinitionFormats = []fabricitem.DefinitionFormat{ //nolint:gochecknoglo
{
Type: "TMDL",
API: "TMDL",
Paths: []string{"definition/database.tmdl", "definition/model.tmdl", "definition.pbism", "diagramLayp.json", "definition/tables/*.tmdl"},
Paths: []string{"definition/database.tmdl", "definition/model.tmdl", "definition/expressions.tmdl", "definition/relationships.tmdl", "definition.pbism", "diagramLayp.json", "definition/tables/*.tmdl"},
},
}

0 comments on commit c9da02f

Please sign in to comment.