So, I spent all day reviewing rubbish games on ludumdare.com and am going to get back on the horse for a few hours before hitting bed.
I’m wondering about house-keeping, we’ve already discussed that I can throw my projection code in a folder and curl the lot up to an event store when testing, but what do I do about all my test data?
My test data comes from Github, I keep ploughing a few hours data into the event store, realising I’ve made a mess of the projections, can’t really delete the projections (can mark them as deleted of course, but that means all my lovely names are buggered)
How best to do this sort of thing, as it’s clearly going to be a scenario that teams would hit too…
Have a script that can take my main event stream(s) such as /streams/github and plough it from a “buggered” eventstore into a clean and fresh event store
Keep a secondary store of all those events and have a script to plough them into an event store whenever I start fresh dev (would prefer not)
Just version my projections and deal with the fact that I’m going to be deleting them over and over again until I get them right
I can understand that there isn’t really such a thing as ‘deleting’ a projection - because they can have side effects such as stream/projection creation and that would be a PITA to manage (because a clean-up would involve deleting all of that too and there goes all the immutability).
Just curious how you plan/advise on handling this sort of thing in the real world