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

Add DB metadata to research updates #1114

Closed
danitrod opened this issue Mar 10, 2021 · 1 comment
Closed

Add DB metadata to research updates #1114

danitrod opened this issue Mar 10, 2021 · 1 comment
Labels

Comments

@danitrod
Copy link
Collaborator

Currently Research updates are being stored in an array in the Research object. The updates should be populated with DB metadata such as _id, _modified and _created, but currently aren't because they're not a standalone db entry. This could be solved either:

  • injecting the metadata into an update every time it is created/updated
  • moving updates to a separate collection and reference them by id in the Research object.

I'm thinking the latter option is probably the way to go, as we don't want to be managing the metadata manually.

Context: #1110 (comment)

@danitrod
Copy link
Collaborator Author

danitrod commented Apr 5, 2021

Using the first approach for now (#1116).

@danitrod danitrod closed this as completed Apr 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants