LocationsReservationsViewHandler: Handler
Item | Value |
---|---|
Briefly | Brief description missing. |
Definition Path | ImprovingApp.LocationsReservationsProjections.LocationsReservationsView.LocationsReservationsViewHandler |
View Source Link | locationsReservationsProjections.riddl(23:13) |
\n"find or create rows with venueId set to VenueEstablished.venueId and orgId set to VenueEstablished.info.orgId""set isPrivate to true if VenueEstablished.info.isPrivate is true"
\n
\n"find rows with venueId set to VenueInfoUpdated.venueId and orgId set to VenueInfoUpdated.info.orgId""set isPrivate to true if VenueInfoUpdated.info.isPrivate is true"
\n
\n"find or create rows with venueId set to VenueLocationsAdded.venueId and locationIds set to VenueLocationsAdded.locationIds"
\n
\n"find or create rows with reservationId set to ReservationEstablished.reservationId""set rows' reservationStart to ReservationEstablished.info.range.start""set rows' reservationEnd to ReservationEstablished.info.range.end"
\n
\n"find rows with reservationId set to ReservationInfoUpdated.reservationId""set rows' reservationStart to ReservationInfoUpdated.info.range.start""set rows' reservationEnd to ReservationInfoUpdated.info.range.end"
\n
\n"find or create rows with reservationId set to LocationEstablished.reservationIds""set rows' capacity to LocationEstablished.locationInfo.capacity""set rows' locationIds to LocationEstablished.locationIds""set isPrivate to true if LocationEstablished.info.isPrivate is true"
\n
\n"find or create rows with reservationId set to LocationReservationsAdded.reservationId""set rows' locationId to LocationReservationsAdded.locationId"
\n
\n"find rows where locationId is LocationInfoUpdated.locationId""set rows' capacity to LocationInfoUpdated.info.capacity""set isPrivate to true if LocationInfoUpdated.info.isPrivate is true"
\n
\n"filter by ScheduleEasyEvent.info.forOrg not equals orgId & isPrivate is true - return EasyEventNoAvailability if empty""find rows where ScheduleEasyEvent.maxAttendance < capacity - return EasyEventNoAvailability if empty""filter by ScheduleEasyEvent.info.timeRange.start & ScheduleEasyEvent.info.timeRange.end do not overlap reservationStart & reservationEnd""if empty, try 30mins earlier - if still empty, try 30 mins later - then return EasyEventNoAvailability if empty""return EasyScheduledEvent with all row's locationId, ScheduleEasyEvent.eventInfo where expectedStart & expectedEnd are possibly adjusted from previous steps"
\n