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
As we implement #2387 we will need to migrate existing data. This migration should be applied as follows. Allowed workshops should match completed workshops.
Generally speaking, any workshop before March 1 2020 (approximate date of COVID global shutdown) happened in-person so we should treat the "allowed" as in-person.
The text was updated successfully, but these errors were encountered:
Example:
Member X was allowed 4 workshops in their membership, term dates August 1 2019 to July 31 2020. They completed 2 inperson workshops in 2019, and 2 online workshops in 2020. The agreement should read as if they were allowed 2 inperson and 2 online for that agreement term.
For unused benefits : If the membership ended before Feb 29 2020, consider the allowed workshops to be in-person workshops. For all memberships after that, consider the allowed workshops to be online workshops.
We will run reports and decide if we want to make manual adjustments from there.
Write the reverse step(s) - this migration is reversible, so the reverse steps should undo everything that happened in the forward steps
Write tests for both forward and reverse migrations with a variety of pre-existing data. Think about as many edge cases as possible. (follow the format in workshops/tests/test_migrations.py)
Run the migration forward and backward a couple of times on your dev database to ensure it works properly on slightly more realistic data
As we implement #2387 we will need to migrate existing data. This migration should be applied as follows. Allowed workshops should match completed workshops.
Generally speaking, any workshop before March 1 2020 (approximate date of COVID global shutdown) happened in-person so we should treat the "allowed" as in-person.
The text was updated successfully, but these errors were encountered: