-
Notifications
You must be signed in to change notification settings - Fork 0
Update FHOW notebooks due to org-linked groups #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Update First Hour on Workbench notebooks to be compatible with org-linked Workbench groups and to explain about the differences between legacy groups and org-linked groups.
Update Working with Groups notebook to address org-linked groups, in addition to legacy groups. Add utility method for flat-listing members of nested groups.
c1e240e
to
b6aa3d9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a few sanity check comments for your consideration, but otherwise LGTM!
html = f"""<table style='margin: 0 auto,text-align: left'>""" | ||
html += "<th>ROLE</th>" | ||
html += "<th>USER_EMAILS</th>" | ||
html += "<tr>" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whenever I have to do something like this (construct html from strings) I wonder if there's a better way...
not asking for a change -- I think this is perfectly fine in small doses. just musing that it might be worth some thought someday.
""" List VWB groups in which user is a member in HTML table form. | ||
""" | ||
html = f"""<table style='margin: 0 auto,text-align: left'>""" | ||
json_data = json.loads(json_string) | ||
# html += "<th>ORG_ID</th>" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this communicating intent of some kind, or a stray comment? there are a few similar commented-out html strings below
description: str = "" | ||
bound_int_widget: widgets.BoundedIntText = None | ||
|
||
def __post_init__(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
neato. I didn't know about this function
" Email: <GROUP_NAME>@verily.com\n", | ||
" # Members: 1\n", | ||
" Current user's policies: ADMIN\n", | ||
" Organization : <ORG_ID>\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I admit I don't have a great mental model for what's happening here, but if those commented HTML strings will affect what should be written here, this is a reminder to update here accordingly
Update First Hour on Workbench notebooks to be compatible with org-linked Workbench groups and to explain about the differences between legacy groups and org-linked groups.