Closed rlskoeser closed 3 years ago
@thatbudakguy I think, given the number of pieces this touches plus the addition of log entry and script account, this is a 5. LMK if you disagree.
About #2 (sorry I wasn't clear): What I meant was that Kevin and Nick's start dates on projects do not all correspond with their start dates at the CDH. Kevin's CDH start date is March 30. However, his start date on Mondrianify is Sept 2; PPA is July 1; and Geniza is Sept 20. These do in fact correspond with the grants (as long as he didn't participate in an earlier PPA grant), so I guess we're fine.
Ellie was the only person I found where anything appeared incorrect.
Update: there was no 2019-20 PPA grant so looks correct (except for the Ellie issue)
@cvansant thanks for clarifying!
@thatbudakguy if Ellie is the only one impacted by this other problem, it's not much work to clean up manually (and we know we have other manual cleanup to do anyway); even if she isn't the only one, it's hard to imagine there are very many. The other option is to include role
when ordering the memberships for consolidation in the migration that calculates dates.
The other option is to include role when ordering the memberships for consolidation in the migration that calculates dates.
This sounds like the simplest thing to me, unless you think it's more work to make the change?
@thatbudakguy I think the change is pretty simple, it's the redeploying and re-testing. (Although now that I look I'm not sure whether role sort needs to be before or after the grant start date 🤔 ... but should be easy enough to test.)
I just remembered, I forgot to ask Camey to check the history! @cvansant could you check a few of the memberships to look at the history and confirm there's a log entry indicating the dates where set? The user who made the change should be "script".
@cvansant I've revised the logic slightly and re-run the migration, would you confirm that it fixes the duplicate memberships for Ellie?
@rlskoeser Correct--only one Ellie PM, only one Ellie Researcher!
@rlskoeser @thatbudakguy checked history!
testing notes
Project membership has been revised and now is linked to the project instead of a particular grant, and project memberships have start and end dates of their own distinct from the grants. This update adds those fields, removes the old override status, and auto-calculates start and end dates based on the information in the database. (We expect that some manual correction of calculated dates will be needed afterwards.)
This change should solve some problems, including specifically #212