groundwired / salesforce-food-bank

Food Bank Manager built on Salesforce using Angular.js
BSD 3-Clause "New" or "Revised" License
5 stars 3 forks source link

Feature/npsp migration #61

Closed daveb-501commons closed 5 years ago

daveb-501commons commented 6 years ago

@groundwired

  1. Accounts and Contacts instead of Custom Objects
  2. Removed custom fields that are included with NPSP (e.g., Client_Namesc, Cityc, FirstName__c, ...)
  3. Removed batch processing of Account name since supported by NPSP & NPSP settings
  4. Added NPSP dependencies for scratch org management
  5. Project integrated with CumulusCI for easy deployment with cci task run deploy
  1. Fix birthdate is now working
  2. Notes changed from ~1K to 4K
  3. Added support for Id (e.g., Drivers License) & included option to show/hide in custom settings
  4. Added buildstatic.py python program to automatically build and update static resource
  5. Search updated to search based on clients instead of just household
  6. Track vistor with visit history so you can see who did the visit checkin
  7. Visit checkout date based on checkin date if checkout exceeds 24 hours
  8. Checkout added weight w/ custom setting show/hide

Evan - sorry about the big PR. In the future I'll work on sending smaller PRs.

The code has been in production on White Center Food Bank for the last 2 months working without any issues.

60

59

58

55

42

26

20

daveb-501commons commented 6 years ago

@groundwired - added 2 fixes

1) Birthdate off by a day because Date constructor in JavaScript interprets the value as GMT then converts to the browser time zone

2) Sync w/ the NPSP account rename logic when change to account by setting Account name to REPLACE

groundwired commented 5 years ago

Hey @daveb-501commons I hope you are well.

I finally got around to merging this NPSP migration into my codebase, and I'd like to test and make a couple minor changes. However, I am having trouble getting it to work in my scratch org - I get an error about the "npsp" namespace (see the log below). Any ideas what I am missing?

[Failed]: Update of CustomField Account.Level__c: Error on line 153, col 13: referenceTo value of 'npsp__Level__c' does not resolve to a valid sObject type

Update of Layout Contact-FoodBank Layout: Error on line 32, col 26: In field: field - no CustomField named Contact.npsp__Primary_Affiliation__c found

Update of CustomField Account.Previous_Level__c: Error on line 244, col 13: referenceTo value of 'npsp__Level__c' does not resolve to a valid sObject type

Update of CustomApplication Food_Bank_Service: Error: This App Name already exists or has been previously used. You must enter a different unique name.

Update of CustomApplication Food_Bank_Service: Error: In field: tab - no CustomTab named npsp__Contact_Merge found

Update of Profile Food Bank Standard User: Error: Permission Read All Food_Bank_Visit__c depends on permission(s): Read All Account

Update of Profile Food Bank Admin: Error: In field: field - no CustomField named Account.Level__c found

Update of Profile Admin: Error: In field: field - no CustomField named Account.Level__c found
Error: Update of CustomField Account.Level__c: Error on line 153, col 13: referenceTo value of 'npsp__Level__c' does not resolve to a valid sObject type

Update of Layout Contact-FoodBank Layout: Error on line 32, col 26: In field: field - no CustomField named Contact.npsp__Primary_Affiliation__c found

Update of CustomField Account.Previous_Level__c: Error on line 244, col 13: referenceTo value of 'npsp__Level__c' does not resolve to a valid sObject type

Update of CustomApplication Food_Bank_Service: Error: This App Name already exists or has been previously used. You must enter a different unique name.

Update of CustomApplication Food_Bank_Service: Error: In field: tab - no CustomTab named npsp__Contact_Merge found

Update of Profile Food Bank Standard User: Error: Permission Read All Food_Bank_Visit__c depends on permission(s): Read All Account

Update of Profile Food Bank Admin: Error: In field: field - no CustomField named Account.Level__c found

Update of Profile Admin: Error: In field: field - no CustomField named Account.Level__c found
daveb-501commons commented 5 years ago

Hi @groundwired (Evan),

Did you run update_dependencies? This will install NPSP into your scratch org.

cci task run update_dependencies