Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork73
Develop#259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Develop#259
Changes from1 commit
0c3b08d1aed9bf8163810402f17bFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
| @@ -102,7 +102,8 @@ public async Task<ActionResult<GetMapDataResult>> GetMapDataAndMarkers() | ||||||||
| var callTypes = await _callsService.GetCallTypesForDepartmentAsync(DepartmentId); | ||||||||
| var personnelStates = await _actionLogsService.GetLastActionLogsForDepartmentAsync(DepartmentId); | ||||||||
| //var personnelNames = await _departmentsService.GetAllPersonnelNamesForDepartmentAsync(DepartmentId); | ||||||||
| var people = await _usersService.GetUserGroupAndRolesByDepartmentIdAsync(DepartmentId, false, false, false); | ||||||||
Comment on lines +105 to +106 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. 🛠️ Refactor suggestion |🟠 Major Remove commented-out code. The commented-out line should be deleted rather than left in the codebase. Version control preserves the history if needed. Apply this diff: -//var personnelNames = await _departmentsService.GetAllPersonnelNamesForDepartmentAsync(DepartmentId); var people = await _usersService.GetUserGroupAndRolesByDepartmentIdAsync(DepartmentId, false, false, false); var personnelLocations = await _usersService.GetLatestLocationsForDepartmentPersonnelAsync(DepartmentId);As per coding guidelines (avoid commented-out code). 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents | ||||||||
| var personnelLocations = await _usersService.GetLatestLocationsForDepartmentPersonnelAsync(DepartmentId); | ||||||||
| var personnelLocationTTL = await _departmentSettingsService.GetMappingPersonnelLocationTTLAsync(DepartmentId); | ||||||||
| @@ -373,9 +374,9 @@ public async Task<ActionResult<GetMapDataResult>> GetMapDataAndMarkers() | ||||||||
| } | ||||||||
| } | ||||||||
| if (people != null &&people.Any()) | ||||||||
| { | ||||||||
| foreach (var person inpeople) | ||||||||
| { | ||||||||
| if (!await _authorizationService.CanUserViewPersonLocationViaMatrixAsync(person.UserId, UserId, DepartmentId)) | ||||||||
| continue; | ||||||||