Importing a list of observers twice will duplicate the observers in the database.
sandrohanea opened this issue · 0 comments
sandrohanea commented
Current behavior:
- Admin chooses to import a list of observers from a file.
- The observers from the file are added to the DB.
- In the admin app, the user is still on the add observer page with the data completed(file is selected).
- If the admin presses import again the list will be duplicated.
Expected behavior:
- Admin chooses to import a list of observers from a file.
- The observers from the file are added to the db.
- In the admin app, the user is still on the add observer page and the data is cleared. (On FE)
- If the admin selects the same file again, the database will be
A => Updated
B => Some Error appear.
I'd chose option A.
What do you think?