#519-Break-out-temp-service-to-follow-new-service-structure #563
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
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Andras/BoundlessFlowCampus2K!563
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "#519-Break-out-temp-service-to-follow-new-service-structure"
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?
Refactor of tempService
My task was to refactor the old tempService to follow a better standard to enhance readability, scalability and testability.
Dataflow
My testing
Conclusion
+ The endpoint send to tempService + Received from tempService model TempRespons + TempRespons contains + bool IsSuccess + string? ErrorMessage + object? Data + all data from tempService is stored as objectwhen merging team 2_week_3 into this branch accidentally added layoutServie directories
Review on #519
Whats done
Tested on Windows using Firefox
Inspected following files
What needs to be done
Conclusion
+ nvim.appimage: Remove + DatabaseQueries.cs line 39: Split into two lines + TempRespons.cs: Rename file to TempResponse.cs + Program.cs: Remove duplicate AddScoped<ITempService, TempService> + TempService.cs: Change ValidSensorRequest to check for "temp-sensor-" instead of "temp-sensor-001" + TempEndpoints.cs: Add {sensorId} to the /temperature/sensors route or remove the parameterChanges look good!
Get merged