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

Remove/refactor duplicate range logic for single and combined reports

      Context:

      Currently, we store the ranges that are to be used for e.g. combined date reports in the `ExecutionContext` and refer to this range when evaluating a combined report only, for single report we do not use the range in the context but rather calculate one when needed. Especially with the addition of custom number variable reports which also specify a range for combined reports, there are now multiple instances where we check if this range exists - if so, use the range and if not, evaluate the min. and max. Stats to set the needed range for a single report. 
      Instead of calculating the ranges for single and combined reports in different places and then checking mid-evaluation which one is the appropriate to use, it would be nice to refactor this logic to default to always store the range in the `ExecutionContext` and use that range for both combined and single report evaluation.

       

      AT:

      • There is no differentiation in logic between range settings of combined and single reports, so that ranges for date and number variable reports are calculated and stored in one place only

        This is the controller panel for Smart Panels app

            [OPT-3845] Remove/refactor duplicate range logic for single and combined reports

            Helene Waechtler created issue -
            Helene Waechtler made changes -
            Status Original: Open [ 1 ] New: In Specification [ 10000 ]
            Helene Waechtler made changes -
            Status Original: In Specification [ 10000 ] New: In Development [ 10312 ]
            Sebastian Bathke made changes -
            Labels Original: current_release
            Sebastian Bathke made changes -
            Labels New: report_builder
            Sebastian Bathke made changes -
            Epic Link Original: OPT-3699 [ 52239 ] New: OPT-3694 [ 52231 ]
            Helene Waechtler made changes -
            Mentioned Roles
            Helene Waechtler made changes -
            Mentioned Groups
            Helene Waechtler made changes -
            Status Original: In Development [ 10312 ] New: Open [ 1 ]
            Helene Waechtler made changes -
            Labels Original: report_builder New: refactoring report_builder
            Joshua Windels made changes -
            Labels Original: refactoring report_builder New: maintenance refactoring report_builder

              Unassigned Unassigned
              helene.waechtler Helene Waechtler
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: