#519-Break-out-temp-service-to-follow-new-service-structure #563
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!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