Skip to content

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

emmarogge
Copy link
Contributor

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 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.
@emmarogge emmarogge requested a review from mspector May 6, 2025 19:25
emmarogge added 2 commits May 12, 2025 18:00
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.
@emmarogge emmarogge force-pushed the emmarogge/update_fhvwb branch from c1e240e to b6aa3d9 Compare May 12, 2025 19:19
Copy link

@mspector mspector left a 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>"

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>"

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):

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",

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

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