New macro class
|Assignee:||Sylvestre Ho||% Done:|
It would be a good idea to create a macro class dedicated to macro handling
#6 Updated by Tensibai - Bastien Jove over 2 years ago
The main idea is to have optimized requests for macro replacement on action url, notes url, and everywhere else centreon parse and replace macros by their values.
For what I've in mind the best way would be a dynamicaly build query based on macros found when parsing the parameter.
The main PITA is to get all the values needed in the string with the fewest and quickest SQL requests.
Sylvester will correct me if I'm wrong on this point.