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

Add conflict detector #28

Open
CeesJol opened this issue Dec 21, 2020 · 0 comments
Open

Add conflict detector #28

CeesJol opened this issue Dec 21, 2020 · 0 comments

Comments

@CeesJol
Copy link
Owner

CeesJol commented Dec 21, 2020

If user uses multiple devices they might run into a conflict. Currently the most recent version is used and overwrites the current resume, leading to potentially many lost saves. To solve this, for each resume, add an index that is incremented on each call to UPDATE_RESUME. If the local counter is less than the one on the DB, instead of updating the resume, inform the user there's a conflict and ask them which version they would like to save. Also inform them that refreshing the page will give them the updated resume.

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

No branches or pull requests

1 participant