Skip to content

Edit Node Lock #50

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

Merged
merged 5 commits into from
Jan 15, 2019
Merged

Edit Node Lock #50

merged 5 commits into from
Jan 15, 2019

Conversation

benloh
Copy link
Collaborator

@benloh benloh commented Jan 14, 2019

When someone begins editing a node, the node is now locked on the server and new users are prevented from editing the node. If they select a node and click "Edit Node" they will get a message about the node being locked.

To replicate:

  1. Log in on one browser.
  2. Click on a node to edit it.
  3. Click on the "Edit Node" button
  4. Log in on a second browser.
  5. Click on the same node on the other browser and click "Edit Node"
  6. You should get a message: "This node is currently being edited by someone else, please try again later."
  7. Finish editing on the first browser.
  8. Try editing from the second browser and it should work.

The lock message can be changed via the template system.

A few known issues to be addressed later:

  • Currently this does not work on most nodes due to type consistency error that we are about to address in a new fix. Node ids in the database are often saved as strings when they need to be integers. As a result, the node matching algorithms are not finding matching nodes.

  • The selected node on the second browser is not currently updating.

@benloh benloh merged commit 6e59817 into dev Jan 15, 2019
@benloh benloh deleted the dev-bl/edit-node-lock branch January 29, 2019 18:16
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

Successfully merging this pull request may close these issues.

2 participants