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

refactor(rest/rcp/controllers): Extracted a class from the repeated code within the RPC controllers #814

Closed

Conversation

Aeskull
Copy link

@Aeskull Aeskull commented Nov 26, 2024

The common functionality of FunctionController and ProcedureController has been placed into a parent class, RpcApi. Merged FunctionService and ProcedureService into RpcService.

The goal of this is simply to reduce repeated code. If it is planned in the future for the FunctionController to have different functionality from the ProcedureController, feel free to reject this PR.

…epeated code within the RPC controllers (FunctionController and ProcedureController). Merged FunctionService and ProcedureService into RpcService.
@kdhrubo kdhrubo requested a review from souravroy November 27, 2024 14:03
@souravroy
Copy link
Contributor

Just a note: We had previously used template method pattern to promote reusability. However, we later refactored it to a simpler structure with interfaces and implementations, prioritising readability over reusability.

@Aeskull
Copy link
Author

Aeskull commented Nov 27, 2024

I understand! Thank's for explaining why it is the way it currently is!

@Aeskull Aeskull closed this Nov 27, 2024
@Aeskull Aeskull deleted the refactor/extract-controller-class branch November 27, 2024 23:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants