Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented Feb 5, 2021

Fixes #2667.

The issue was that our disconnect dialog grabs the user command from SessionInfo.current.commandLine, which is tragicomically unavailable because we have just disconnected. So this PR basically does two things:

  1. Move the "clear session info" code after the "start pinging the server" code
  2. Save the command line and pass it to the "pinging the server" code, which passes it to the disconnect dialog

@ghost ghost self-requested a review February 5, 2021 01:28
@kmcgrady
Copy link
Collaborator

kmcgrady commented Feb 5, 2021

Looks good. There's some cypress issues, but hopefully this is easy.

@ghost ghost merged commit b51b71d into streamlit:develop Feb 5, 2021
@ghost ghost deleted the fix-disconnect-dialog branch February 8, 2021 18:41
tconkling added a commit that referenced this pull request Feb 8, 2021
* develop:
  Autofocus "clear cache" button (#2739)
  Fix checkbox spacing (#2738)
  Fix progress bar alignment (#2734)
  Fix select menu not autoselecting first item (#2732)
  Show user command line in disconnect dialog (#2735)
  Up version to 0.76.0
  Update change log
  Improve usage warning wording and formatting
  Finally remove beta versions of set_page_config and color_picker (#2711)
  Finally remove beta versions of set_page_config and color_picker (#2711)
  Clean up file update calls (#2597)
tconkling added a commit to tconkling/streamlit that referenced this pull request Feb 11, 2021
* develop:
  Slider thumb values are always visible (streamlit#2724)
  Update component-template submodule to latest (streamlit#2767)
  `allow_multiple_files` -> `accept_multiple_files` (streamlit#2761)
  Autofocus "clear cache" button (streamlit#2739)
  Fix checkbox spacing (streamlit#2738)
  Fix progress bar alignment (streamlit#2734)
  Fix select menu not autoselecting first item (streamlit#2732)
  Show user command line in disconnect dialog (streamlit#2735)
  Up version to 0.76.0
  Update change log
  Improve usage warning wording and formatting
  Finally remove beta versions of set_page_config and color_picker (streamlit#2711)
  Finally remove beta versions of set_page_config and color_picker (streamlit#2711)
  Clean up file update calls (streamlit#2597)
schaumb pushed a commit to FloWide/streamlit that referenced this pull request Feb 22, 2021
* show user command line on disconnect

* force ci rerun

* force ci rerun

* fix xsrf issue
This pull request was closed.
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.

Streamlit should show name of current file in disconnect dialog

1 participant