Port UserGroup to Use Eloquent Model #10506
Labels
Enhancement:2:Moderate
A new feature or improvement that can be implemented in less than 4 weeks.
Housekeeping:2:Urgent
Any dependency management or refactor that must be done soon to fix or avoid a significant problem.
Milestone
Issue Description
The current implementation of the UserGroup does not utilize Eloquent. This limitation makes it hard to manage relationships, run complex queries efficiently and perform eager loading, especially when adding new fields to the Submission API (Issue #10480)
Proposed Solution
Refactor
UserGroup
class to use Eloquent Model and define appropriate Eloquent relationships. This will enable the use of eager loading(StageAssignment::with('userGroup'))
to optimize data retrieval, reduce the number of database queries, and ensure accurate computation of the additional fields required for the Submission API.The text was updated successfully, but these errors were encountered: