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

Update error code and message for alerts emails validation in C8SaaS

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: L3 - Default L3 - Default
    • 3.10.0-alpha3, 3.10.0
    • None
    • backend
    • None
    • Not defined

      CONTEXT:

      In C8SaaS, the list of recipients for an alert is validated by the BE. If one of those addresses doesn't belong to a member of the Cloud organisation, the following error is returned by the API:

      {
        "errorCode" : "badRequestError",
        "errorMessage" : "The server was unable to process the request.",
        "detailedMessage" : "Users with the following email addresses are not available for receiving alerts: [najsda@sidjisd.com]",
        "reportDefinition" : null
      } 

      Frontend always displays errorMessage or a translated error message based on errorCode, but right now the error code is generic and it's not clear what it is about until you take a look into detailedMessage.

      AT:

      • there should be specific error code for this event "invalidAlertEmails"
      • there should be a part of the error which contains only the invalid emails without any extra text, to make it easy to use with translated error code message
      • the error should look like this:
      {
        "errorCode": "invalidAlertEmailAddresses",
        "errorMessage" : "Users with the following email addresses are not available for receiving alerts: [najsda@sidjisd.com]",
        "detailedMessage" : "Users with the following email addresses are not available for receiving alerts: [najsda@sidjisd.com]",
        "reportDefinition": null,
        "invalidAlertEmailAddresses": "email1@mail.com, email2@mail.com",
      } 

      HOW TO TEST:

      • Start Optimize in Cloud mode
      • Set up an email alert for a not existent email address
      • Open the network tab, the error response should be displayed there

        This is the controller panel for Smart Panels app

            [OPT-6659] Update error code and message for alerts emails validation in C8SaaS

            Michal Konopski created issue -
            Michal Konopski made changes -
            Link New: This issue is depended on by OPT-6509 [ OPT-6509 ]
            Michal Konopski made changes -
            Description Original: CONTEXT:

            In C8SaaS, the list of recipients for an alert is validated by the BE. If one of those addresses doesn't belong to a member of the Cloud organisation, the following error is returned by the API:
            {code:java}
            {
              "errorCode" : "badRequestError",
              "errorMessage" : "The server was unable to process the request.",
              "detailedMessage" : "Users with the following email addresses are not available for receiving alerts: [najsda@sidjisd.com]",
              "reportDefinition" : null
            } {code}
            Frontend always displays *errorMessage* or a translated error message based on *errorCode,* but right now the error code is generic and it's not clear what it is about until you take a look into {*}detailedMessage{*}.

            AT:
             * there should be specific error code for this event
             * there should be a part of the error which contains only the invalid emails without any extra text, to make it easy to use with translated error message
            New: CONTEXT:

            In C8SaaS, the list of recipients for an alert is validated by the BE. If one of those addresses doesn't belong to a member of the Cloud organisation, the following error is returned by the API:
            {code:java}
            {
              "errorCode" : "badRequestError",
              "errorMessage" : "The server was unable to process the request.",
              "detailedMessage" : "Users with the following email addresses are not available for receiving alerts: [najsda@sidjisd.com]",
              "reportDefinition" : null
            } {code}
            Frontend always displays *errorMessage* or a translated error message based on *errorCode,* but right now the error code is generic and it's not clear what it is about until you take a look into {*}detailedMessage{*}.

            AT:
             * there should be specific error code for this event _"invalidAlertEmails"_
             * there should be a part of the error which contains only the invalid emails without any extra text, to make it easy to use with translated error code message
            Michal Konopski made changes -
            Status Original: Triage [ 10612 ] New: Ready [ 10005 ]
            Joshua Windels made changes -
            Assignee New: Andromachi Rozaki [ andromachi.rozaki ]
            Andromachi Rozaki made changes -
            Status Original: Ready [ 10005 ] New: In Development [ 10312 ]
            Andromachi Rozaki made changes -
            Description Original: CONTEXT:

            In C8SaaS, the list of recipients for an alert is validated by the BE. If one of those addresses doesn't belong to a member of the Cloud organisation, the following error is returned by the API:
            {code:java}
            {
              "errorCode" : "badRequestError",
              "errorMessage" : "The server was unable to process the request.",
              "detailedMessage" : "Users with the following email addresses are not available for receiving alerts: [najsda@sidjisd.com]",
              "reportDefinition" : null
            } {code}
            Frontend always displays *errorMessage* or a translated error message based on *errorCode,* but right now the error code is generic and it's not clear what it is about until you take a look into {*}detailedMessage{*}.

            AT:
             * there should be specific error code for this event _"invalidAlertEmails"_
             * there should be a part of the error which contains only the invalid emails without any extra text, to make it easy to use with translated error code message
            New: CONTEXT:

            In C8SaaS, the list of recipients for an alert is validated by the BE. If one of those addresses doesn't belong to a member of the Cloud organisation, the following error is returned by the API:
            {code:java}
            {
              "errorCode" : "badRequestError",
              "errorMessage" : "The server was unable to process the request.",
              "detailedMessage" : "Users with the following email addresses are not available for receiving alerts: [najsda@sidjisd.com]",
              "reportDefinition" : null
            } {code}
            Frontend always displays *errorMessage* or a translated error message based on *errorCode,* but right now the error code is generic and it's not clear what it is about until you take a look into {*}detailedMessage{*}.

            AT:
             * there should be specific error code for this event _"invalidAlertEmails"_
             * there should be a part of the error which contains only the invalid emails without any extra text, to make it easy to use with translated error code message

            *HOW TO TEST:*
            - Start Optimize in Cloud mode
            - Set up an email alert for a not existent email address
            - Open the network tab, the error response should be displayed there
            Andromachi Rozaki made changes -
            Assignee Original: Andromachi Rozaki [ andromachi.rozaki ] New: Joshua Windels [ joshua.windels ]
            Status Original: In Development [ 10312 ] New: In Review [ 10212 ]
            Joshua Windels made changes -
            Assignee Original: Joshua Windels [ joshua.windels ] New: Andromachi Rozaki [ andromachi.rozaki ]
            Status Original: In Review [ 10212 ] New: Rework [ 11413 ]
            Michal Konopski made changes -
            Description Original: CONTEXT:

            In C8SaaS, the list of recipients for an alert is validated by the BE. If one of those addresses doesn't belong to a member of the Cloud organisation, the following error is returned by the API:
            {code:java}
            {
              "errorCode" : "badRequestError",
              "errorMessage" : "The server was unable to process the request.",
              "detailedMessage" : "Users with the following email addresses are not available for receiving alerts: [najsda@sidjisd.com]",
              "reportDefinition" : null
            } {code}
            Frontend always displays *errorMessage* or a translated error message based on *errorCode,* but right now the error code is generic and it's not clear what it is about until you take a look into {*}detailedMessage{*}.

            AT:
             * there should be specific error code for this event _"invalidAlertEmails"_
             * there should be a part of the error which contains only the invalid emails without any extra text, to make it easy to use with translated error code message

            *HOW TO TEST:*
            - Start Optimize in Cloud mode
            - Set up an email alert for a not existent email address
            - Open the network tab, the error response should be displayed there
            New: CONTEXT:

            In C8SaaS, the list of recipients for an alert is validated by the BE. If one of those addresses doesn't belong to a member of the Cloud organisation, the following error is returned by the API:
            {code:java}
            {
              "errorCode" : "badRequestError",
              "errorMessage" : "The server was unable to process the request.",
              "detailedMessage" : "Users with the following email addresses are not available for receiving alerts: [najsda@sidjisd.com]",
              "reportDefinition" : null
            } {code}
            Frontend always displays *errorMessage* or a translated error message based on *errorCode,* but right now the error code is generic and it's not clear what it is about until you take a look into {*}detailedMessage{*}.

            AT:
             * there should be specific error code for this event _"invalidAlertEmails"_
             * there should be a part of the error which contains only the invalid emails without any extra text, to make it easy to use with translated error code message
             * the error should look like this:

            {code:java}
            {
              "errorCode": "invalidAlertEmailAddresses",
              "errorMessage" : "Users with the following email addresses are not available for receiving alerts: [najsda@sidjisd.com]",
              "detailedMessage" : "Users with the following email addresses are not available for receiving alerts: [najsda@sidjisd.com]",
              "reportDefinition": null,
              "invalidAlertEmailAddresses": "email1@mail.com, email2@mail.com",
            } {code}

            *HOW TO TEST:*
             - Start Optimize in Cloud mode
             - Set up an email alert for a not existent email address
             - Open the network tab, the error response should be displayed there

              Unassigned Unassigned
              michal.konopski Michal Konopski
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: