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:
- create report endpoint accepts and uses a report definition body
- the change is documented https://app.camunda.com/confluence/display/CO/Reports#Reports-CreateaReport
This is the controller panel for Smart Panels app
- is depended on by
-
OPT-2706 Provide entity payload on entity creation
- Done