You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to migrate legacy field report data where the suffixes were previously stored in the summary field. The task is to identify the field report with the highest #(field report number) suffix for a specific event and country, and assign this number to the fr_number field for that report. For all other reports within the same event and country, their fr_number should be set to null.
Additionally, we need to account for the possibility that the actual fr_number for an event and country might be higher than the highest number derived from the suffixes. This can occur if duplicate suffixes exist. In such cases, the highest number between the derived fr_number and the actual fr_number should be selected.
Requirements:
Identify the highest #(field report number) suffix for each event and country from the old summary field.
Assign the highest number (either from the suffix or the actual fr_number) to the fr_number field for the appropriate field report.
Set the fr_number to null for all other reports within the same event and country.
Ensure that the migration handles duplicate suffixes correctly by selecting the maximum of the actual_fr_number and the highest derived fr_number.
Acceptance Criteria:
Only the field report with the highest suffix (or actual number) should have its fr_number updated.
All other field reports within the same event and country should have fr_number set to null.
The highest value between the derived number and the actual_fr_number should be used.
The text was updated successfully, but these errors were encountered:
We need to migrate legacy field report data where the suffixes were previously stored in the
summary
field. The task is to identify the field report with the highest#(field report number)
suffix for a specific event and country, and assign this number to thefr_number
field for that report. For all other reports within the same event and country, theirfr_number
should be set tonull
.Additionally, we need to account for the possibility that the actual
fr_number
for an event and country might be higher than the highest number derived from the suffixes. This can occur if duplicate suffixes exist. In such cases, the highest number between the derivedfr_number
and the actualfr_number
should be selected.Requirements:
#(field report number)
suffix for each event and country from the oldsummary
field.fr_number
) to thefr_number
field for the appropriate field report.fr_number
tonull
for all other reports within the same event and country.actual_fr_number
and the highest derivedfr_number
.Acceptance Criteria:
fr_number
updated.fr_number
set tonull
.actual_fr_number
should be used.The text was updated successfully, but these errors were encountered: