Skip to content

Commit

Permalink
Merge branch 'm-kovalsky/scanworkspacesvisible'
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kovalsky committed Dec 12, 2024
2 parents 07cc88b + dbadbd5 commit cd700ab
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ Check out the video below for an introduction to Semantic Link, Semantic Link La
* [Dynamically generate a Direct Lake semantic model](https://semantic-link-labs.readthedocs.io/en/stable/sempy_labs.directlake.html#sempy_labs.directlake.generate_direct_lake_semantic_model)
* [Check why a Direct Lake semantic model would fallback to DirectQuery](https://semantic-link-labs.readthedocs.io/en/stable/sempy_labs.directlake.html#sempy_labs.directlake.check_fallback_reason)
* [View a measure dependency tree](https://semantic-link-labs.readthedocs.io/en/stable/sempy_labs.html#sempy_labs.measure_dependency_tree)
* [View unique columns touched in a single (or multiple) DAX query(ies)](https://semantic-link-labs.readthedocs.io/en/stable/sempy_labs.html#sempy_labs.get_dax_query_dependencies)
* Reports
* [Report Best Practice Analyzer (BPA)](https://semantic-link-labs.readthedocs.io/en/stable/sempy_labs.report.html#sempy_labs.report.run_report_bpa)
* [View report metadata](https://github.com/microsoft/semantic-link-labs/blob/main/notebooks/Report%20Analysis.ipynb)
Expand Down
4 changes: 4 additions & 0 deletions src/sempy_labs/admin/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
from sempy_labs.admin._scanner import (
scan_workspaces,
)
from sempy_labs.admin._basic_functions import (
assign_workspaces_to_capacity,
unassign_workspaces_from_capacity,
Expand Down Expand Up @@ -66,4 +69,5 @@
"list_git_connections",
"list_reports",
"get_capacity_assignment_status",
"scan_workspaces",
]
8 changes: 6 additions & 2 deletions src/sempy_labs/tom/_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -4541,9 +4541,13 @@ def add_role_member(self, role_name: str, member: str | List[str]):
rm.IdentityProvider = "AzureAD"
rm.MemberName = m
role.Members.Add(rm)
print(f"{icons.green_dot} '{m}' has been added as a member of the '{role_name}' role.")
print(
f"{icons.green_dot} '{m}' has been added as a member of the '{role_name}' role."
)
else:
print(f"{icons.yellow_dot} '{m}' is already a member in the '{role_name}' role.")
print(
f"{icons.yellow_dot} '{m}' is already a member in the '{role_name}' role."
)

def close(self):

Expand Down

0 comments on commit cd700ab

Please sign in to comment.