Page MenuHomePhabricator

Integrate Donation tracking changes in Fundraising Application
Closed, ResolvedPublic2 Estimated Story Points

Description

NOTE: This is a technical subticket of T328075: Move tracking out of donation data blob

We accidentally did the structural (database) changes for T336848: Change how the donation bounded context stores tracking data in ticket T336846: Migrate donation tracking data to new table. This ticket is about integrating those database changes into the Fundraising Application and deploying the them to test and production.

We will not do the data migration in production (that'll be part of the deployment in T336848: Change how the donation bounded context stores tracking data), only the structural database changes.

Affected repositories

  • Fundraising Application

Implementation details

  • Update wmde/fundraising-donations dependency to the newest version
  • update the SQL by running make generate-database-schema

Deployment

This needs a database, both in the test and production deployment.

Testing the data migration script in the testing environment (DONE)

To make sure that the production data migration will run smoothly, do the following steps:

  • copy the production database to test
  • create the file migrations-db.php file in the project root directory (current-release), with PDO connection data returned as an array. You can convert the db section from the JSON configuration file into PHP syntax.
  • run data migration script vendor/wmde/fundraising-donations/bin/migrate-donation-tracking-data.

Event Timeline

gabriel-wmde updated the task description. (Show Details)
gabriel-wmde set the point value for this task to 5.

PR: https://github.com/wmde/fundraising-application/pull/3065 (needs a donation release)
I've user-tested the migration (both Doctrine and migration script) locally and on test.

kai.nissen changed the point value for this task from 5 to 2.Apr 15 2025, 8:39 AM

TBD next:
Gabriel's PR needs a production deployment (incl. migration):

  1. do not merge the PR until the migration is finished
  2. run a deployment of the fundraising-application with the --extra-vars skip_symlink=yes flag
    • we skip pointing to the new release (wich would be broken at that time because we haven't run the migration yet)
  3. execute the db migration
    • TBD how
  4. merge the PR to main
  5. do a regular main/main deployment (= points to the latest release as usual)
kai.nissen removed gabriel-wmde as the assignee of this task.