Skip to content
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 StageAssignmentDAO and StageAssignment to Eloquent Model #9674

Closed
defstat opened this issue Jan 31, 2024 · 14 comments
Closed

Port StageAssignmentDAO and StageAssignment to Eloquent Model #9674

defstat opened this issue Jan 31, 2024 · 14 comments
Assignees
Labels
Enhancement:2:Moderate A new feature or improvement that can be implemented in less than 4 weeks.

Comments

@defstat
Copy link
Contributor

defstat commented Jan 31, 2024

Describe the change
Right now the StageAssignment entity is a DataObject and it follows the DAO pattern.

We will port StageAssignment entity and its respective DAO class, StageAssignmentDAO to Laravel's Eloquent Model.

What application will be affected?
OJS, OMP or OPS main branch
PKP supported/maintained plugins main branch

Additional information
Please add any screenshots, logs or other information we can use to investigate this bug report.


PRs

OJS: pkp/ojs#4166
OMP: pkp/omp#1510
OPS: pkp/ops#626
PKP-LIB: #9675

Plugins Issues and PRs

  1. QuickSubmitPlugin - PR: [quickSubmit][main] #90 Replace StageAssignmentDAO quickSubmit#91
@defstat defstat self-assigned this Jan 31, 2024
defstat added a commit to defstat/ojs that referenced this issue Jan 31, 2024
@defstat
Copy link
Contributor Author

defstat commented Jan 31, 2024

@Vitaliy-1 this is a PR that removes StageAssignmentDAO and StageAssignment from the codebase in favor of a new StageAssignment Eloquent Model. If you have some time, could you review it, also in relation to your changes at #9589.

Are there things that we should consider adding or develop differently, in order to incorporate the needs of other works in progress?

defstat added a commit to defstat/omp that referenced this issue Jan 31, 2024
defstat added a commit to defstat/omp that referenced this issue Jan 31, 2024
defstat added a commit to defstat/ops that referenced this issue Jan 31, 2024
defstat added a commit to defstat/ops that referenced this issue Jan 31, 2024
@jonasraoni jonasraoni added the Enhancement:2:Moderate A new feature or improvement that can be implemented in less than 4 weeks. label Jan 31, 2024
@Vitaliy-1
Copy link
Collaborator

@defstat, please let me know when this is merged so I can backport the changes to the #8885

defstat added a commit to defstat/pkp-lib that referenced this issue Mar 5, 2024
defstat added a commit to defstat/pkp-lib that referenced this issue Mar 5, 2024
defstat added a commit to defstat/ojs that referenced this issue Mar 5, 2024
defstat added a commit to defstat/ojs that referenced this issue Mar 5, 2024
@defstat
Copy link
Contributor Author

defstat commented Mar 5, 2024

@Vitaliy-1 thanks for the code review. I have resolved most of the comments and added 1-2 new comments for clarification. Because there are one-or-two review changes that may affect the tests, I am running the tests on OJS, and waiting for the clarifications on the review.

@Vitaliy-1
Copy link
Collaborator

Thanks, @defstat. It looks good! Regarding with...Id() vs with...Ids() methods, leaving it up to you

defstat added a commit to defstat/pkp-lib that referenced this issue Apr 2, 2024
defstat added a commit to defstat/pkp-lib that referenced this issue Apr 2, 2024
defstat added a commit to defstat/pkp-lib that referenced this issue Apr 2, 2024
defstat added a commit to defstat/ojs that referenced this issue Apr 2, 2024
defstat added a commit to defstat/ojs that referenced this issue Apr 2, 2024
…elated functions taking array of parameters
defstat added a commit to defstat/ojs that referenced this issue Apr 2, 2024
defstat added a commit to defstat/omp that referenced this issue Apr 2, 2024
defstat added a commit to defstat/omp that referenced this issue Apr 2, 2024
…elated functions taking array of parameters
defstat added a commit to defstat/omp that referenced this issue Apr 2, 2024
defstat added a commit to defstat/ops that referenced this issue Apr 2, 2024
defstat added a commit to defstat/ops that referenced this issue Apr 2, 2024
…elated functions taking array of parameters
defstat added a commit to defstat/ops that referenced this issue Apr 2, 2024
defstat added a commit to defstat/pkp-lib that referenced this issue Apr 2, 2024
defstat added a commit to defstat/pkp-lib that referenced this issue Apr 25, 2024
defstat added a commit to defstat/pkp-lib that referenced this issue Apr 25, 2024
defstat added a commit to defstat/pkp-lib that referenced this issue Apr 25, 2024
defstat added a commit to defstat/pkp-lib that referenced this issue Apr 25, 2024
defstat added a commit to defstat/pkp-lib that referenced this issue Apr 25, 2024
defstat added a commit to defstat/ojs that referenced this issue Apr 25, 2024
defstat added a commit to defstat/ojs that referenced this issue Apr 25, 2024
…elated functions taking array of parameters
defstat added a commit to defstat/ojs that referenced this issue Apr 25, 2024
defstat added a commit to defstat/omp that referenced this issue Apr 25, 2024
defstat added a commit to defstat/omp that referenced this issue Apr 25, 2024
…elated functions taking array of parameters
defstat added a commit to defstat/omp that referenced this issue Apr 25, 2024
defstat added a commit to defstat/omp that referenced this issue Apr 25, 2024
defstat added a commit to defstat/ops that referenced this issue Apr 25, 2024
defstat added a commit to defstat/ops that referenced this issue Apr 25, 2024
…elated functions taking array of parameters
defstat added a commit to defstat/ops that referenced this issue Apr 25, 2024
defstat added a commit that referenced this issue Apr 25, 2024
defstat added a commit that referenced this issue Apr 25, 2024
defstat added a commit that referenced this issue Apr 25, 2024
defstat added a commit that referenced this issue Apr 25, 2024
defstat added a commit that referenced this issue Apr 25, 2024
defstat added a commit that referenced this issue Apr 25, 2024
defstat added a commit to pkp/ojs that referenced this issue Apr 25, 2024
[OJS][main] #9674 Port StageAssignmentDAO and StageAssignment to Eloquent Model
defstat added a commit to pkp/omp that referenced this issue Apr 25, 2024
[OMP][main] #9674 Port StageAssignmentDAO and StageAssignment to Eloquent Model
defstat added a commit to pkp/ops that referenced this issue Apr 25, 2024
[OPS][main] #9674 Port StageAssignmentDAO and StageAssignment to Eloquent Model
@defstat
Copy link
Contributor Author

defstat commented Apr 25, 2024

@Vitaliy-1 @asmecher everything merged on pkp-lib, ojs, omp, ops.

Leaving it open for plugins

@asmecher
Copy link
Member

asmecher commented Jul 4, 2024

@defstat, is there still work required for this one?

@defstat
Copy link
Contributor Author

defstat commented Jul 5, 2024

@asmecher I have not yet gone through all plugins for making the necessary changes regarding this.

@defstat defstat closed this as completed Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement:2:Moderate A new feature or improvement that can be implemented in less than 4 weeks.
Projects
None yet
Development

No branches or pull requests

4 participants