Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

🐛 Fixed "Someone else is editing" errors showing when no-one else is editing #901

Merged

Conversation

kevinansfield
Copy link
Collaborator

@kevinansfield kevinansfield commented Nov 1, 2017

closes TryGhost/Ghost#8969

Collision detection errors were appearing incorrectly because the save routines in the post settings menu bypass the sequential saves in the main editor controller and so are prone to having stale data if a previous save is still in progress.

  • added a new savePost task that is part of the saveTasks group so that all post saves are sequential
  • pass the savePost task to the {{gh-post-settings-menu}} component
  • use savePost task in gh-post-settings-menu instead of calling save() directly on the model instance

Note: See TryGhost/Ghost#8969 for local reproduction steps.

…editing

closes TryGhost/Ghost#8969

Collision detection errors were appearing incorrectly because the save routines in the post settings menu bypass the sequential saves in the main editor controller and so are prone to having stale data if a previous save is still in progress.

- added a new `savePost` task that is part of the `saveTasks` group so that all post saves are sequential
- pass the `savePost` task to the `{{gh-post-settings-menu}}` component
- use `savePost` task in `gh-post-settings-menu` instead of calling `save()` directly on the model instance
@kirrg001
Copy link
Contributor

kirrg001 commented Nov 1, 2017

Cool! Will review tomorrow morning 👍

@kirrg001
Copy link
Contributor

kirrg001 commented Nov 2, 2017

Wasn't able to find a problem with this change. Feel free to self-merge for the release later 👍

@kevinansfield
Copy link
Collaborator Author

Ugh, I really need to fix that test which consistently randomly fails on Travis 😞

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.007%) to 73.134% when pulling 93b34d1 on kevinansfield:but-no-on-else-is-editing into 491b498 on TryGhost:master.

@kevinansfield kevinansfield merged commit 3aa44c9 into TryGhost:master Nov 2, 2017
@kevinansfield kevinansfield deleted the but-no-on-else-is-editing branch November 2, 2017 09:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Someone else is editing" errors when no-one else is editing
3 participants