Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Spi migrate users ups into test spi (#1364)
* initial commit for study areas. File creation and first attempt at the script. Should work...maybe. Needs to be tested and debugged before merge * finished ?? sampling methods, only need to replace PLACEHOLDER method lookup names once migation confirms final table values * trying to fix indentations on when statements * currently very broken and returning way too many rows. Not sure how to fix yet * study areas troubleshooting * removed a migrations file i had created in this branch by accident as opposed to method lookups branch * sudy area script, still need to loop or something to fix timeout error * new branch for transforming DC visits into sampling periods * untested materials * changes to sampling period * ready for review * ready for review, but actually this time * please review possibilty of creating new temp table to use for spi wlo, with period id and visit id * changing progress ID portion to reflect status according to dates * added some logic that pulls some email addresses from spi_secured_persons to determine if they have email addresses and give the collab role based on this. Joined on names. Not tested in current state * ; * added additional sql for comparison * changed email address to email address when we can link one via firstname and lastname else default. Untested. May also be a bad idea, needs a review of logic * study area updates * updates to survey * added join and condition. If no match on first and last names, system_user_id is null and will then be inserted. * reverting back because I made mistakes * updates to check if user already exists based off of name and setting biohub_user_id as system_user_id * a commit of defeat and sadness * add comment * merge latest * pr fixes * pr edits, again * make fix --------- Co-authored-by: Andrew <[email protected]>
- Loading branch information