Uploaded image for project: 'Camunda Optimize'
  1. Camunda Optimize
  2. OPT-2463

Provide a single endpoint to create a new report with payload

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: L3 - Default L3 - Default
    • 2.7.0
    • None
    • 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:

        This is the controller panel for Smart Panels app

              Unassigned Unassigned
              sebastian.stamm Sebastian Stamm
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: