Skip to content

Bulk import of services #873

@jaX10bt

Description

@jaX10bt

AS A Service Administrator
I WANT the ability to import multiple services at once
SO THAT I can efficiently import backedup or migrated services

Introduce import mechanism on the Services Overview page:

  1. Bulk Import — a new top-right button “Import many / Impordi mitu” that opens a selection modal.

Detailed Requirements

1. Bulk Import Button (Top-Right of Overview Page)

  • Positioned next to the Create New Service and Export many buttons.
  • Label: Import many / Impordi mitu.
  • On click, opens file selector.

Acceptance Criteria

  • A new Import many / Impordi mitu button is added next to the Create and Export buttons.
  • File Selector should enable selecting JSON files only.
  • File Selector can select more than one json file.
  • When Selecting Multiple files and confirming, then file names are and content are sent to back end to save them to services database along with thier structure.
  • When services importing is complete, a toast message shows saying Services imported successfully / Teenused imporditi edukalt.
  • When services importing fails, a toast message shows saying Services imported failed / Teenuste importimine ebaõnnestus.
  • When one or more files are corrupted, it should import the other good files and show a toast saying Could not import the following files (Wrong format or corrupted): file 1, file 2, etc../Järgmisi faile ei õnnestunud importida (vale vorming või rikutud): fail 1, fail 2 jne.
  • If a service exists with same name for 1 of the files, then the incoming file name is changed before adding to database by adding _yyyy_MM_dd_HH_mm_ss to it.

Metadata

Metadata

Assignees

Labels

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions