-
Notifications
You must be signed in to change notification settings - Fork 38
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
Fixes #17134: Adapt technique editor to not call ncf api and add method to generate data for Rudder #1175
Conversation
PR rebased |
6771300
to
9180250
Compare
PR updated with a new commit |
a22f26b
to
46a8868
Compare
PR rebased |
builder/js/ncf.js
Outdated
@@ -1115,8 +1129,12 @@ $scope.onImportFileChange = function (fileEl) { | |||
if (method_call.method_name in $scope.generic_methods ) { | |||
var method = $scope.generic_methods[method_call.method_name]; | |||
var class_parameter = method.class_parameter; | |||
var param_index = method.bundle_args.indexOf(class_parameter); | |||
return method_call.parameters[param_index]; | |||
console.log(method) |
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.
debug
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.
👀
PR updated with a new commit |
builder/js/ncf.js
Outdated
@@ -449,7 +450,7 @@ function toTechUI (technique) { | |||
|
|||
// Handle class_context | |||
defineMethodClassContext(method_call) | |||
method_call.parameters=$scope.getMethodParameters(method_call) | |||
//method_call.parameters=$scope.getMethodParameters(method_call) |
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.
shouldn't this be removed?
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.
refresh the page :)
PR updated with a new commit |
ncf
Outdated
@@ -64,8 +88,15 @@ if __name__ == '__main__': | |||
usage() | |||
exit(1) | |||
|
|||
pprint(sys.argv[1]) |
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.
debug
PR updated with a new commit |
category = technique["category"] if len(technique["category"]) > 0 else "ncf_techniques" | ||
version = technique["version"] if len(technique["version"]) > 0 else "1.0" | ||
techniqueFile = '/var/rudder/configuration-repository/techniques/'+category+"/"+ bundle_name +"/"+version+'/technique.json' | ||
if not os.path.exists(techniqueFile): |
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.
what will update this file when it exists?
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 it's already written then it will be managed by Rudder (in fact the goal here is to bootstrap the technique.json file so that Rudder will enrich them)
PR updated with a new commit |
OK, squash merging this PR |
…od to generate data for Rudder
db36454
to
ecacbde
Compare
https://issues.rudder.io/issues/17134