-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add some new Apex code #1
base: main
Are you sure you want to change the base?
Conversation
Quality Gate failedFailed conditions See analysis details on SonarQube Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
Database.SaveResult[] householdSaveResults) { | ||
List<Contact> contactsToBeUpdatedWithHouseholdId = | ||
getContactsToBeUpdatedWithNewHouseholdId(contacts, householdSaveResults); | ||
update contactsToBeUpdatedWithHouseholdId; |
Check warning
Code scanning / SonarQube
Apex CRUDViolation Medium
} | ||
|
||
if (!accountsToUpdate.isEmpty()) { | ||
update accountsToUpdate; // Update member count |
Check warning
Code scanning / SonarQube
Apex CRUDViolation Medium
return [ | ||
SELECT Id, npe01__One2OneContact__c, | ||
npe01__SYSTEM_AccountType__c, | ||
Number_of_Household_Members__c, | ||
(SELECT Id FROM Contacts) | ||
FROM Account | ||
WHERE npe01__One2OneContact__c IN :contactIds | ||
]; |
Check warning
Code scanning / SonarQube
Apex CRUDViolation Medium
for (OpportunityContactRole role : [ | ||
SELECT ContactId, OpportunityId, Opportunity.AccountId | ||
FROM OpportunityContactRole | ||
WHERE IsPrimary = TRUE | ||
AND Opportunity.AccountId IN :oldHouseholdIdByContactId.values() | ||
AND ContactId IN :newHouseholdIdByContactId.keySet() | ||
]) { |
Check warning
Code scanning / SonarQube
Apex CRUDViolation Medium
return [ | ||
SELECT Id, Name, npo02__SYSTEM_CUSTOM_NAMING__c, npo02__Formal_Greeting__c, | ||
npo02__Informal_Greeting__c, Number_of_Household_Members__c, | ||
All_Members_Deceased__c | ||
FROM Account | ||
WHERE Id IN :hhids | ||
]; |
Check warning
Code scanning / SonarQube
Apex CRUDViolation Medium
return [ | ||
SELECT Id, npe01__One2OneContact__c, | ||
npe01__SYSTEM_AccountType__c, | ||
Number_of_Household_Members__c, | ||
(SELECT Id FROM Contacts) | ||
FROM Account | ||
WHERE npe01__One2OneContact__c IN :contactIds | ||
]; |
Check warning
Code scanning / SonarQube
Apex CRUDViolation Medium
return [ | ||
SELECT Id, Name, npo02__SYSTEM_CUSTOM_NAMING__c, npo02__Formal_Greeting__c, | ||
npo02__Informal_Greeting__c, Number_of_Household_Members__c | ||
FROM Npo02__Household__c | ||
WHERE Id IN :hhids | ||
]; |
Check warning
Code scanning / SonarQube
Apex CRUDViolation Medium
No description provided.