From 8f5af35a11ae7dfed25e3ea0d7ecd8c1a16a9d5d Mon Sep 17 00:00:00 2001 From: ksjaay Date: Tue, 24 Dec 2024 02:16:42 +0000 Subject: [PATCH] Fixes issues after PR review --- app/components/monitor/graph/index.jsx | 7 ++----- docs/internals/changelog.md | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/app/components/monitor/graph/index.jsx b/app/components/monitor/graph/index.jsx index 84cd36a..ad880c0 100644 --- a/app/components/monitor/graph/index.jsx +++ b/app/components/monitor/graph/index.jsx @@ -30,11 +30,8 @@ const MonitorGraph = ({ monitor }) => { useGraphStatus(monitor); const data = statusHeartbeats - .map((heartbeat = {}) => { - return { - Latency: heartbeat.latency, - time: heartbeat.date, - }; + .map(({ latency = 0, date = 0 } = {}) => { + return { Latency: latency, time: date }; }) .reverse(); diff --git a/docs/internals/changelog.md b/docs/internals/changelog.md index 989b66d..2212922 100644 --- a/docs/internals/changelog.md +++ b/docs/internals/changelog.md @@ -1,5 +1,23 @@ # Previous updates +## 0.7.2 + +### Cleans up codebase, adds support for cloning and pausing monitors + +### Summary + +This update cleans up a few endpoints and moves their code to their own middleware. This way router files are a lot cleaner, and it's easier to look through code for specific endpoints. Along with that, this update adds some features requested in issues https://github.com/KSJaay/Lunalytics/issues/61 and https://github.com/KSJaay/Lunalytics/issues/62. + +### Updates + +- Fixes issues with chart showing "Invalid Date" instead of time/date format +- Made some changes to make sure timezone is being used for charts +- Added a showFilters option to the monitors to show "1 week" and "1 month" in the menu +- Adds a script to run at midnight to clear out heartbeats older than the given retention period +- Renames the migration scripts from descriptive to version names, this makes my life a little bit easier +- Adds support for cloning monitors +- Adds support for pausing monitors + ## 0.7.1 ### Fixes issues with migration scripts not working for 0.6.5 and 0.7.0