Skip to content
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 #15783: Make class_prefix unique #1071

Conversation

Fdall
Copy link
Contributor

@Fdall Fdall commented Sep 24, 2019

# @class_prefix command_execution
# @class_parameter command_name

bundle agent command_execution(command_name)
{
vars:
"old_class_prefix" string => canonify("command_execution_${command_name}");
"old_class_prefix" string => canonify("${report_data.canonified_directive_id}_command_execution_${command_name}");
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is tricky we are changing the expected outcome classes, maybe we should add a third one ?

@Fdall
Copy link
Contributor Author

Fdall commented Sep 24, 2019

PR updated with a new commit

1 similar comment
@Fdall
Copy link
Contributor Author

Fdall commented Sep 24, 2019

PR updated with a new commit

@Fdall
Copy link
Contributor Author

Fdall commented Sep 24, 2019

PR rebased

@Fdall Fdall force-pushed the ust_15783/make_class_prefix_unique branch from adb0cf0 to 373db52 Compare September 24, 2019 11:52
@Fdall
Copy link
Contributor Author

Fdall commented Sep 24, 2019

Commit modified

@Fdall Fdall force-pushed the ust_15783/make_class_prefix_unique branch from 373db52 to 7ce7197 Compare September 24, 2019 12:21
@Fdall
Copy link
Contributor Author

Fdall commented Sep 24, 2019

PR updated with a new commit

1 similar comment
@Fdall
Copy link
Contributor Author

Fdall commented Sep 24, 2019

PR updated with a new commit

@Fdall
Copy link
Contributor Author

Fdall commented Sep 24, 2019

PR rebased

@Fdall Fdall force-pushed the ust_15783/make_class_prefix_unique branch from 177de25 to 821ea3b Compare September 24, 2019 13:35
@Fdall Fdall requested a review from ncharles September 24, 2019 13:36
@@ -1173,7 +1173,7 @@ bundle agent ncf_services(service, action)
"canonified_action" string => canonify("${action}");
"canonified_action_command" string => canonify("${action_command}");

"class_prefix" string => "ncf_services_${canonified_service}_${canonified_action}";
"class_prefix" string => "${report_data.canonified_directive_id}_ncf_services_${canonified_service}_${canonified_action}";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This breaks all services methods, that use "ncf_services_*" classes for all conditions

@Fdall
Copy link
Contributor Author

Fdall commented Jul 27, 2020

This not good enough, we should wait to have a proper id for each call done by the generation before trying to fix this, or it will seem super hacky

@Fdall Fdall closed this Jul 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants