-
Notifications
You must be signed in to change notification settings - Fork 20
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
Allow getExtensionSettings() to accept event as parameter #157
Comments
We think we understand what you are trying to do. Can you elaborate on why you are trying to do this? |
Okay, I will try to explain the specific use case that I have, however, please note that the issue raised is more generic and not limited to this use case. Specific Use Case - My use case deals with Adobe Analytics tagging in particular. I've created a private extension which allows the user to segregate the eVar/props basis variable groups, inside the extension configuration. So, let's suppose the user creates the following groups and maps them as shown below-
Once the extension configuration is saved, these are returned into the Note that the data elements used inside the extension configuration mapping, can in-turn rely on the data layer state. Hence, in order to always capture the correct dynamic values in the corresponding eVars, it is important that the action module of extension calls In this way, this extension tries to circumvent around the issue mentioned in the story from Jennifer Kunz and also raised in GitHub issue #125 (when taking Adobe Analytics as example), while providing additional features. Issue within reactor - When Solution - the Without even considering the above mentioned use case, the getExtensionSettings() method is attached to the turbine free variables, hence it can potentially be called from the module code of action/condition/event/dataElement. Therefore, it must also support passing the |
Expected Behaviour
Passing the rule's synthetic event as parameter to turbine.getExtensionSettings() function must be possible as this function replaces token with actual values and would need the event parameter, if the extension configuration uses %event% as token (or calls a data element which in-turn uses %event%)
Actual Behaviour
Currently this function doesn't accept any parameters
Reproduce Scenario (including but not limited to)
While calling turbine.getExtensionSettings() from any custom action/condition exposed from an extension, the tokens set in the extension configuration which are dependent on %event% are always evaluated to undefined
Steps to Reproduce
Install this extension in any Launch property
In the extension configuration use %event...% as input. Alternatively, call a data element dependent on %event...%
Create a new rule with the corresponding action to be triggered
Check the results on webpage - The tokens are always resolved to undefined, as while calling turbine.getExtensionSettings() from inside the action's module code, currently there is no way to pass the reference of event parameter
Platform and Version
Sample Code that illustrates the problem
Logs taken while reproducing problem
The text was updated successfully, but these errors were encountered: