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

handle IDPs that don't return initials #316

Merged
merged 4 commits into from
Aug 4, 2023
Merged

Conversation

dlqqq
Copy link
Member

@dlqqq dlqqq commented Aug 3, 2023

@dlqqq dlqqq added the bug Something isn't working label Aug 3, 2023
@dlqqq dlqqq merged commit 1689e7f into jupyterlab:main Aug 4, 2023
3 checks passed
@dlqqq dlqqq mentioned this pull request Aug 4, 2023
@dlqqq dlqqq deleted the fix-jupyterhub branch August 4, 2023 16:22
dlqqq added a commit that referenced this pull request Aug 4, 2023
* handle IDPs that don't return initials

* pre-commit

* use current_user.name for default initials

* capitalize initials
chat_user_kwargs = {
# set in case IdentityProvider doesn't return initials, e.g.
# JupyterHub (#302)
"initials": initials,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the case where initials is set to None by the identity provider, this doesn't work. This line should be below the following line.

dbelgrod pushed a commit to dbelgrod/jupyter-ai that referenced this pull request Jun 10, 2024
* handle IDPs that don't return initials

* pre-commit

* use current_user.name for default initials

* capitalize initials
Marchlak pushed a commit to Marchlak/jupyter-ai that referenced this pull request Oct 28, 2024
* handle IDPs that don't return initials

* pre-commit

* use current_user.name for default initials

* capitalize initials
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.

Cannot initialize extension in collaborative mode due to missing initials
3 participants