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

Optimistic locking #56

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Commits on Nov 22, 2021

  1. Configuration menu
    Copy the full SHA
    e45973d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4204335 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6ea90e6 View commit details
    Browse the repository at this point in the history

Commits on Nov 23, 2021

  1. Configuration menu
    Copy the full SHA
    b312abc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9cb9fe3 View commit details
    Browse the repository at this point in the history

Commits on Dec 8, 2021

  1. Configuration menu
    Copy the full SHA
    5d2c582 View commit details
    Browse the repository at this point in the history

Commits on Dec 14, 2021

  1. PR feedback :

    - Name version field name Version_ to avoid collisions.
    - In operation.update(), capture Version before hooks in case updatedAt is used as versionable field
    - In operation.create(), if model is versionable and zero, increment version so it gets initialized in DB
    - Rename GetVersionFieldName to GetVersionBsonFieldName to make it clear it is the bson field name.
    - Rename GetVersion() to Version() as it is more idiomatic
    arthurclement-lab49 committed Dec 14, 2021
    Configuration menu
    Copy the full SHA
    eabaab6 View commit details
    Browse the repository at this point in the history