-
Notifications
You must be signed in to change notification settings - Fork 0
Adding DatabaseService class #19
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
Adding DatabaseService class #19
Conversation
- Updating reference on FileController, FileService, and FileSelector to work with the new version of DataBaseService implemented on OFM repo. Also, the test classes are being updated to work with the new version of the UnitTest and TestUser framework. - Updated classes: - FileController - FileController_TEST - FileService - FileService_TEST - FileSelector - FileSelector_TEST - DatabaseService - DatabaseService_TEST - UnitTest - TestUser - Removed classes: - SecurityService - SecurityService_TEST - BasicStub - TestUtils
…to feature/231__view-requirement__complete-requirement__classes-update
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See questions
@@ -71,6 +71,7 @@ public with sharing class FileService { | |||
) { | |||
List<Database.DeleteResult> results = new List<Database.DeleteResult>(); | |||
List<Id> contentDocumentLinkIdsToDelete = new List<Id>(); | |||
List<ContentDocumentLink> contentDocumentLinkToDelete = new List<ContentDocumentLink>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tweak to variable name to indicate it's a collection: contentDocumentLinksToDelete
instead of contentDocumentLinkToDelete
.
'System Administrator', | ||
ADMIN_USER_EMAIL | ||
); | ||
User adminWithRole = createUser('System Administrator', ADMIN_USER_EMAIL); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we TestUser
instead to create test users?
Copy over these methods and classes from the TestUser
in GMS and make sure to convert "Grantseeker" to "Fundseeker" and use the profile this repo ships.
public static final Boolean IS_PERSON_ACCOUNTS_ENABLED = Schema.SObjectType.Account.fields.getMap().get('IsPersonAccount') != null;
static Id getFirstBusinessAccountRecordTypeId()
static Id getFirstPersonAccountRecordTypeId()
with sharing virtual class BusinessGrantseekerPersona extends TestUser.Persona
with sharing virtual class PersonGrantseekerPersona extends BusinessGrantseekerPersona
- In this commit we are removing the reference made on the createUser method in FileSelector_TEST class. Now we are using the TestUser framework to create personas based on the test scenario. - FileController_TEST - FileSelector_TEST - FileService_TEST - TestUser
…asses-update' of github.com:SalesforceFoundation/OutboundFundsCommunity into feature/231__view-requirement__complete-requirement__classes-update
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jdavilasf , changes look good at a high level. Feel free to merge this in the parent branch so we can see the final result in the parent branch.
d08f35a
into
feature/231__view-requirement__complete-requirement
Fixes dependendabot issues: - [Prototype Pollution in yargs-parser #9](https://github.com/SalesforceFoundation/OutboundFundsModuleSite/security/dependabot/9) - [Exposure of sensitive information in follow-redirects #19](https://github.com/SalesforceFoundation/OutboundFundsModuleSite/security/dependabot/19) - [Exposure of Sensitive Information to an Unauthorized Actor in follow-redirects #21](https://github.com/SalesforceFoundation/OutboundFundsModuleSite/security/dependabot/21) - [Prototype Pollution in minimist #23](https://github.com/SalesforceFoundation/OutboundFundsModuleSite/security/dependabot/23)
Fixes dependendabot issues: - [Prototype Pollution in yargs-parser #9](https://github.com/SalesforceFoundation/OutboundFundsModuleSite/security/dependabot/9) - [Exposure of sensitive information in follow-redirects #19](https://github.com/SalesforceFoundation/OutboundFundsModuleSite/security/dependabot/19) - [Exposure of Sensitive Information to an Unauthorized Actor in follow-redirects #21](https://github.com/SalesforceFoundation/OutboundFundsModuleSite/security/dependabot/21) - [Prototype Pollution in minimist #23](https://github.com/SalesforceFoundation/OutboundFundsModuleSite/security/dependabot/23)
Critical Changes
Changes
Issues Closed
New Metadata
Deleted Metadata
Definition of Done
Refer to Definition of Done to see any additional details for the items below: