[ 
https://issues.apache.org/jira/browse/UNOMI-816?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17851534#comment-17851534
 ] 

David Griffon commented on UNOMI-816:
-------------------------------------

It appears that the evaluation in painless script
{code}
ctx._source.scope == ''
{code}
is not covering events with no scopes. 
The migration script has been updated

An integration test ensure that all cases above are migrated properly. 

> Data consistency for login events in migration to jcustomer 2
> -------------------------------------------------------------
>
>                 Key: UNOMI-816
>                 URL: https://issues.apache.org/jira/browse/UNOMI-816
>             Project: Apache Unomi
>          Issue Type: Improvement
>            Reporter: Romain Gauthier
>            Assignee: David Griffon
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> In unomi 1, it was possible to have login events with a scope that either is:
>  * null
>  * empty ""
>  * non existing
> In Unomi 2, it's not possible anymore. I know there is already a migration 
> script, but are these 3 cases taken into account? 
> https://github.com/apache/unomi/blob/98e4d87c827b05e817e0538793a8a34e5434a00a/tools/shell-commands/src/main/resources/requestBody/2.0.0/event_migrate.painless#L4
> If no, is it possible to assign a default value? 
> If yes, is it possible to add integration tests?



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to