Skip to content

EMD->EML generation bug: Should not require additional readmodel property in EMD #10

@robertreppel

Description

@robertreppel

In the current version there needs to be at least one read model parameter which is not an aggregate ID in order for the EMD->EML converter to be able to find the events a read model needs to subscribe to:

This is OK:

# test Register -> userId, name User Registration Happened // userId, name Submit -> timesheetId Timesheet Submitted // timesheetId Timesheets* // timesheetId, userId, name 

This should be OK, but isn't:

# test Register -> userId, name User Registration Happened // userId, name Submit -> timesheetId Timesheet Submitted // timesheetId Timesheets* // timesheetId, userId

les validate results in:

EML Errors: MissingReadmodelSubscribesToEvent: test-Timesheets: Missing Readmodel SubscribesTo Event(s)

There is no need for this limitation - EMD->EML should be able to find the "Timesheet Submitted" and "User Registration Happened" events based on the EMD supplied.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions