rilling / OpenTracks-Winter-2024-COMP-354

OpenTracks is a sport tracking application that completely respects your privacy.
https://OpenTracksApp.com
Apache License 2.0
5 stars 26 forks source link

Connect session history to real data. #78

Open achneerov opened 8 months ago

achneerov commented 8 months ago

Feature Request: We will now connect the graph to the real data. Previously our graph was working on synthetic data, however now we will connect it with the actual data stream. This involves analyzing how the data is stored and how to retrieve it, and what its format is. Expected Outcome: We expect our graph to dynamically change as different views are selected, but unlike before now it should change based on real data. Alternative Solutions: One alternative solution would be to not have it connect to any real data, but that would defeat the purpose of the feature so that idea was discarded. Completeness Requirement: This ticket is complete once our bar graph and dropdown successfully interface with real data, and change dynamically as different options in the dropdown are selected.

maelosloso commented 7 months ago

Previously, the graphs were plotted using data generated by the random class/mock-up data. We have now implemented code that queries the database to plot the graph depending on which filter the user choses. It uses the tracks recorded, saved and displayed in the session history.

Screenshot 2024-04-08 at 10 49 51 AM Screenshot 2024-04-08 at 10 55 35 AM Screenshot 2024-04-08 at 10 50 02 AM Screenshot 2024-04-08 at 10 51 06 AM Screenshot 2024-04-08 at 10 51 17 AM
Kiruasrat commented 7 months ago

Main issue for ticket #78 was to retrieve the necessary repository to implement the real time data into our graph. Although the previous sprint was the same representation using synthetic data, the above screen shots represents a successful feature of the request for Completeness Requirement. This ticket is complete because our bar graph and dropdown successfully interface with real data and changes dynamically as different options in the drop down are selected such as the display of number of runs day/week/season.