Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Importing a list of observers twice will duplicate the observers in the database. #321

Open
sandrohanea opened this issue Oct 18, 2020 · 0 comments

Comments

@sandrohanea
Copy link
Contributor

Current behavior:

  1. Admin chooses to import a list of observers from a file.
  2. The observers from the file are added to the DB.
  3. In the admin app, the user is still on the add observer page with the data completed(file is selected).
  4. If the admin presses import again the list will be duplicated.

Expected behavior:

  1. Admin chooses to import a list of observers from a file.
  2. The observers from the file are added to the db.
  3. In the admin app, the user is still on the add observer page and the data is cleared. (On FE)
  4. 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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants