JonSnow666's avatar
JonSnow666
New Member
5 months ago
Status:
New

Consistent TMDL serialisation across developer machines

We have started working using PBIP and Git integrations recently. It's been helpful but what's frustrating is the long list of Diffs we see on TMDL files where the relationships / measures being reordered even though the developer has not touched these measures.

this is causing a lot of strain reviewing pull requests. 

2 Comments

  • frithjof_v's avatar
    frithjof_v
    Icon for Community Champion rankCommunity Champion

    We are experiencing the same reordering issue. It's annoying because we manually need to check the Git diff just to find that there's actually no diff - just lines of TMDL code have been reordered but it's not something that we did ourselves. It's Power BI causing the TMDL reordering issue.

  • harzab's avatar
    harzab
    Regular Visitor
    I strongly support that this is a huge issue, if you have a semantic model with enough measures this becomes a constant pain and costs you a lot of time. However, I think the correct solution is not to change serialization behavior, but to change the design of TMDL completely. Honestly I am baffled at how anyone can think that putting all measures and columns in one file in a source code structure which specifically aims to enable management with git is a good idea. The ordering of measures and columns within a table OBVIOUSLY has no meaning! What makes it even worse is that this is a solved issue, the 3rd party library pbi-tools made the correct design choice and serialized each measure and column as individual files. Then, you can sort the files however you want, it won't leak into your repo.

Recent ideas