Task #2539
openImportRolesFromCSVExecutor doesn't create roles that have the same name for user and different codes
0%
Description
Version 2.6.0
We have CSV with 2 roles that have different code, but same name for user. The first run of ImportRolesFromCSVExecutor doesn't create both roles, only one of them. It somehow "deduplicates" it probably, but there is no exception in the result.
Correct behavior would be to import both roles, because their codes differ.
Example:
rolename;rolecode;catalogue
Group Position;Group_Position_1;GROUP1
Group Position;Group_Position_2;GROUP2
Updated by Tomáš Doischer about 4 years ago
This is true, it's because of the original implementation of the task which didn't allow you to import codes at all. Role codes were than added but role names remained as the main role identifier. It should be changed but there was some fear of backward compatibility issues when we first talked about adding role codes.
I would like to make role code a required attribute (and column) and role name an optional one. Role name would not be used to check if the role exists at all. This would allow you to even rename a role.