We needed to select a Profile with an Undoubted category(victim, accused, etc) and modify to another Undoubted category.
Not all the category changes are meaningful, so we need to register first which changes are allowed. Then modify the category in the ProfileData repository and in the Profile repository, in the profile repository also we need to set the profiles as unprocessed so it can be used to find matches again. And the profile can be replicated to a superior instance after the change.
In summary, these were the task done:
Added en evolution to the DB to create a new table to hold the allowed category changes.
Added the UI in the Category section of the Configurations to add and remove category changes.
Added the UI in the profile menu to select a profile, modify the category and add filiatory data if required.
Added the API calls, and methods to process them in the backend and frontend.
Fixed in commit 0114518
We needed to select a Profile with an Undoubted category(victim, accused, etc) and modify to another Undoubted category. Not all the category changes are meaningful, so we need to register first which changes are allowed. Then modify the category in the ProfileData repository and in the Profile repository, in the profile repository also we need to set the profiles as unprocessed so it can be used to find matches again. And the profile can be replicated to a superior instance after the change.
In summary, these were the task done:
UI to manage allowed modifications:
UI to change category in a profile
These files were added/modified in this issue: