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 slow save requests better #4593

Merged
merged 11 commits into from May 11, 2020
Merged

Handle slow save requests better #4593

merged 11 commits into from May 11, 2020

Conversation

philippotto
Copy link
Member

@philippotto philippotto commented May 5, 2020

  • warn the user when there are unsaved changes older than X seconds (for testing, X is set to 5 seconds; for production, I'd suggest to set it to 2 minutes)
  • send a warning to airbrake when a save request takes longer than 1 minute (set to 5 s for testing)
  • send a a warning to airbrake when there was a conflict state (status code 409)

image

URL of deployed dev instance (used for testing):

Steps to test:

  • modify a tracing and a warning at the save button should appear after 5 seconds. the back-end has a hardcoded sleep which should make the save request extra slow

Issues:


Copy link
Member

@daniel-wer daniel-wer left a comment

Choose a reason for hiding this comment

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

Awesome, this is a great improvement. Worked great during testing and looks and feels very smooth :)
I added some questions and suggestions.

Copy link
Member

@daniel-wer daniel-wer left a comment

Choose a reason for hiding this comment

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

Excellent 👍

@bulldozer-boy bulldozer-boy bot merged commit 07eb519 into master May 11, 2020
@bulldozer-boy bulldozer-boy bot deleted the debug-save-timeout branch May 11, 2020 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants