Skip to content
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

fix auth for inst groups not in our infos #81

Merged
merged 8 commits into from
Mar 20, 2024
Merged

fix auth for inst groups not in our infos #81

merged 8 commits into from
Mar 20, 2024

Conversation

dsschult
Copy link
Contributor

Bug with groups that don't have the mou attribute at all. I think this fixes it?

File "/home/app/.local/lib/python3.10/site-packages/dash/_callback.py", line 442, in add_context
output_value = func(*func_args, **func_kwargs) # %% callback invoked %%
File "/home/app/web_app/contents/institution_callbacks.py", line 287, in select_institution_value
_select_institution_value_dc(
File "/home/app/web_app/contents/institution_callbacks.py", line 299, in _select_institution_value_dc
f"'{du.triggered()}' -> select_institution_value() ({state.s_urlpath=} {state.s_snap_ts=} {CurrentUser.get_summary()=})"
File "/home/app/web_app/data_source/connections.py", line 145, in get_summary
"is_authenticated": CurrentUser.is_loggedin_with_permissions(),
File "/home/app/web_app/data_source/connections.py", line 169, in is_loggedin_with_permissions
if CurrentUser.get_institutions():
File "/home/app/web_app/data_source/connections.py", line 212, in get_institutions
if not infos[short_name].has_mou:
KeyError: 'WashU-StLouis'

@dsschult dsschult requested a review from ric-evans March 20, 2024 16:46
@dsschult dsschult added the bug Something isn't working label Mar 20, 2024
@ric-evans ric-evans merged commit 0a42106 into master Mar 20, 2024
16 checks passed
@ric-evans ric-evans deleted the fix-has-mou branch March 20, 2024 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants