Uploaded image for project: 'Camunda Optimize'
  1. Camunda Optimize
  2. OPT-1826 Report props restructuring
  3. OPT-1913

getConfig service should be getFormatter

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Done
    • Priority: L3 - Default
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.4.0, 2.4.0-alpha2
    • Component/s: frontend
    • Labels:
      None

      Description

      Currently, the getConfig service method gets props, only to return them again. The only functional logic this function provides is to get the formatter, so it should rather be `getFormatter`.

      In the ReportView components, we could do something like this:

      <Component {...this.props} formatter={getFormatter(view.property)} />
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: