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

Convert the SectionService to the new Repository/DAO/Map pattern #7128

Closed
6 tasks
NateWr opened this issue Jun 15, 2021 · 3 comments
Closed
6 tasks

Convert the SectionService to the new Repository/DAO/Map pattern #7128

NateWr opened this issue Jun 15, 2021 · 3 comments
Assignees
Labels
Housekeeping:1:Todo Any dependency management or refactor that would be nice to have some day.
Milestone

Comments

@NateWr
Copy link
Contributor

NateWr commented Jun 15, 2021

The section entity needs to be converted to use the new pattern for DAOs, Maps and Repositories introduced in #5328. This requires the following:

  • Convert the DAO to extend EntityDAO and use type hints.
  • Convert the SectionService to a repository .
  • Adapt the schema for add/edit operations and add methods to add/edit/delete users to the DAO/Repository.
  • Convert SectionService::getProperties() to a Map that extends PKP\core\maps\SchemaMap.
  • Add any necessary methods to SectionService so that direct access to the DAO is not required.
  • Refactor existing uses of DAORegistry::getDAO('SectionDAO') to use the repository instead.

PRs:

Further PRs:

@NateWr NateWr added the Housekeeping:1:Todo Any dependency management or refactor that would be nice to have some day. label Jun 15, 2021
@NateWr NateWr added this to the OJS/OMP/OPS 3.4 milestone Jun 15, 2021
ewhanson added a commit to ewhanson/citationStyleLanguage that referenced this issue Jul 20, 2021
bozana added a commit to bozana/pkp-lib that referenced this issue Feb 2, 2023
bozana added a commit to bozana/ops that referenced this issue Feb 2, 2023
bozana added a commit to bozana/ops that referenced this issue Feb 2, 2023
bozana added a commit to bozana/omp that referenced this issue Feb 2, 2023
bozana added a commit to bozana/omp that referenced this issue Feb 2, 2023
bozana added a commit to bozana/ojs that referenced this issue Feb 2, 2023
bozana added a commit to bozana/ojs that referenced this issue Feb 2, 2023
@bozana
Copy link
Collaborator

bozana commented Feb 2, 2023

@NateWr, could you please review the PRs above?

bozana added a commit to bozana/omp that referenced this issue Feb 6, 2023
bozana added a commit to bozana/ojs that referenced this issue Feb 6, 2023
@NateWr
Copy link
Contributor Author

NateWr commented Feb 6, 2023

Looks good @bozana! I've left a few comments with possible bugs, but it's mostly stylistic suggestions. Go ahead and merge once you're happy with it. 👍

bozana added a commit to bozana/pkp-lib that referenced this issue Feb 7, 2023
bozana added a commit to bozana/pkp-lib that referenced this issue Feb 7, 2023
bozana added a commit to bozana/pkp-lib that referenced this issue Feb 7, 2023
bozana added a commit to bozana/ojs that referenced this issue Feb 7, 2023
bozana added a commit to bozana/ojs that referenced this issue Feb 7, 2023
bozana added a commit to bozana/ojs that referenced this issue Feb 7, 2023
bozana added a commit to bozana/pkp-lib that referenced this issue Feb 7, 2023
bozana added a commit to bozana/ojs that referenced this issue Feb 7, 2023
bozana added a commit to bozana/pkp-lib that referenced this issue Feb 7, 2023
bozana added a commit to bozana/omp that referenced this issue Feb 7, 2023
bozana added a commit to bozana/omp that referenced this issue Feb 7, 2023
bozana added a commit to bozana/pkp-lib that referenced this issue Feb 7, 2023
bozana added a commit to bozana/ojs that referenced this issue Feb 7, 2023
bozana added a commit to bozana/omp that referenced this issue Feb 7, 2023
bozana added a commit to bozana/ops that referenced this issue Feb 7, 2023
bozana added a commit to bozana/ojs that referenced this issue Feb 8, 2023
bozana added a commit to bozana/ojs that referenced this issue Feb 8, 2023
bozana added a commit to bozana/omp that referenced this issue Feb 8, 2023
bozana added a commit to bozana/ops that referenced this issue Feb 8, 2023
bozana added a commit to bozana/pkp-lib that referenced this issue Feb 8, 2023
bozana added a commit to bozana/omp that referenced this issue Feb 8, 2023
bozana added a commit to bozana/omp that referenced this issue Feb 8, 2023
bozana added a commit to bozana/ojs that referenced this issue Feb 8, 2023
bozana added a commit to bozana/ojs that referenced this issue Feb 8, 2023
bozana added a commit to bozana/ojs that referenced this issue Feb 8, 2023
bozana added a commit to bozana/ops that referenced this issue Feb 8, 2023
bozana added a commit that referenced this issue Feb 8, 2023
#7128 Convert the SectionService to the new Repository/DAO/Map pattern
bozana added a commit to pkp/ojs that referenced this issue Feb 8, 2023
pkp/pkp-lib#7128 Convert the SectionService to the new Repository/DAO/Map pattern
bozana added a commit to pkp/omp that referenced this issue Feb 8, 2023
pkp/pkp-lib#7128 Convert the SectionService to the new Repository/DAO/Map pattern
bozana added a commit to pkp/ops that referenced this issue Feb 8, 2023
pkp/pkp-lib#7128 Convert the SectionService to the new Repository/DAO/Map pattern
@bozana
Copy link
Collaborator

bozana commented Feb 8, 2023

Thanks a lot @NateWr!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Housekeeping:1:Todo Any dependency management or refactor that would be nice to have some day.
Projects
None yet
Development

No branches or pull requests

3 participants