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

Reset session info when connection state is not connected #2364

Merged
merged 1 commit into from
Nov 17, 2020

Conversation

karriebear
Copy link
Contributor

@karriebear karriebear commented Nov 17, 2020

Issue: Fixes #2363

Description:
Previously, we had an initialize message that was run on each new session. This was removed in #2317 and now all the initialization is done only once per page load.

This is a change from our previous metrics and causes issues for file uploader. Reverting back to the previous behavior so that each new session is re-initializated. Instead of tracking state on the server side like before, we now clear out SessionInfo (stored on the client side) when the client is no longer connected with the server.

This does not address any changes to metrics to improve our initialization/optimization of metrics. It is only a revert back to previous behavior. Any metric changes can be handled by a separate issue.


Contribution License Agreement

By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.

@karriebear karriebear requested a review from a team November 17, 2020 07:47
Copy link
Contributor

@akrolsmir akrolsmir left a comment

Choose a reason for hiding this comment

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

Thanks for the detailed description, the context behind the changes really helps!

@karriebear karriebear merged commit 90b7bb0 into streamlit:develop Nov 17, 2020
tconkling added a commit to tconkling/streamlit that referenced this pull request Nov 24, 2020
* develop:
  widgets.py: add type annotations (streamlit#2383)
  Lazy import S3Storage, so boto3 isn't always imported (streamlit#2375)
  Require `Sphinx">=3.0"` instead of bumping a fixed version (streamlit#2362)
  Fix Markdown issues found (streamlit#2381)
  Reset session info when connection state is not connected (streamlit#2364)
  Convert App to Emotion (streamlit#2353)
  Update develop_streamlit_components.md (streamlit#2357)
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.

SessionInfo is not updated when a new session is created
2 participants