Skip to content

POSSIBLE BUG - discrepancy between prod summary table data and expected from manual calculations #315

@mwalker-scottlogic

Description

@mwalker-scottlogic

Observed variation between actual summary table data for London (forecast base time: 18 Aug 12:00, forecast window: 1), and expected data from a manual calculation.

Steps to reproduce:

  • query in_situ_data database for:
{ $and: [
  {"measurement_date": { 
    $gte: new ISODate('2024-08-18T10:30:00.000+00:00'), 
    $lte: new ISODate('2024-08-19T13:30:00.000+00:00')}
  },
  {"name": "London"}
]}

  • at each 3hr increment, for each pollutant, average the data for the surrounding +/- 1.5hrs

  • calculate AQI

  • query forecast_data for:

{ $and:[
  {"forecast_base_time": new ISODate('2024-08-18T12:00:00.000+00:00')},
  {"name": "London"}
]}
  • extract from forecast data the first 9 valid times as they will correspond to the time range needed
  • compare UI table for this time range with the data collected

Expected:

  • data in UI corresponds to values that are the greatest difference between forecast and measured AQI
  • the values in the table are the same

Actual:

  • some variance discovered up to 3.15%

Image

  • Some unpredictable behaviour in terms of which time stamp is selected by UI to represent the diff, sometimes it is first time, sometimes a different one selected

Image

Test Checklist:

  • Test Analysis & discussion with developer
  • Write Test Cases / Charters
  • Test Cases & Charters Reviewed
  • Test Cases Executed
  • Test Charters Executed
  • Regression tests executed
  • Automation Tests added to project

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions