als-computing / splash-server

Server code for the Splash system.
Other
1 stars 4 forks source link

Created timestamping, user tracking, edit tracking and fixed paging #72

Closed J-avery32 closed 3 years ago

dylanmcreynolds commented 3 years ago

github won't let me push to this PR. Can you please edit requirements-dev.txt.

Remove pytest-mongo Add mongomock>=3.22

dylanmcreynolds commented 3 years ago

I've changed my mind, since I can't log in.

Let's add a migration script. Shouldn't be too hard. In the scripts folder, please create a python script called "upgrade_v01.4.py". Have it use pymongo to search through every doc in every collection that doesn't have splash_md and add a stock one.

dylanmcreynolds commented 3 years ago

I think I rand the upgrade script, thanks. But, there should be some output! List every document that was upgraded, please. Oh wait, you're using update_many...I think there is some info that that about number of matches and number of updates. That would at least be good.