Cannot save Alerts with threshold above int max value

XMLWordPrintable

    • Type: Bug Report
    • Resolution: Fixed
    • Priority: L3 - Default
    • 2.0.0
    • Affects Version/s: None
    • Component/s: backend
    • None

      Reproduce:

      • Try to create an alert with a threshold above integer max value (e.g. 4838400000) via the rest api

      Expected:

      • 204 No Content response

      Observed:

      • 400 Bad Request response

      Context:

      • Since we store the value of duration reports as milliseconds, this number can be exceeded easily if a user wants to set a duration threshold of more than 25 days.

      Hint:

      • We should probably use long instead of int to store the threshold
      • This might also affect the "Check report every" and "Reminder Emails" fields

        This is the controller panel for Smart Panels app

              Assignee:
              Unassigned
              Reporter:
              Sebastian Stamm
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: