Add permission edge collection for remote workspace resources#316
Open
dbx-shauver wants to merge 1 commit intorelease/0.8.0from
Open
Add permission edge collection for remote workspace resources#316dbx-shauver wants to merge 1 commit intorelease/0.8.0from
dbx-shauver wants to merge 1 commit intorelease/0.8.0from
Conversation
Add permissions.get() calls for Jobs, Clusters, and SQL Warehouses on remote workspaces. These resources were already collected as vertices but had no permission edges, leaving a gap in the cross-workspace "who can access what" picture. Uses the same ACL-to-edge pattern as the local workspace collection. Each call is wrapped in try/except to handle access restrictions gracefully. Edge dst IDs use the prefixed vertex IDs to ensure correct graph connectivity. Co-authored-by: Isaac
6 tasks
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.
Summary
permissions.get()calls for Jobs, Clusters, and SQL Warehouses on remote (non-current) workspacescollect_permissionsconfig flagdstuses prefixed vertex IDs (ws_{ws_id}_job:,ws_{ws_id}_cluster:,ws_{ws_id}_warehouse:)srcuses principal name strings (email/group_name), unaffected by identity ID prefix change from PR Restructure collection into unified per-workspace loop #313Context
This is PR 2 of 5 in the cross-workspace collection gap closure plan. Builds on the structural refactor in PR #313 (merged).
Test plan
collect_permissions=Falseskips the new code pathsThis pull request was AI-assisted by Isaac.