-
Notifications
You must be signed in to change notification settings - Fork 451
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 |
#10506 user group refactoring to Eloquent
pkp/pkp-lib#10506 Refactor UserGroup to Eloquent Model
pkp/pkp-lib#10506 User Group refactoring to Eloquent Model
pkp/pkp-lib#10506 User Group refactoring to Eloquent
pkp/pkp-lib#10506 User Group refactoring to Eloquent Model
pkp/pkp-lib#10506 Refactor UserGroup to Eloquent Model
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.PRs
pkp-lib: #10667
Citation Style Language Plugin: pkp/citationStyleLanguage#137
OAI JATS: pkp/oaiJats#61
Web Feed: pkp/webFeed#10
OJS: pkp/ojs#4547
OMP: pkp/omp#1787
OPS: pkp/ops#827
The text was updated successfully, but these errors were encountered: