-
Sub-task
-
Resolution: Fixed
-
L3 - Default
-
None
-
Not defined
Context:
Enable users to import decision reports that they have previously exported. It should be possible to import reports both as private reports as well as into collections. When importing reports into collections, we need to ensure that the required data sources exist (similar to when copying reports into a collection. We also need to ensure the data format of the imported report suits the target Optimize report index.
AT:
- An endpoint exists to import a previously exported decision report
- For now, only superusers can import reports
- We reject the import of any report, if:
- the data structure does not match the target Optimize report index
- the selected file does not match the expected format
- We reject the import of a private report, if:
- the definition of the report does not exist in the target Optimize
- the version of the definition for the report does not exist in the target Optimize
- the tenant the report is configured for does not exist in the target Optimize
- We reject the import of a report into a collection, if:
- the collection does not have the required data source for the report
- If the import is rejected, we communicate the reason somehow in the response