• Resolved Jack

    (@moxie)


    When two people work at the same time on one and the same table from different computers, will work get lost from one person when the other hits the update button, even when the other person does not refresh the page/table he/she is working on?

    And how does this work when two people work on different tables? When one hits the update button, will all tables be saved in the database at that time, or just that one table that is updated?

    I ask this because someone just noticed all work is lost because someone else was also working in Tablepress.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi!

    Thanks for your post and sorry for the trouble!

    Indeed, when two people are editing a table at the same time, the person that saves last “wins”, so to speak (that is, that persons changes will ultimately be saved in the database). I hope to be able to optimize this in the future, e.g. by showing a warning if another user is already editing a table, or by “locking” a table, similarly to how WordPress locks posts/pages that are currently edited.

    Multiple people editing different tables is no problem though, as tables are independent from each other.

    Best wishes,
    Tobias

    Thread Starter Jack

    (@moxie)

    Thanks Tobias for explaining :). I assumed it works as you described. After she noticed all changes were lost she went looking for a versions tab, just like with posts. But of course that doesn’t exist. Showing a warning when another person is editing the same table is a good solution too.

    Jack

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi Jack,

    well, older versions are actually saved using the WordPress Revisions system (unless that has been turned off by setting respective PHP constants).

    There’s just no user interface exposing the older table revisions in TablePress, so that accessing these via the database or raw “Custom Post Type” interface would be necessary.

    Regards,
    Tobias

    Thread Starter Jack

    (@moxie)

    Interesting. Maybe a future version of WP will make this possible. I think many plugins could benefit from this.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    yes, protection against simultaneous editing as well as offering the possibility to revert to older versions of a table are my list of ideas for the future ??

    Best wishes,
    Tobias

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How does Tablepress save updates? Working together on tables.’ is closed to new replies.