Closed Julian88Tex closed 4 years ago
@sungysang mind creating a PR and linking it to this issue even if you're not done okay to have it open but not ready yet
Also, just a reminder that we'll also need test coverage for and code written. I didn't have any in mine.
https://github.com/Loving-Houston/lovinghouston/pull/24 Thanks for test coverage reminder, gotta add those next
@sungysang will provide modified script for @Rodney-Zhu to test
@Julian88Tex mind refreshing the Sandbox? I need the Potential picklist value to be added to CSP Status field
Insert failed. First exception on row 0; first error: INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST, Status: bad value for restricted picklist field: Potential: [Status__c]
@sungysang sure started a refresh of partial; also refreshing their dev pro sandbox which you can use for dev moving forward... partial will mainly be used for rodney to QA
once you finsih anything in your dev, you can just copy and paste it to partial sandbox and let @Rodney-Zhu know to begin QA on it
should wait to do though AFTER it has been PRed and merged to master
@Rodney-Zhu @sungysang FYI since I refreshed the Sandboxes, once it's done refreshing I'll have to recreate users for both of you. Expect to get new setup emails and you'll need to add passwords again.
note to self:
GooglePlaces.searchPlace('0011N00001qzT41QAE',32.750010,-117.101700,1500,'church','key');
@sungysang @Rodney-Zhu I've completed testing on this ticket and validated that ACs have been met. I will do another small round of testing after updates and/or responses are made to PR based on recommendations.
@Rodney-Zhu FYI this is your username: rodney@lovinghouston.net.partial
@Rodney-Zhu sorry for the confusion, I noticed the "Chruch Status" field was still in AC but it appears LH deleted this field from their production so I've updated the AC
I have completed testing and validated that ACs have been met.
@Rodney-Zhu Great, next go through any tests that you can think of changing different variables, maxing out values, null values, looking for duplicates, etc. Just think of different ways you think someone might break this and then look at the data and see if anything is missing or messed up in a way that would bother someone.
@sungysang @Julian88Tex I'm satisfied with the extra testing. Sung, I tagged you on two items on the test document
@Rodney-Zhu Great job! I didn't see anything that gave me enough concern to block this Issue from being closed. Normally this would be done by QA but since we don't have the full release structure setup, I'll take care of closing Issues.
As a developer, when I run GooglePlaces.searchPlace with various location parameters (different long & lat, radius, etc.) then CSP records and Account records are created for results.
Example Run Script:
ACs
Given I'm in Debug Logs When I run GooglePlaces.searchPlace in Anonymous Apex And Longitude Parameter = -33.8670522 And Latitude Parameter = 151.1957362, And Radius Parameter = 1500 And Type Parameter = church And Key Parameter is valid Then 5 Account Records are created And Name of Account is Filled in with result "name" And Account BillingStreet is filled in with the street And Account BillingCity is filled in with the city And Account BillingState is filled in with the state And Account BillingZip is filled in with the zip And Account Type is Church And Account RecordType is Church And 5 CSP Records are created And CSP Status is filled in with "Potential" And CSP Church lookup is filled in with the Account ID
Given I'm in Debug Logs When I run GooglePlaces.searchPlace in Anonymous Apex And Longitude Parameter = -33.8670522 And Latitude Parameter = 151.1957362, And Radius Parameter = 1500 And Type Parameter = school And Key Parameter is valid Then 0 Account Records are created And 0 CSP Records are created And Debug Logs shows an error "Type needs to be church."
Given I'm in Debug Logs When I run GooglePlaces.searchPlace in Anonymous Apex And Longitude Parameter = -33.8670522 And Latitude Parameter = 151.1957362, And Radius Parameter = 1500 And Type Parameter = church And Key Parameter is invalid Then 0 Account Records are created And 0 CSP Records are created And Debug Logs shows error about invalid token [excisting functionality]