communitybridge / easycla

The Contributor License Agreement (CLA) service of the Linux Foundation lets project contributors read, sign, and submit contributor license agreements easily.
https://easycla.lfx.linuxfoundation.org
MIT License
64 stars 45 forks source link

ONAP SF Project ID Change script needed #2404

Closed WillsonHG closed 3 years ago

WillsonHG commented 3 years ago

The ONAP project ID has changed from a0941000005ouJFAAY to a092M00001IV4BoQAL (The foundation ID for LF Networking did not change a094100000aErheAAC )

I do think we should change the project_id in the events tables because the old ID no longer exists as a project and we are changing the existing ONAP project ID, so we'll want to change it in all instances, even historical data.

We need a script to go through the tables, find the old ID, and change it to the new ID in all fields applicable. A rough outline:

ccla-whitelist-requests - project_external_id cla-manager-requests - project_external_id companies - none company-invites - none events - event_data, event_summary, event_project_external_id, company_id_external_project_id, event_project_sfid gerrit-instances - none github-orgs - none metrics (I don't quite understand this table, maybe we can skip) - project_sfid, external_project_id, salesforce_id, projects - date_modified, project_external_id, projects-cla-groups - project_sfid, repositories - none (it's a Gerrit project) signatures - none user-permissions - projects users - none

dealako commented 3 years ago

@makkalot more details for you:

This is a one-off data migration where PM's have moved/renamed/migrated SalesForce data under a different Project SF ID. Although this considered a one-off script, more of these data migration may come as a result of reorganizations, acquisitions, or mergers. Thus, we can run this script when we are notified of such changes.

In addition to the above requirements:

vinod-kadam commented 3 years ago

As discussed in the standup, this is not needed for the 1st easycla release.

KennyPaul commented 3 years ago

@dealako said: PM's have moved/renamed/migrated SalesForce data under a different Project SF ID

If PM in this context means Program Manager, then for clarity I'm the ONAP PM and I did no such thing. Ever. If it means something else then nevermind. :-)

@vinod-kadam said: As discussed in the standup, this is not needed for the 1st easycla release

All I know is that I no longer have access to EasyCLA for ONAP because something changed out from under me and I need that access restored.

Please and thank you! -kenny

WillsonHG commented 3 years ago

This has been completed.