Skip to content

fix: email-based user lookup + phone from SDK Workers#1473

Merged
renemadsen merged 1 commit intostablefrom
fix/email-based-user-lookup-and-phone-from-worker
Apr 14, 2026
Merged

fix: email-based user lookup + phone from SDK Workers#1473
renemadsen merged 1 commit intostablefrom
fix/email-based-user-lookup-and-phone-from-worker

Conversation

@renemadsen
Copy link
Copy Markdown
Member

Summary

  • Replace fragile name-matching (site.Name vs FirstName+LastName) with email-based lookup (worker.Email ↔ Users.Email) across all 3 C# services (8 occurrences)
  • Read PhoneNumber from SDK Workers table instead of Angular Users table where it was always NULL
  • Add integration tests verifying phone numbers flow through GetAvailableSitesByCurrentUser correctly (3 test cases: with/without phone, resigned exclusion)

Test plan

  • CI passes (dotnet build + test)
  • People overview shows phone numbers for workers that have them in SDK Workers table
  • Avatar lookup still works via email-based User match
  • Resigned workers excluded from people list

🤖 Generated with Claude Code

Replace fragile name-matching (site.Name vs FirstName+LastName) with
email-based lookup (worker.Email ↔ Users.Email) across all 3 services.
Read PhoneNumber from SDK Workers table where it's actually stored,
not from Angular Users table where it was always NULL.

Fixes: 8 occurrences in TimeSettingService, TimePlanningWorkingHoursService,
and TimePlanningPlanningService.

Adds integration tests verifying phone numbers flow through
GetAvailableSitesByCurrentUser correctly.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@renemadsen renemadsen merged commit dd6f1d9 into stable Apr 14, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant