-
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 #8826: Technique Editor is broken in Rudder 3.2.5 #416
Fixes #8826: Technique Editor is broken in Rudder 3.2.5 #416
Conversation
Commit modified |
b8ec4bf
to
8690099
Compare
@@ -324,7 +324,7 @@ def generate_rudder_reporting(technique): | |||
key_value_canonified = regex.sub("_", key_value) | |||
|
|||
class_prefix = generic_method["class_prefix"]+"_"+key_value_canonified | |||
logger_rudder_call = '"dummy_report" usebundle => log_rudder("' + generic_method['name'] + ' ' + key_value + ' if ' + method_call['class_context'] + '", "' + class_prefix +'")' | |||
logger_rudder_call = '"dummy_report" usebundle => log_rudder("' + generic_method['name'] + ' ' + key_value + ' if ' + method_call['class_context'] + '", "' + class_prefix +'", "", "")' |
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.
The last two arguments of log_rudder are actually important. I'm not sure how well the method would cope with the last (which is supposed to be a slist) being an empty string. Therefore, I think now is a good time to get ncf-builder to include the boilerplate to generate them in all methods, just like we do in the methods ncf provides.
That simply involves adding this code to the top of all generated bundles (before "methods:") (like in ncf.py):
vars:
"promisers" slist => { @{this.callers_promisers}, cf_null }, policy => "ifdefined";
"class_prefix" string => canonify(join("_", "promisers"));
"args" slist => { };
(obviously, args will be empty for now since ncf-builder doesn't support creating techniques with arguments, but would later contain the list of arguments)
Then, this call would instead become:
logger_rudder_call = '"dummy_report" usebundle => log_rudder("' + generic_method['name'] + ' ' + key_value + ' if ' + method_call['class_context'] + '", "' + class_prefix +'", "${class_prefix}", @{args})'
Commit modified |
8690099
to
de77304
Compare
Looks good to me, but you mentioned it may not work. Did you test? |
I tested and it works so ... |
Great! |
OK, merging this PR |
https://www.rudder-project.org/redmine/issues/8826