Skip to content

Fix dashboard hourly filter ReferenceError#115

Open
noops-studio wants to merge 1 commit into
phuryn:mainfrom
noops-studio:main
Open

Fix dashboard hourly filter ReferenceError#115
noops-studio wants to merge 1 commit into
phuryn:mainfrom
noops-studio:main

Conversation

@noops-studio
Copy link
Copy Markdown

Summary

  • Fixes a dashboard crash caused by cutoff being referenced in applyFilter()
  • Updates hourly aggregation to use the same start / end range bounds as daily and session filtering
  • Adds a regression test to ensure the old cutoff reference does not return

Bug

Running:

python cli.py dashboard

could produce this browser console error:

ReferenceError: cutoff is not defined
    at applyFilter

This happened because the hourly filter referenced cutoff, but applyFilter() defines date bounds as start and end.

## Testing

python -m unittest discover

Result:

Ran 92 tests
OK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant