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

stricter model validation #282

Open
1 task
goto-bus-stop opened this issue Jul 20, 2018 · 0 comments
Open
1 task

stricter model validation #282

goto-bus-stop opened this issue Jul 20, 2018 · 0 comments
Labels
Milestone

Comments

@goto-bus-stop
Copy link
Member

goto-bus-stop commented Jul 20, 2018

we had some playlist data corruptions because of a web client bug overnight. bugs in the client or web api should not be able to cause u-wave-core to store invalid objects.

in particular moving a playlist item could cause its id to become null in the media property in the Playlist model.

Things to do:

  • mark every array type in mongoose with required: true
@goto-bus-stop goto-bus-stop added this to the v0.5 milestone Aug 5, 2020
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

1 participant