-
Notifications
You must be signed in to change notification settings - Fork 639
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 command line switch to enable projections on startup #504
Comments
I am slightly against this. For me I only see it ever being used in the If doing unit tests you can also pretty easily enable projections On Sat, Jun 6, 2015 at 3:38 AM, James Nugent notifications@github.com
Studying for the Turing test |
Yes, it's specifically for a testing scenario where an ephemeral database is being used. I didn't feel that it was easy, per se from the perspective of test automation, to enable projections on a newly started instance. I wrote this script to do it: https://gist.github.com/sbellware/74a8090fc73c871c016b So, now I have an automated way to do it, but the "easiness" really isn't something I see as akin to automation. My startup script now does what I want it to do, and I suppose anyone else can copy that Gist code and use it if they want the same effect. If that script proliferates, it might be an affirmation that it is a common way to start the server, and it would possibly be a voting in-favor of being able to do this without going to the HTTP control interface immediately after actuating the principle start-up control (the So, yes, it's for testing. And yes, it would be nice to not consider this mode a second class citizen of server startup because it's for testing. I would offer that what matters is what's common rather than what's production. Anyway, in the mean time - and as long as the interface doesn't change - I've got what I think of as a workable workaround. |
I understand totally however I would push towards lets write a blog post and provide copy/paste code or bring better documentation as opposed to adding a feature. |
Just putting this in here as a note. Also, +1 regarding the documentation around starting the projections. |
Closing this issue as projection documentation will cover this as this issue is directed at the command line switch. |
As @sbellware points out it would be useful to be able to enable projections on startup for unit testing without the need to invoke a script etc. Consider adding a command line such as (
--enable-system-projections
) that starts them in the enabled state.The text was updated successfully, but these errors were encountered: