This fixes a problem where new Major Events were being added to the HTML source tables more than the default lookback time of 21 days. These events were then being lost.
By adding a 2-year lookback the code will see newly-added events as far back as 2 years. In addition the lookback_delete attribute means that edits of existing events (change/delete) can be done in that timeframe. In effect this will now maintain sync between the kadi events table and the source HTML pages.
NOTE
On kady, I already did a wholesale fix of the flight MajorEvent table with the following command. This was necessary to correct for this lookback bug over the entire time span, effectively re-syncing the database to the existing FOT and FDB major event HTML files:
Ran the following, which shows major events from the last two years being removed and then re-added to the database. In particular a number of events from 2022 that were missing in flight are now included.
Description
This fixes a problem where new Major Events were being added to the HTML source tables more than the default lookback time of 21 days. These events were then being lost.
By adding a 2-year
lookback
the code will see newly-added events as far back as 2 years. In addition thelookback_delete
attribute means that edits of existing events (change/delete) can be done in that timeframe. In effect this will now maintain sync between the kadi events table and the source HTML pages.NOTE
On
kady
, I already did a wholesale fix of the flightMajorEvent
table with the following command. This was necessary to correct for this lookback bug over the entire time span, effectively re-syncing the database to the existing FOT and FDB major event HTML files:Interface impacts
None
Testing
Unit tests
Functional tests
Ran the following, which shows major events from the last two years being removed and then re-added to the database. In particular a number of events from 2022 that were missing in flight are now included.