-
Notifications
You must be signed in to change notification settings - Fork 1
copying from the main branch #14
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
Closed
Closed
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,47 @@ | ||
public class SoqlUtility { | ||
|
||
//11:43:50.1 (6696702)|SOQL_EXECUTE_BEGIN|[3]|Aggregations:0|SELECT Id FROM Opportunity | ||
public static void processSoqlbegin(String line, String pattern) { | ||
List<String> splitArr = line.split('\\|'); | ||
if (splitArr.size() == 5) { | ||
LogLineSchema lls = new LogLineSchema(); | ||
lls.type = 'SOQLB'; | ||
lls.varName = splitArr[3]; | ||
lls.varValue = splitArr[4]; | ||
lls.lineNumber = splitArr[2]; | ||
addToUnit(lls); | ||
} | ||
} | ||
//11:43:50.1 (14725333)|SOQL_EXECUTE_END|[3]|Rows:7 | ||
public static void processSoqlExit(String line, String pattern) { | ||
List<String> splitArr = line.split('\\|'); | ||
if (splitArr.size() == 4) { | ||
LogLineSchema lls = new LogLineSchema(); | ||
lls.type = 'SOQLE'; | ||
lls.varName = 'Retrieved'; | ||
lls.varValue = splitArr[3]; | ||
lls.lineNumber = splitArr[2]; | ||
addToUnit(lls); | ||
} | ||
} | ||
private static void addToUnit(LogLineSchema lls) { | ||
/* | ||
* 1. Check the correct codeunit/MethodUnit and add the logLine to the codeunit/MethodUnit | ||
*/ | ||
if (!utilityVariables.methodUnitsStack.isEmpty()) { | ||
MethodSchema currentMethodUnit = (MethodSchema) utilityVariables.methodUnitsStack.peek(); | ||
//create a new ExecutingLineAndSubUnitSchema and push it to the current MethodUnit | ||
ExecutedLineAndSubUnitSchema elss = new ExecutedLineAndSubUnitSchema(); | ||
elss.logLine = lls; | ||
//Add elsss to currentMenthodUnit | ||
currentMethodUnit.executedLinesAndSubUnits.add(elss); | ||
} else if (!utilityVariables.codeUnitsStack.isEmpty()) { | ||
CodeUnitContainerSchema currentCodeUnit = (CodeUnitContainerSchema) utilityVariables.codeUnitsStack.peek(); | ||
//create a new ExecutingLineAndSubUnitSchema and push it to the current codeUnit | ||
ExecutedLineAndSubUnitSchema elss = new ExecutedLineAndSubUnitSchema(); | ||
elss.logLine = lls; | ||
//Add the elss to the currentCodeUnit | ||
currentCodeUnit.executedLinesAndSubUnits.add(elss); | ||
} | ||
} | ||
} |
This file contains hidden or 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 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<apiVersion>62.0</apiVersion> | ||
<status>Active</status> | ||
</ApexClass> |
This file contains hidden or 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 hidden or 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
2 changes: 1 addition & 1 deletion
2
force-app/main/default/lwc/UtilityComponents/lwc/tile/tile.html
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
|
@@ -98,6 +98,16 @@ export default class LogLineWrapper extends LightningElement { | |
logTemp.eventClassComb = "slds-line-clamp faerr"; | ||
console.log("Error: ", JSON.stringify(logTemp.logLineData)); | ||
} | ||
//<!-- SOQLB --> | ||
else if (logTemp.logLineData.type === "SOQLB") { | ||
logTemp.eventClassComb = "slds-line-clamp soqb"; | ||
console.log("Query: ", JSON.stringify(logTemp.logLineData)); | ||
} | ||
//<!-- SOQLE --> | ||
else if (logTemp.logLineData.type === "SOQLE") { | ||
logTemp.eventClassComb = "slds-line-clamp soqe"; | ||
console.log("No.of Rows: ", JSON.stringify(logTemp.logLineData)); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. comment this |
||
} | ||
log = logTemp; | ||
} else if (log.type === "unit") { | ||
log.isLine = false; | ||
|
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Comment these plz