Skip to content

Consider whether events.labels and subscription.labels should be lists of references #235

Description

@osteele

http://docs.mongoengine.org/guide/defining-documents.html#one-to-many-with-listfields documents and demonstrates the use of a MongoDB DBRef (via MongoEngine's ReferenceField) to preserve database integrity.

This would remove the need to update all the event.labels and subscription.labels when a label is renamed.

It would also allow us to define the behavior when a label is deleted.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions