- Using Trigger Framework by Kevin O'Hara
- Using lighting Components by lightningstrike
- Using Connected Api helper class by forcedotcom
- Using Git Actions to deploy inspired by Salto
Basic Code Structure for any project
- TriggerHandler class for creating trigger helpers
- strike_lookup component for creating lookup fields no need to write all functinality just pass attributes
- strike_modal component to use modal without banging head for modal css
-
TestDataFactory : test class data helper class
a.getAdminUser() : returns system admin user
b.getStandardUser() : returns standard user
c.createContentVersion(Boolean isInsert) : return contentVersion
-
Log : loging helper class to unify loging to system
a.exception(Exception ex),exception(Exception ex,String msg) : logs exception with error logging level and add exception data
b.error(String msg) : logs message with error loging level
c.warn(String msg) : logs message with warn loging level
d.info(String msg) : logs message with info loging level
e.debug(String msg) : logs message with debug loging level
-
UITheme : Get Users current displayed theam
a.getTheme() : returns users current view state theme
-
ConnectApiHelper : helper class to post message to chattter
a.createFeedItemInputFromBody(): add's text to exsisitng chatter message
- Create a new PR with related components to deploy
- On Create of PR,package check will occurs with production org
Apex::[LogTest]::Apex
Apex::[all]::Apex
-
On push comment add "[Deploy]" in comment to mark it as deployment
-
in case summary add Apex::[T]::Apex to run specific class during deployment
-
on successfully merge it will be deployed to production org
add git secrete variable
SFDX_PRODUCTION_URL
and value of it copy from running command
sfdx force:org:display --targetusername <orgname> --verbose
and copy Sfdx Auth Url