Skip to content

Migrate more methods to ResourceService.#3708

Merged
demiankatz merged 4 commits intovufind-org:devfrom
demiankatz:improve-resource-service
May 29, 2024
Merged

Migrate more methods to ResourceService.#3708
demiankatz merged 4 commits intovufind-org:devfrom
demiankatz:improve-resource-service

Conversation

@demiankatz
Copy link
Member

This PR refactors some "low-hanging fruit" to the ResourceService, backporting some #2233 changes with minor modifications. Some of the other resource work in #2233 likely needs more significant redesign/reorganization, but it seems helpful to do some of the easy parts first to reduce the scope of the more complex parts.

@demiankatz demiankatz added the architecture pull requests that involve significant refactoring / architectural changes label May 26, 2024
@demiankatz demiankatz added this to the 10.0 milestone May 26, 2024
@demiankatz demiankatz requested review from EreMaijala and aleksip May 26, 2024 13:38
@@ -52,4 +52,29 @@ interface ResourceServiceInterface extends DbServiceInterface
* @return ?ResourceEntityInterface
*/
public function getResourceById($id): ?ResourceEntityInterface;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

int $id

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed!

@demiankatz demiankatz removed the request for review from EreMaijala May 29, 2024 19:18
@demiankatz demiankatz merged commit 6e31e40 into vufind-org:dev May 29, 2024
@demiankatz demiankatz deleted the improve-resource-service branch May 29, 2024 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

architecture pull requests that involve significant refactoring / architectural changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants