Skip to content

feat: auto-promote job lifecycle status on assignment state changes#335

Merged
bllr777 merged 1 commit into
mainfrom
feature/auto-promote-job-lifecycle-status
May 25, 2026
Merged

feat: auto-promote job lifecycle status on assignment state changes#335
bllr777 merged 1 commit into
mainfrom
feature/auto-promote-job-lifecycle-status

Conversation

@bllr777
Copy link
Copy Markdown
Collaborator

@bllr777 bllr777 commented May 25, 2026

Summary

When a field tech starts a job from the mobile app, the parent job's lifecycleStatus is now automatically promoted to InProgress — and reverts correctly when the assignment completes.

Changes

AssignmentService

  • Added TryStartJobAsync — promotes the job from Draft/Approved/Booked to InProgress when any assignment is set to InProgress (mirrors the existing TryCompleteJobAsync pattern)
  • Calls UpdateJobStatusAsync which also fires the JobStatusChanged SignalR event so the web dashboard refreshes automatically

OrganizationRealtimeNotifier

  • Added ILogger and structured log entries for AssignmentChanged and JobStatusChanged events

Testing

  1. Create a job with at least one assignment in Approved/Booked state
  2. Start the assignment from the mobile app
  3. Verify the job lifecycle status updates to InProgress in the web dashboard

- Promote job to InProgress when any assignment is started (mirrors
  existing TryCompleteJobAsync pattern for assignment completion)
- Add SignalR logging to OrganizationRealtimeNotifier for
  AssignmentChanged and JobStatusChanged events
@bllr777 bllr777 merged commit 2ff59fe into main May 25, 2026
8 checks passed
@bllr777 bllr777 deleted the feature/auto-promote-job-lifecycle-status branch May 25, 2026 18:21
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