We couldn't load all Actvitity tabs. Refresh the page to try again.
If the problem persists, contact your Jira admin.
Uploaded image for project: 'Camunda Optimize'
  1. Camunda Optimize
  2. OPT-3084

Align error and no result handling in reader layer

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: L3 - Default L3 - Default
    • 3.2.0-alpha1, 3.2.0
    • None
    • backend
    • None
    • 33
    • Not defined

      Context:
      We throw a lot of exceptions for different cases (sometimes on no result, sometimes on actual communication errors) on the reader level which makes it very intransparent what happens if you use methods from the reader layer. To avoid that we started to use Optional objects.

      AT:

      • the reader layer only throws exceptions on communication problems with the soure (elasticsearch)
      • in cases where there was just no result (e.g. by id not found) it returns Optional wrapped dto's to signal this rather then throwing e.g. Rest Exceptions like notFoundException

        This is the controller panel for Smart Panels app

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

            Align error and no result handling in reader layer

              • Icon: Task Task
              • Resolution: Fixed
              • Icon: L3 - Default L3 - Default
              • 3.2.0-alpha1, 3.2.0
              • None
              • backend
              • None
              • 33
              • Not defined

                Context:
                We throw a lot of exceptions for different cases (sometimes on no result, sometimes on actual communication errors) on the reader level which makes it very intransparent what happens if you use methods from the reader layer. To avoid that we started to use Optional objects.

                AT:

                • the reader layer only throws exceptions on communication problems with the soure (elasticsearch)
                • in cases where there was just no result (e.g. by id not found) it returns Optional wrapped dto's to signal this rather then throwing e.g. Rest Exceptions like notFoundException

                  This is the controller panel for Smart Panels app

                        Unassigned Unassigned
                        johannes.heinemann Johannes
                        Votes:
                        0 Vote for this issue
                        Watchers:
                        0 Start watching this issue

                          Created:
                          Updated:
                          Resolved:

                              Unassigned Unassigned
                              johannes.heinemann Johannes
                              Votes:
                              0 Vote for this issue
                              Watchers:
                              0 Start watching this issue

                                Created:
                                Updated:
                                Resolved: