Skip to content

M kovalsky/1328 fix - #1341

Open
Michael Kovalsky (m-kovalsky) wants to merge 2 commits into
microsoft:mainfrom
m-kovalsky:m-kovalsky/1328-fix
Open

Michael Kovalsky (m-kovalsky) wants to merge 2 commits into
microsoft:mainfrom
m-kovalsky:m-kovalsky/1328-fix

Conversation

@m-kovalsky

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI balanced review requested due to automatic review settings October 11, 2026 08:51

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The hostname decoder selects the tenant segment instead of the workspace segment, leaving cross-workspace service-principal resolution broken.

1 open finding
What changed in this PR

Improves Direct Lake source resolution for service-principal authentication and reorganizes launcher tools.

Changes:

  • Uses public Fabric APIs before internal metadata APIs.
  • Decodes workspace IDs from SQL endpoint hosts.
  • Reorders launcher entries.
File Description
src/​sempy_labs/​tom/​_model.py Adds Direct Lake source resolution logic.
src/​sempy_labs/​_app.py Reorders the interactive tool catalog.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +6141 to +6143
prefix = server.split(".")[0].split("-")[0].upper()
if len(prefix) < 26:
return []

This branch has not been deployed

No deployments
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.

2 participants