#484-weekly-aggregated-temperature #580
No reviewers
Labels
No labels
_CRITICAL_
API
app
backEnd
Blocked-waiting-for-further-changes
bug
bug-only-on-server-for-mobile-not-webpage
Bug-Report-After-Merge
cleanup
close
design
duplicate
enhancement
feature request
frontEnd
further-changes-needed
future-problem-not-fixint-this-period
help wanted
invalid
last-week-issue-to-fix
library
low-priority
needs input
needs review
not-implemented.
project documentation
question
research
reviewed
Script
security
SQL
style
Team 1
Team 2
team leaders
test-creation
testing
topLevel
unassigned
Under-review
wontfix
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Andras/BoundlessFlowCampus2K!580
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "#484-weekly-aggregated-temperature"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
/year and /year/month show proper values instead of giving errors.
/year/week implemented.
Maximum and minimum temperature implemented
sensorID used by aggregated data endpoints
sharedFeatures.js now used in aggregated data views correctly
This issue was mainly about implementing /year/week but I decided to update the old endpoints as well as I would be forced to do it for the /year/week anyways.
I mostly copied what was already written under /temperature/latest/{sensorId} in service\tempService\Program.cs and TemperatureView.js in *frontend\src\features\temperature\default*
I decided to add minimum and maximum temperatures as it was very simple to do and I think it's a nice change.
I also had to hardcode some values in Dashboard.js in the addNewView() function. I would suggest making a new issue to remove these hardcoded values and let the user change manually.
I remember @a24julot fixed this once.
Connected issues: #484 #20
Review on #484
Whats done
Tested on Windows using Chrome
Inspected following files
What needs to be done
Conclusion
Code needs to be correctly formatted.
Correct some comments and use capital letter in the beginning.
Good job, the changes I requested are fixed, can be merged!
The review has been really good and this will be merged right away.
From the team 1 week branch the average temperatures are not loading again. It might be something to do with other features or restructuring that affect how it fetches data. The JSON URLs still work (example http://localhost/app/api/temperature/year/2026/month/4/temp-sensor-001). But the Views don't work.
@a24timsv yeah I noticed that the addnewview function has been moved from dashboard.js into its own file under card directory. So the hardcoded values I implemented got removed.