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

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

Open
osteele opened this issue May 7, 2018 · 0 comments

Comments

@osteele
Copy link
Contributor

osteele commented May 7, 2018

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.

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

No branches or pull requests

1 participant