Uploaded image for project: 'CFA MX '
  1. CFA MX
  2. CFAMX-15927

Invalid Error Toast When User Turns off Monthly Count Auto Notification (R5 Fix)

    Details

    • Type: Sprint Defect
    • Status: Done (View Workflow)
    • Priority: Major
    • Resolution: Completed
    • Affects Version/s: CFA 2020R4, CFA 2021R5
    • Fix Version/s: CFA 2021R6
    • Component/s: AutoNotification
    • Labels:
      None
    • SCRUM Team:
      Brotherhood of Mutants
    • Sprint:
      2021.R6 New Features Sprint 3

      Description

      Details

      When the user chooses to turn off the "Inventory Extension Report sent when monthly count is applied" auto notification, they are presented with a unnecessary error toast when they submit the monthly count. This issue is currently impacting all locations in version R5

      This action also creates the following error in the DB:

      ERROR: System.InvalidOperationException: Collection was modified; enumeration operation may not execute. at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource) at System.Collections.Generic.List`1.Enumerator.MoveNex

      Database

      Notification Setting

      Error Toast

      This issue is currently impacting all locations in version R5

      Steps to Reproduce

      1. In "Settings > Notification", turn the "Inventory Extension Report sent when monthly count is applied" notification OFF.
      2. Submit a Monthly Count
      3. Wait a few seconds. You should see the monthly count success toast followed by a "The requested operation failed" toast.

      Expected Result

      1. Please fix whatever is causing the error toast to be presented to the user.
        1. If this toast is popping up because the auto notification is turned off, at a minimum we should hide the toast from the user.
      2. Assuming the error is being triggered by the auto notification being turned off, ideally the database log would be more human-readable and specific. Something as simple as "Inventory Extension Report sent when monthly count is applied auto notification has been turned off by the user." would work.
        1. If this error is generated by some other issue, please disregard the details above.

        Attachments

        1. Setting.png
          Setting.png
          278 kB
        2. image-2021-08-05-08-42-51-971.png
          image-2021-08-05-08-42-51-971.png
          249 kB
        3. image-2021-08-05-08-40-10-082.png
          image-2021-08-05-08-40-10-082.png
          177 kB
        4. image-2021-08-05-08-38-39-486.png
          image-2021-08-05-08-38-39-486.png
          340 kB
        5. ErrorToast.png
          ErrorToast.png
          266 kB
        6. Database.png
          Database.png
          539 kB

          Issue Links

            Activity

              People

              • Assignee:
                Tristan.Strong Tristan Strong
                Reporter:
                jason.powell Jason Powell
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 4h
                  4h
                  Remaining:
                  0h
                  Logged:
                  Time Not Required
                  Not Specified

                    PagerDuty

                    Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.