Repository navigation
Add get_graphql_api function - #1337
Merged
Michael Kovalsky (m-kovalsky) merged 1 commit intoOct 4, 2026
Merged
Michael Kovalsky (m-kovalsky) merged 1 commit into
Michael Kovalsky (m-kovalsky) merged 1 commit into
Conversation
Copilot started reviewing on behalf of
Iurii Iurchenko (iurii-iurchenko-1)
September 21, 2026 17:41
View session
Contributor
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Add the top-level sempy_labs forwarding wrapper and export for consistent public access.
Get a fresh assessment by requesting another Copilot review.
Review effort: Lite
Findings: 1
Open (1)
What changed in this PR
Adds get_graphql_api to retrieve detailed GraphQL API metadata.
Changes:
- Implements the Fabric GraphQL API retrieval wrapper.
- Maps folder, sensitivity label, and default identity fields.
- Exports the function from the GraphQL submodule.
| File | Description |
|---|---|
src/sempy_labs/graphql/_items.py |
Implements the API wrapper and response mapping. |
src/sempy_labs/graphql/__init__.py |
Exports get_graphql_api. |
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Michael Kovalsky (m-kovalsky)
approved these changes
Oct 4, 2026
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
get_graphql_api, wrapping Items - Get GraphQLApi.Follows the
get_variable_librarypattern. Returns a single-row DataFrame with the fieldslist_graphql_apisdoesn't surface — folder, sensitivity label, and default identity — since those are the reason to callgetoverlist.Testing
Verified in a Fabric notebook against a live workspace, resolving both by name and by item ID:
displayName,id,description,folderIdreturn correct values (confirmedfolderIdby moving the item into a workspace folder)sensitivityLabelanddefaultIdentitywere absent from the response in my tenant (no Purview/AIP licensing, no identity configured). Both are mapped per the API reference, which documentssensitivityLabel.id— but they are not exercised against populated values. Happy to adjust if the real shape differs.resolve_item_idFormatted with
black==25.1.0.