Skip to content

Replication: Changes not tracked when using custom id property #933

Closed

Description

@ritch

With a model definition similar to the following (attached to mongodb on the server):

{
  properties: {
    myIdProperty: {
      id: true,
      type: 'Number'
    },
    ...
  }
}

Changes are being tracked with the _id (ObjectID) instead of the value of the id field ('myIdProperty'). This completely breaks replication.

Activity

  1. self-assigned this
    on Dec 17, 2014
  2. ritch commented on Jan 8, 2015

    @ritch
    MemberAuthor

    With some deeper digging... it looks like this is a property definition we cannot support with mongodb out of the box.

    The model should instead use the default id configuration. This will avoid the issue where changes are not saved with the correct id.

    /cc @dashby3000 @raymondfeng

  3. bajtos commented on Jan 9, 2015

    @bajtos
    Member

    Related: #981

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions