We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently there seems to be no way to create a disabled projection using the EventStoreDBProjectionManagementClient.
The documentation of the create operation states:
Creates a new projection in the stopped state. Enable needs to be called separately to start the projection.
But when the following code is executed, the projection is already enabled (even if "enable" was not called afterwards):
public static void main(String... args) throws ExecutionException, InterruptedException { EventStoreDBProjectionManagementClient client = EventStoreDBProjectionManagementClient .create(EventStoreDBConnectionString .parseOrThrow("esdb://localhost:2113?tls=false")); String javascript = "fromAll().foreachStream().when({'one': function(state, ev) { linkTo('test-delete', ev); },'two': function(state, ev) { linkTo('test-delete', ev); }})"; client.create("my-projection", javascript, CreateProjectionOptions.get().emitEnabled(false).trackEmittedStreams(true)).get(); }
This means there is currently no way to create a disabled projection using the API.
Full Maven project for testing can be found here: https://github.com/michael-schnell/eventstore-create-enabled-bug
DEV-229
The text was updated successfully, but these errors were encountered:
Right now, you can't do that with the gRPC client. But it will be amended.
Sorry, something went wrong.
No branches or pull requests
Currently there seems to be no way to create a disabled projection using the EventStoreDBProjectionManagementClient.
The documentation of the create operation states:
But when the following code is executed, the projection is already enabled (even if "enable" was not called afterwards):
This means there is currently no way to create a disabled projection using the API.
Full Maven project for testing can be found here: https://github.com/michael-schnell/eventstore-create-enabled-bug
DEV-229
The text was updated successfully, but these errors were encountered: