Skip to content
New issue

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

APS-1752 Create Seed Job to import Bookings from Delius that don't exist in CAS1 #2763

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

davidatkinsuk
Copy link
Contributor

@davidatkinsuk davidatkinsuk commented Jan 6, 2025

This commit adds a seed job to backfill active CAS1 bookings created in delius that do not exist in CAS1.

An active booking is one that:

  • does not have a departure recorded (and optionally, no arrival recorded)
  • does not have a non arrival recorded

We also exclude any bookings where the departure date is before 1/1/2025 or after 1/1/2035. This filters out several bookings where the dates have been set incorrectly but are clearly inactive/complete, most likely because they were created in older versions of delius that did not capture this data

@davidatkinsuk davidatkinsuk force-pushed the feature/aps-1752-add-seed-job-to-import-delius-only-referrals branch 7 times, most recently from 2c2bd76 to ae05913 Compare January 9, 2025 15:12
@davidatkinsuk davidatkinsuk marked this pull request as ready for review January 9, 2025 15:13
@davidatkinsuk davidatkinsuk force-pushed the feature/aps-1752-add-seed-job-to-import-delius-only-referrals branch 2 times, most recently from 187ca51 to 10d8a71 Compare January 9, 2025 16:10
This commit extracts the logic used to extract ‘Management Info’ from delius booking imports into a common service such that it can be reused for a new seed jobs that creates `SpaceBooking` for delius referrals that don’t have an existing booking in CAS1.
This commit adds a seed job to backfill `SpaceBookings` for bookings that were created directly in delius

It will create an offline application for every required booking, emulating the now removed ‘manual booking’ functionality
This commit adds a seed job to backfill active CAS1 bookings created in delius that do not exist in CAS1.

An active booking is one that:

* does not have a departure recorded (and optionally, no arrival recorded)
* does not have a non arrival recorded

We also exclude any bookings where the departure date is before 1/1/2025 or after 1/1/2035. This filters out several bookings where the dates have been set incorrectly but are clearly inactive/complete, most likely because they were created in older versions of delius that did not capture this data.

Note that the [Cas1DeliusBookingImportEntity] table only includes accepted bookings (i.e. not rejected), so these are already filtered out.
@davidatkinsuk davidatkinsuk force-pushed the feature/aps-1752-add-seed-job-to-import-delius-only-referrals branch from 10d8a71 to 48e26a6 Compare January 9, 2025 17:03
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.

1 participant