Anthony-Nolan / Atlas

A free & open-source Donor Search Algorithm Service
GNU General Public License v3.0
9 stars 5 forks source link

Store additional donor info in matching database #1064

Closed zabeen closed 10 months ago

zabeen commented 11 months ago

Dependency of matching on donor store leads to the exception described here #1055

To avoid this issue, three additional fields should be added to the Donors table on matching algorithm db:

These fields should be set via:

Release Management

Release steps would thus be:

  1. Release changeset (incl. db migration) with the feature flag set to false
  2. Run data refresh job
  3. Set feature flag to true
  4. Release changeset to remove donor store dependency (this will be covered by #1067 )
zabeen commented 11 months ago

@mmelchers It will take a few weeks to implement, test and release this.

Could you please investigate whether it is a single org who is responsible for the mass deletes and re-creates, followed by 100s of searches that bring the deleted donors back?

If it is a single org, could you notify them of the reason for the search failures, and ask them to allow 24 hours for donor updates to propagate before running the searches? At least until the fix has been deployed to live.

mmelchers commented 11 months ago

@zabeen the organisations doing the large updates are in many cases not the organisations that are doing the searches. These donors may appear in searches started by organisations all over the world. We cannot ask those organisations to not start searches for 24 hours, because another organisation is performing a large update.

zabeen commented 11 months ago

@mmelchers understandable, but I was just wondering if it was more than a coincidence that there were so many searches failing for this reason so soon after the mass delete/recreate event.

I was hoping S&M db would show a relationship between who is kicking off the searches and who is doing the mass updates.

zabeen commented 11 months ago

Testing Notes

1) Dev test

2) Regression test

3) Bug fix test

To be run with feature flag set to true

Part 1:

Part 2:

zabeen commented 11 months ago

Dev work done, but release and testing blocked by #1066

Update: #1066 completed, ticket is ready for testing

DmitriyShcherbina commented 11 months ago

@zabeen Hi! From my perspective, testing status: Ok

Screenshot at Oct 09 13-46-33 Screenshot at Oct 09 13-47-42 Screenshot at Oct 09 15-25-11

e93a6917-455d-4489-a437-46bc542ff9f5 - after DEV-ATLAS-MATCHING-DONOR-MANAGEMENT-FUNCTION pause and upload donor import file with 'delete' donors list

Screenshot at Oct 09 15-34-25

8dba3c96-2a32-4705-9b4d-3bec1daa5ce9 - after DEV-ATLAS-MATCHING-DONOR-MANAGEMENT-FUNCTION restart

Screenshot at Oct 09 15-46-29
zabeen commented 11 months ago

Release to WMDA as of 10th October 2023

zabeen commented 10 months ago

WMDA release completed, see #1066 for release notes.