-
Notifications
You must be signed in to change notification settings - Fork 124
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
Feature/sjs perf #789
Feature/sjs perf #789
Conversation
plugins { | ||
id 'net.saliman.properties' version '1.4.6' | ||
id 'com.marklogic.ml-data-hub' version '2.0.4' | ||
// id 'com.marklogic.ml-data-hub' version '2.0.4' |
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.
delete?
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.
should not have checked in.. will fix
import org.gradle.api.tasks.TaskAction | ||
|
||
import com.marklogic.appdeployer.AppConfig | ||
class MlcpTask extends JavaExec { |
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.
isn't this part of ml-gradle? from Rob's wiki I wouldn't think this would be needed (but I'm still learning about gradle)
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.
he hasn't updated to the latest one yet. I forgot to put a comment in there about it. will do that.
|
||
let inputs = context.inputs | ||
for (let key in inputs) { | ||
tracelib.setPluginInput(key, inputs[key]); |
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.
if (obj.hasOwnProperty(prop)) {
needed here?
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.
nope. that blows up.
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.
I meant inputs.hasOwnProperty. Only relevant if inputs might inherit properties from somewhere.
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.
yeah. I fixed it to the right thing and it still blew up.
} | ||
|
||
let cache = func(); | ||
//require.call(caller, moduleUri); |
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.
remove commented out line
} | ||
else { | ||
const x = new NodeBuilder(); | ||
return x.toNode(); |
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.
returning here means the following lines won't be run. Looks like return x.toNode();
should be after the for loop.
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.
looks like an edge case that would break if it were properly tested. I'll fix that.
} | ||
} | ||
else { | ||
const x = new NodeBuilder(); |
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.
would prefer nb
to x
traceSteps.push({ | ||
label: getPluginLabel(currentTrace), | ||
input: getPluginInput(currentTrace), | ||
error: rfc.isJson() ? error : error, |
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.
if pushing the same thing either way, why the test?
return tracelib.getTrace(id); | ||
} | ||
|
||
function getTraceIds(q) { |
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.
is q
a query? Either a comment or a better label would be useful
@@ -187,6 +208,7 @@ private JsonNode validateUserModules() { | |||
DataHub dataHub = getDataHub(); | |||
List<DynamicTest> tests = new ArrayList<>(); | |||
|
|||
// flows before a structured change get updated. this ru |
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 missing part of the sentence
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.
I'm going to remove it because I have no clue what I was typing there.
FinalCounts finalCounts = new FinalCounts(0, 0, 1, 1, 0, 0, 0, 0, 0, 0, "FAILED"); | ||
testInputFlowViaMlcp(prefix, "-2", stagingClient, codeFormat, dataFormat, useEs, options, finalCounts); | ||
})); | ||
// tests.add(DynamicTest.dynamicTest(flowName + ": " + plugin + " error MLCP", () -> { |
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.
remove outdated code
added tests for missing cases
Jenkins Build failure |
enjoy!