Skip to content

Feat/projection event emitter#588

Merged
dgafka merged 3 commits intomainfrom
feat/projectv2-event-emitter
Dec 21, 2025
Merged

Feat/projection event emitter#588
dgafka merged 3 commits intomainfrom
feat/projectv2-event-emitter

Conversation

@dgafka
Copy link
Member

@dgafka dgafka commented Dec 21, 2025

Why is this change proposed?

This provides support for event emitter in new projection system, by introducing ProjectionDeployment attribute:

  • Introduce ProjectionDeployment, which describe intention that given set of configs is only meaningful for projection deployment, and later can be removed
  • Allow to set Projection as live: false, which gives ability to not emit events (rebuild phase)
  • It does change the config from autoInitialization to manualKickOff: true, to be more descriptive of what is the aim of it. This is also moved now under ProjectionDeployment

Description of Changes

Non-live projection.

#[ProjectionV2('non_live_emitting_projection'), ProjectionDeployment(live: false)
class TicketProjection

manual kick off

#[ProjectionV2('skip_init_projection'), ProjectionDeployment(manualKickOff: true)
class TicketProjection

Pull Request Contribution Terms

  • I have read and agree to the contribution terms outlined in CONTRIBUTING.

@dgafka
Copy link
Member Author

dgafka commented Dec 21, 2025

cc: @jlabedo

Copy link
Contributor

@jlabedo jlabedo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love it

@dgafka dgafka merged commit 8b38252 into main Dec 21, 2025
9 checks passed
@dgafka dgafka deleted the feat/projectv2-event-emitter branch December 21, 2025 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants