issue#7-multipleTemperatureMockSensors #222
No reviewers
Labels
No labels
_CRITICAL_
API
app
backEnd
Blocked, waiting for further changes
bug
cleanup
close
design
duplicate
enhancement
feature request
frontEnd
help wanted
invalid
low priority
needs input
needs review
project documentation
question
research
reviewed
script
security
SQL
style
testing
topLevel
wontfix
No milestone
No project
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Andras/BoundlessFlowCampus2K!222
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "issue#7-multipleTemperatureMockSensors"
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?
/tempSensorMockup
/tempSensorMockup
/tempService
/frontend/src/features/temperature
Parprograming with a22erigr
/TempSensorMockup var data= new{sensor1} chaged to var data= new[]{sensor1,sensor2..} It used to give back a object with data of a single sensor now it returns an array with data from multiple sensors /readTempSensorMockup the read function used to expect an single object from tempSensorMockup but as its an array now its been changed to expect an array and a foreach loop have been intruduced to read and store the data from all sensors in the array /tempService i have included the sensorId in the class TempratureData, even if we stored sensorId,timestamp and temperature in the db we could only use the last two before in the View's/app it doesnt do anything now but its added to be able to make out witch sensor gives the reading.Overall, everything seems fine and working, there are only a few comment issues that were addressed directly to the developer but shouldn't cause an issue.
And in the useTempreatureTimeSeriesView.js the useEffect should probably return sensorId as a dependency to ensure that switching between sensors refetches the hook, if i understood it correctly this is a problem. that should be fixed
so change from
to:
Parprograming the feature with c24danli. The commit and pull were made from his computer.
Some features that weren't in this branch were accidentally added and broke the code. It is now removed... Sorry 'bout that
This was manually merged by me after finding that the broken code was created by my browser and wasn't a fault with the code.
Merged!
Pull request closed