Skip to content

1140#1164

Merged
bo-zhou-ms merged 2 commits intomicrosoft:mainfrom
m-kovalsky:m-kovalsky/1140
Apr 13, 2026
Merged

1140#1164
bo-zhou-ms merged 2 commits intomicrosoft:mainfrom
m-kovalsky:m-kovalsky/1140

Conversation

@m-kovalsky
Copy link
Copy Markdown
Collaborator

Copilot AI review requested due to automatic review settings April 9, 2026 18:24
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes perspective-based semantic model deployment by updating TOM perspective utilities and reworking _reduce_model to derive included objects directly from TOM perspectives (instead of relying on an undefined dfP).

Changes:

  • Refactors perspective/translation object-type validation into shared helper methods.
  • Enhances add_to_perspective / remove_from_perspective to be idempotent and ensure parent tables exist for non-table objects.
  • Reworks _reduce_model to gather tables/columns/measures/hierarchies from the perspective and track added dependency objects.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/sempy_labs/tom/_model.py Outdated
Comment thread src/sempy_labs/tom/_model.py Outdated
Comment thread src/sempy_labs/tom/_model.py Outdated
Comment thread src/sempy_labs/tom/_model.py Outdated
Comment thread src/sempy_labs/tom/_model.py Outdated
@bo-zhou-ms bo-zhou-ms merged commit 96c80c3 into microsoft:main Apr 13, 2026
4 checks passed
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