Skip to content
This repository was archived by the owner on May 26, 2025. It is now read-only.
This repository was archived by the owner on May 26, 2025. It is now read-only.

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

Description

@sandrohanea

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?

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions