Replies: 1 comment
-
|
Thank you @koushiro for working on this!
multiple focused PRs will be better.
I think all of them are good to have, so there is no such an order.
No.
Seems nice! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Background
After completing the migration of adapter-based services and splitting the code of each service into a core + backend pattern, the current services now have a relatively consistent implementation pattern and can more easily implement corresponding operations according to their own characteristics. However, there are still inconsistencies in implementation patterns across various services. This discussion aims to discuss and unify these coding details to improve code consistency and maintainability.
Proposed Changes
1. Debug Trait Implementation for Service Builders
Question: Should we implement the
Debugtrait for all service builders?Currently, some service builders implement
Debugwhile others don't. We should establish a consistent convention across all services.As far as I know, there is currently no trait bound requiring the service builder to implement Debug. Perhaps downstream developers might need to debug specific configurations within the service builder?
Action Items:
DebugDebugshould be required for all builders2. Module and Structure Renaming
Proposed Renames:
ServiceAccessor→ServiceBackend(to align the naming conventions ofbackendmodule)deletemodule →deletermodule (to align with naming conventions likewriter,reader,lister)Action Items:
ServiceAccessortoServiceBackendacross all servicesdeletemodules todeleterfor consistency3. Remove Empty
listOperation ImplementationsIssue: Currently, some services include an empty
listimplementation, as shown below. I believe that if list operations are not supported or have not yet been implemented, it is sufficient to simply omit the implementation.Proposed Solution:
listimplementations from services that don't support this operation or have not implemented it yet.Action Items:
4. Unify Scheme Usage
Current Issue: Multiple approaches to specifying schemes across services.
Proposed Solution:
Schemeenum in favor of string literalsAction Items:
SchemeenumDiscussion Points
Related Issues/PRs
backend.rsandcore.rsconvention #5702Help Wanted
Feedback on:
Mailing list thread: https://lists.apache.org/thread/cwymbtjs2lcq1976qnw6lhfhf9m1p5j6
Beta Was this translation helpful? Give feedback.
All reactions