Skip to content

Commit f206a60

Browse files
committed
Identify workflow setup records with chg versions
https://eaflood.atlassian.net/browse/WATER-4437 For context, we found out legacy background jobs scheduled in BullMQ only run intermittently. One we found hadn't run for the last 2 years so we agreed to bin it. Two we need to deal with at some point but intermittent is fine for now. The critical job, which is putting updated licences into workflow, we solved by migrating to [water-abstraction-system](DEFRA/water-abstraction-system#903). As part of solving it we took the opportunity to add data to the workflow record to allow us to identify that the record was added because of an updated licence. We also spotted that our time-limited job was broken 😱 so [fixed that](DEFRA/water-abstraction-system#908) and updated it to _also_ add some info to the workflow record. With these handy bits of info now in the workflow record, it seemed a shame we don't make the reason why the record was added visible to the user. That led to [Make manage workflow 'to setup' links intelligent](DEFRA/water-abstraction-ui#2549) in the legacy UI code. The last piece of the puzzle is the historic `to_setup` records. The new links would be less confusing if the existing records were updated to also identify if they are for new licences that need charge information or existing ones that need their details checking. This adds a one-time migration to do just that!
1 parent f43439c commit f206a60

File tree

0 file changed

+0
-0
lines changed

    0 file changed

    +0
    -0
    lines changed

    0 commit comments

    Comments
     (0)