You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by "Damon Henry (JIRA)" <ji...@apache.org> on 2017/05/18 20:16:04 UTC
[jira] [Updated] (UNOMI-97) Conditions Spanning Multiple Types
[ https://issues.apache.org/jira/browse/UNOMI-97?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Damon Henry updated UNOMI-97:
-----------------------------
Description:
I'm attempting to create boolean conditions that retrieve unique profile counts but I may be interpreting the documentation incorrectly. A contrived example is asking the context server to give me all profiles performing a page view event. The example below provides the expected result when querying the *event* type but return 0 when querying the *profile* type.
Is there a method to build segments using attributes from profiles, sessions, and events?
http://localhost/cxs/query/event/count (return expected correct number of events)
http://localhost/cxs/query/profile/count (returns zero; should this return unique profiles)
{code}
{
"parameterValues": {
"operator": "and",
"subConditions": [
{
"parameterValues": {
"propertyValue": "page",
"comparisonOperator": "equals",
"propertyName": "target.itemType"
},
"type": "eventPropertyCondition"
},
{
"parameterValues": {
"propertyValue": "view",
"comparisonOperator": "equals",
"propertyName": "eventType"
},
"type": "eventPropertyCondition"
}
]
},
"type": "booleanCondition"
}
{code}
was:
I'm attempting to create boolean conditions that retrieve unique profile counts but I may be interpreting the documentation incorrectly. A contrived example is asking the context server to give me all profiles performing a page view event. The example below provides the expected result when querying the *event* type but return 0 when querying the *profile* type.
Is there a method to build segments using attributes from profiles, sessions, and events?
http://localhost/cxs/query/event/count (return expected correct number of events)
http://localhost/cxs/query/event/count (returns zero; should this return unique profiles)
{code}
{
"parameterValues": {
"operator": "and",
"subConditions": [
{
"parameterValues": {
"propertyValue": "page",
"comparisonOperator": "equals",
"propertyName": "target.itemType"
},
"type": "eventPropertyCondition"
},
{
"parameterValues": {
"propertyValue": "view",
"comparisonOperator": "equals",
"propertyName": "eventType"
},
"type": "eventPropertyCondition"
}
]
},
"type": "booleanCondition"
}
{code}
> Conditions Spanning Multiple Types
> ----------------------------------
>
> Key: UNOMI-97
> URL: https://issues.apache.org/jira/browse/UNOMI-97
> Project: Apache Unomi
> Issue Type: Test
> Components: core
> Affects Versions: 1.2.0-incubating
> Reporter: Damon Henry
> Priority: Minor
> Fix For: 1.2.0-incubating
>
>
> I'm attempting to create boolean conditions that retrieve unique profile counts but I may be interpreting the documentation incorrectly. A contrived example is asking the context server to give me all profiles performing a page view event. The example below provides the expected result when querying the *event* type but return 0 when querying the *profile* type.
> Is there a method to build segments using attributes from profiles, sessions, and events?
> http://localhost/cxs/query/event/count (return expected correct number of events)
> http://localhost/cxs/query/profile/count (returns zero; should this return unique profiles)
> {code}
> {
> "parameterValues": {
> "operator": "and",
> "subConditions": [
> {
> "parameterValues": {
> "propertyValue": "page",
> "comparisonOperator": "equals",
> "propertyName": "target.itemType"
> },
> "type": "eventPropertyCondition"
> },
> {
> "parameterValues": {
> "propertyValue": "view",
> "comparisonOperator": "equals",
> "propertyName": "eventType"
> },
> "type": "eventPropertyCondition"
> }
> ]
> },
> "type": "booleanCondition"
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)