MembersAttendingEventsForAnOrganizationEventsViewHandler: Handler
Item | Value |
---|---|
Briefly | Brief description missing. |
Definition Path | ImprovingApp.MembersAttendingEventsForAnOrganizationProjection.MembersAttendingEventsForAnOrganizationView.MembersAttendingEventsForAnOrganizationEventsViewHandler |
View Source Link | membersAttendingEventsForAnOrganizationProjection.riddl(16:13) |
\n"create rows in member table with attendingMember set to MemberRegistered.id""set previous row's attendingMemberName to concatenated MemberRegistered.info.firstName and MemberRegistered.info.lastName"
\n
\n"create row in event table with event set to EventScheduled.eventId, eventName set to EventScheduled.info.eventName, eventOrg to EventScheduled.info.sponsoringOrg, eventDate to day of EventScheduled.info.expectedStart""create row in org-event table with event set to EventScheduled.eventId, eventOrg set to set to EventScheduled.info.sponsoringOrg"
\n
\n"update eventDate with day of EventRescheduled.startTime in row in event table with event corresponding to EventRescheduled.eventId"
\n
\n"remove row in row in event table with event corresponding to EventCancelled.eventId""remove row in org-event table with event set to EventScheduled.eventId, eventOrg set to set to EventScheduled.info.sponsoringOrg"
\n
\n"if product is ticket, create row in ticket-event table with sku as ticketSku & productDetails.eventId as event"
\n
\n"for each OrderCreated.orderInfo.lineItem that has a SKU in ticket table, create row in ticket-event table with OrderCreated.meta.memberId as attendingMember & sku as ticketSku"
\n
\n"filter org table by FindMembersAtEventsOnDayForOrg.org""left results of previous operation with org-event, ticket-event, ticket-member, member, event tables""filter result of previous operation by eventDate equals FindMembersAtEventsOnDayForOrg.eventDate""return MembersAtEventsOnDay with event info keyed by members - or NoEventsOnDayForOrg if table is empty"
\n