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

Deploy button front #2552

Merged
merged 23 commits into from
Jan 6, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion e2e/specs/st_main_menu.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe("main menu", () => {
cy.get('[data-testid="main-menu-popover"]').invoke(
"attr",
"style",
"transform: translate3d(20px, 20px, 0px);z-index:99999;"
"transform: translate3d(20px, 20px, 0px);"
);
cy.get('[data-testid="main-menu-list"]').matchImageSnapshot("main_menu");

Expand Down
4 changes: 2 additions & 2 deletions lib/streamlit/report_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,11 +428,11 @@ def handle_git_information_request(self):
msg.git_info_changed.state = GitInfo.GitStates.AHEAD_OF_REMOTE
else:
msg.git_info_changed.state = GitInfo.GitStates.DEFAULT

Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like before, we would always send an empty ForwardMsg even if something failed in our Git import; now, we don't send that ForwardMsg.

Just wanted to check -- was this change on purpose, and is it necessary? Since the rest of the PR is just frontend code, ideally we don't have to change the Python code here; but eg if this is needed for our logic to be correct, or a test to pass here, I'm okay with it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It was failing a test due to this because we've been sending an empty forwardmsg

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should I do a separate PR for this?

self.enqueue(msg)
except:
pass

self.enqueue(msg)

def handle_rerun_script_request(self, client_state=None, is_preheat=False):
"""Tell the ScriptRunner to re-run its report.

Expand Down