Provide a single endpoint to create a new report with payload

XMLWordPrintable

    • Type: Task
    • Resolution: Done
    • Priority: L3 - Default
    • 2.7.0
    • Affects Version/s: None
    • Component/s: backend, frontend
    • None

      Currently, there are three different endpoints to create a report. One for normal process reports, one for decisions and one for combined reports. After implementing OPT-2256 the report is created by the frontend before saving it on the backend. The logic right now is

      const reportType = getReportType(report);
      const reportId = createNewReportInBackend(reportType);
      updateReportInBackend(reportId, report);
      

      Instead, I propose to have only a single backend endpoint for each report type (so three in total rather), which create and save a new report based on already existing payload and returns the new id:

      const reportId = createNewReportInBackend(report);
      

      AT:

            Assignee:
            Unassigned
            Reporter:
            Sebastian Stamm
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: