Add semantic_model_diff_editor: interactive diff & cherry-pick UI for semantic models - #1233
Draft
m-kovalsky with Copilot wants to merge 4 commits into
Draft
Add semantic_model_diff_editor: interactive diff & cherry-pick UI for semantic models#1233m-kovalsky with Copilot wants to merge 4 commits into
m-kovalsky with Copilot wants to merge 4 commits into
Conversation
Agent-Logs-Url: https://github.com/microsoft/semantic-link-labs/sessions/fd4b29a8-764d-4494-96ea-513aa15a5a64 Co-authored-by: m-kovalsky <29556918+m-kovalsky@users.noreply.github.com>
Agent-Logs-Url: https://github.com/microsoft/semantic-link-labs/sessions/71d136ac-2a50-4d8d-89cc-a8a3f2225905 Co-authored-by: m-kovalsky <29556918+m-kovalsky@users.noreply.github.com>
Agent-Logs-Url: https://github.com/microsoft/semantic-link-labs/sessions/71d136ac-2a50-4d8d-89cc-a8a3f2225905 Co-authored-by: m-kovalsky <29556918+m-kovalsky@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
m-kovalsky
May 17, 2026 20:41
View session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds an interactive UI (in the style of
perspective_editor) for diffing two Fabric / Power BI semantic models and selectively promoting changes between them — a lightweight CI/CD workflow for semantic modelers.UI (
src/sempy_labs/semantic_model/_diff_editor.py).tmdl) vs BIM (singlemodel.bim).added/removed/modified/unchanged) with per-file+/-counts and summary stat chips.updateDefinitionAPI; non-text parts (e.g.definition.pbidataset) are echoed back unchanged. Both sides auto-refetch and re-diff after apply..patch, dark/light theme toggle.Diff & apply pipeline
difflib.SequenceMatcher.get_opcodes(), producing line-level hunks taggedequal/replace/insert/delete.Tests (
tests/test_semantic_model_diff_editor.py, 73 tests)_split_lines,_join_lines,_compute_file_hunks,_compute_diff,_apply_hunks_to_lines) hoisted to module level and unit-tested for empty/identical/insert/delete/replace cases, file-status classification, sort order, and select-none/all/partial cherry-pick in both directions.formatvalidation,BIMalias); embedded CSS (scoped.slls-de-*prefix, light + dark themes, required selectors, semantic color tokens); embedded JS (anywidget ESM shape, every traitlet referenced from JS, everypending_actionemitted, expected UI labels,escapeHtmlpresent).tests/conftest.py— putssrc/onsys.pathand stubssempy._utils._logso the suite runs withoutsemantic-link-sempyinstalled.