Skip to content

fix(scheduled-task): guard against undefined relationships in server() method#9922

Open
andrasbacsai wants to merge 1 commit intonextfrom
9916-investigate-undefined-relationship
Open

fix(scheduled-task): guard against undefined relationships in server() method#9922
andrasbacsai wants to merge 1 commit intonextfrom
9916-investigate-undefined-relationship

Conversation

@andrasbacsai
Copy link
Copy Markdown
Member

Summary

  • Fixes [Bug]: Undefined Relationship on ServiceDatabase model #9916 — crash on Scheduled Jobs tab caused by server() method not handling missing destination or server relationships on ScheduledTask
  • Replaces nested null checks with nullsafe operator (?->) — same logic, fewer lines
  • Adds explicit ?Server return type to server()
  • Drops the database branch that had no effect (database tasks route through service, not directly)
  • Adds feature tests covering: no parent, application path, service path, and no-throw guarantee on orphaned tasks

Fixes #9916

…nd add return type

Replace nested null checks with nullsafe operator chains, add ?Server
return type, drop unreachable database branch, and cover all paths with
feature tests.
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