Bug 50791 - Import: Warn if too many users will be deleted
Import: Warn if too many users will be deleted
Status: NEW
Product: UCS@school
Classification: Unclassified
Component: Import scripts
UCS@school 4.4
Other All
: P5 normal (vote)
: ---
Assigned To: UCS@school maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2020-02-05 15:19 CET by Michael Grandjean
Modified: 2020-02-05 16:16 CET (History)
2 users (show)

See Also:
What kind of report is it?: Feature Request
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): Usability
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Grandjean univentionstaff 2020-02-05 15:19:26 CET
Scenario: While using the UMC module for user import, a customer used the wrong CSV file which contained only around 20 new users instead of all 3000. They ignored the output of the dry-run and started the import job. The importer then deleted ~3000 students and created 20 new accounts.

Feature Request: To avoid accidents like the one above, the Importer should be able to warn the user if too many deletions are going to happen. 
E.g. if more than XX percent of all users (or more than an absolute number of XX users) with the same source_uid should be deleted, show an additional warning pop-up.

The threshold should be configurable via UCR.

It would be great if "ucs-school-user-import" could do this, too.