-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
12 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Demo repo for sf core vs jsforce | ||
|
||
Repo was created for the purpose of showing the difference between installing a package with the tooling api after connecting with either sf core or jsforce | ||
|
||
When installing a package with a jsforce connection and then running a unit test involving permissions the permissions are different than when installing a package with salesforce/core connection. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,3 @@ | ||
public class Application { | ||
public static APermissionHelper Permissions = new CustomPermissionHelper(); | ||
|
||
public static String generateLookupKey() { | ||
String returnVal = Math.random() + ''; | ||
returnVal = returnVal.replace('0.', '42'); | ||
return returnVal.substring(0, Math.min(returnVal.length(), 17)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...e_Release_Notes.customPermission-meta.xml → ...sions/Demo_Baby.customPermission-meta.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<CustomPermission xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<description>Grants the ability to generate release notes.</description> | ||
<label>Generate Release Notes</label> | ||
<description>This is just a demo</description> | ||
<label>Demo Baby</label> | ||
</CustomPermission> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters