Skip to content

feat: add date filtering for telemetry data retrieval and implement D…#9

Open
osmanhadzic wants to merge 2 commits into
mainfrom
feature/filter-data-by-datetime
Open

feat: add date filtering for telemetry data retrieval and implement D…#9
osmanhadzic wants to merge 2 commits into
mainfrom
feature/filter-data-by-datetime

Conversation

@osmanhadzic

Copy link
Copy Markdown
Owner

This pull request introduces a comprehensive date filtering feature for telemetry data across both the backend and frontend. Users can now filter device telemetry readings by predefined periods (hour, day, week, month, year) or custom date ranges. The backend supports these filters with new service and repository methods, while the frontend provides a user-friendly interface for selecting date filters and displays filtered results accordingly.

Backend Enhancements:

  • Added support for querying telemetry data by device with optional date range or period filters:
    • Introduced GetTelemetryByDeviceIDWithDateFilter in the service layer and corresponding repository methods to handle date-based filtering. [1] [2] [3] [4]
    • Implemented logic to parse and validate date parameters in the handler, and to calculate date ranges for standard periods (hour, day, week, etc.). [1] [2]

Frontend Features:

  • Implemented a reusable DateFilter component allowing users to select a period or custom date range, with UI feedback and reset functionality.
  • Updated the dashboard to:
    • Fetch telemetry data using the selected date filter and device, updating in real time only when no filter is applied. [1] [2] [3] [4] [5] [6] [7] [8]
    • Display the latest device reading and metadata, reflecting the current filter. [1] [2]
  • Extended the telemetry API client to support date filter query parameters.

Tooling:

  • Updated .tool-versions to specify Node.js version 22.12.0 for both backend and frontend.

These changes together enable flexible, user-driven analysis of telemetry data by time period, improving usability and data exploration capabilities.

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