Project

General

Profile

Actions

Task #2539

open

ImportRolesFromCSVExecutor doesn't create roles that have the same name for user and different codes

Added by Alena Peterová over 3 years ago. Updated over 3 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
10/29/2020
Due date:
% Done:

0%

Estimated time:
Owner:

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

Actions #1

Updated by Tomáš Doischer over 3 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.

Actions

Also available in: Atom PDF