Skip to content

Conversation

@williamjallen
Copy link
Collaborator

Historically, models provided helper methods to access relationships for specific needs. Custom helpers like this are an antipattern in active record systems like Eloquent, so it doesn't make sense to simply move these helpers over to our Eloquent models. Instead, it's traditional for services to fill this role. As such, this PR moves the methods which only depend on a model's project ID to the ProjectService class. With much of the business logic in the legacy Project model out of the way, this should enable us to migrate away from the legacy model more quickly.

@williamjallen williamjallen marked this pull request as ready for review December 8, 2025 16:33
Copy link
Member

@josephsnyder josephsnyder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@josephsnyder josephsnyder added this pull request to the merge queue Dec 9, 2025
Merged via the queue into Kitware:master with commit 41db0f6 Dec 9, 2025
13 of 14 checks passed
@williamjallen williamjallen deleted the project-service branch December 9, 2025 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants