-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor run change detection and submission logic
- Always fetch the run_id & uid from the current run instead of query params when subscribing to realtime channel - Rename `_has_current_run_changed` -> `_has_request_changed` + add caching - Handle state reload after redirect to same url in react code - Remove un-used parameter `redirect_to` - Rename `submit` -> `submit_and_redirect` - Render header after inputs so that changes can be detected - Don't save published run if saved run creation fails, close dialog and show error instead - Remove checks for published_run being None since we have published_run always - Show published run save buttons immediately after making a change - Avoid init-ing state.variables = {} un-necessarily
- Loading branch information
Showing
3 changed files
with
59 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters