David Griffon created UNOMI-593:
-----------------------------------
Summary: Missing indices migration from 1.4.x to 1.5.x
Key: UNOMI-593
URL: https://issues.apache.org/jira/browse/UNOMI-593
Project: Apache Unomi
Issue Type: Bug
Affects Versions: 1.5.0
Reporter: David Griffon
After a migration {{conditionTypes}} and {{actionTypes}} are not migrated
properly.
This happens because the file name of the mapping from
{{src/main/resources/META-INF/cxs/mappings}} is use to get the type of object
to migrate.
Here the inconsistencies:
|*Mapping (1.5.7)*|*Type (1.4.4)*|*Potential issue*|
|actiontype.json|actionType|*{color:#FF0000}YES{color}*|
|campaign.json|campaign| |
|campaignevent.json|campaignevent| |
|conditiontype.json|conditionType|{color:#FF0000}*YES*{color}|
|event.json|event| |
|exportconfig.json| | |
|geonameEntry.json|geonameEntry| |
|goal.json|goal| |
|importconfig.json| | |
|patch.json|patch| |
|persona.json|persona| |
|personaSession.json|personaSession| |
|profile.json|profile| |
|propertyType.json|propertyType| |
|rule.json|rule| |
|rulestats.json|rulestats| |
|scoring.json|scoring| |
|segment.json|segment| |
|session.json|session| |
|userList.json|userList| |
h2. Potential issues
If one provides its own conditionType or actionTypes, or if one applied patch
on one of those objects, the migration will miss some data.
h2. Fix on migrated environment
Redeploy conditionTypes and actionTypes to recreate the objects.
For applied patch, remove the patch index, then reapply patch.
h2. Fix for next migration
Rename files to match object types
actiontype.json => actionType.json
conditiontype.json => conditionType.json
--
This message was sent by Atlassian Jira
(v8.20.7#820007)