You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem
Transform functions are how we track changes to eventtypes as events flow through the system. To support the prefix filter, we should implement a transform function to represent how a given eventtype becomes "narrower" as it passes the filter. Specifically, this transform function should (for each attribute set in the prefix filter):
Check if the attribute is already set. If it is and does not have the expected prefix from the filter, return a nil eventtype to model no events passing this filter
If the attribute is not already set, set it to the value expected by the filter, along with an empty variable for the suffix {x}.
If the attribute is compatible with the value required by the filter, but the filter provides more information, update the value to include the filter value. For example, if the value is currently ab{x}, where {x} is a variable, and the prefix filter is abc, then we can update the value to be abc{x}. Similarly, if the current value is {x}de, and the prefix filter is abc, then we can update the value to be abc{x}de.
If the prefix matches the value, but provides no new information, do not change anything. For example, if the value is abc, and the prefix is ab, then there is no need to make any change
Problem
Transform functions are how we track changes to eventtypes as events flow through the system. To support the prefix filter, we should implement a transform function to represent how a given eventtype becomes "narrower" as it passes the filter. Specifically, this transform function should (for each attribute set in the prefix filter):
{x}
.ab{x}
, where{x}
is a variable, and the prefix filter isabc
, then we can update the value to beabc{x}
. Similarly, if the current value is{x}de
, and the prefix filter isabc
, then we can update the value to beabc{x}de
.abc
, and the prefix isab
, then there is no need to make any changePersona:
Which persona is this feature for?
Exit Criteria
A measurable (binary) test that would indicate that the problem has been resolved.
Time Estimate (optional):
How many developer-days do you think this may take to resolve?
Additional context (optional)
Add any other context about the feature request here.
The text was updated successfully, but these errors were encountered: