-
Notifications
You must be signed in to change notification settings - Fork 448
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port UserGroup to Use Eloquent Model #10506
Comments
@Vitaliy-1 I've submitted a draft PR as discussed in the meeting. Could you please review it and share your feedback so I continue with the commits for usage and migrations? |
@Vitaliy-1 I've made changes according to our discussion in the meeting and also updated usage part. |
…ing and Eloquent conventions
@Vitaliy-1 Ready for review again |
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: