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

Forecast Basis - Causing problems in production

    Details

    • Root cause - Reason:
      Code defect

      Description

      After looking into an issue where the Restaurant Accuracy was not being populated in Production we dug in and found some things....

      • When a forecast is imported, the line for Actual, is shown in purple on the Evaluator, this is triggered when ExternalGenerationDate is not Null.
      • When the forecast basis is NOT supplied by the AWS Forecast Import we assume a ForecastBasis value of 1 = Gross Actual
        • Note: Null also represents Gross Actual
      • When Quantiphi start to supply the forecast basis, it will be supplied as either:
        • GrossActual = 1
        • NetSales = 0
        • The goal of the enhancement for this feature was to support NetSales

      Things that we have seen, but do not have answers to, and data is being cleaned up for!

      1. It appears that the forecast basis was set to 0 for all forecasts from 5/31 onwards.
        • Was there a deployment script to do this?
        • Why 0, and not Null, or 1, as all existing forecasts are Gross Actual, not Net Sales
      2. When the forecast is imported, and the ForecastBasis is set to 0, the forecast Evaluator does not display the Restaurant Accuracy
      3. The Forecast Basis is being set to zero for InFORM generated forecasts, is this expected, or should this column be left as Null for InFORM generated forecasts?
        • Note: the evaluator works fine when the ExternalGenerationDate is Null

      Note: Cherlyn Thomas is cleaning up the data in Prod, so that stores can once again see the Restaurant Accuracy.
      I have a suspicion, that after today, the Imported Forecasts have a Forecast Basis of 1, so will reflect the Restaurant Accuracy correctly.
      I can cause the error, by manipulating data in the non-prod environments

      This sheet, shows some of the details of what we had saw: https://docs.google.com/spreadsheets/d/1Rvv5t3QEvgiMqIiEnG3a86HStHI1W--atwZVsyH0njs/edit?usp=sharing
      Tabs:

      1. Store 02158 (The store that called in the issue)
      2. Imported ForecastBasis = 0 (From Quantiphi)
      3. Not Imported ForecastBasis = 0 (InFORM Generated)

        Attachments

        1. 01580.png
          121 kB
          Will Englefield
        2. 70049-GrossActual_0.png
          122 kB
          Will Englefield
        3. 70049-GrossActual_1.png
          119 kB
          Will Englefield
        4. 70049-GrossActualNull.png
          125 kB
          Will Englefield
        5. 70049-Reverted.png
          120 kB
          Will Englefield
        6. Fixed.png
          124 kB
          Will Englefield
        7. image-2020-06-29-17-05-09-671.png
          125 kB
          Will Englefield
        8. screenshot-1.png
          123 kB
          Will Englefield
        9. screenshot-2.png
          123 kB
          Will Englefield

          Issue Links

            Activity

              People

              • Assignee:
                will.englefield Will Englefield (Inactive)
                Reporter:
                will.englefield Will Englefield (Inactive)
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

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

                    PagerDuty

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