-
Notifications
You must be signed in to change notification settings - Fork 32
♻️ web-server: Refactor users domain for improved layer separation and upgrading to asyncpg
#6937
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
♻️ web-server: Refactor users domain for improved layer separation and upgrading to asyncpg
#6937
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #6937 +/- ##
==========================================
- Coverage 88.10% 87.55% -0.56%
==========================================
Files 1592 1603 +11
Lines 62354 62680 +326
Branches 2013 2069 +56
==========================================
- Hits 54940 54877 -63
- Misses 7078 7456 +378
- Partials 336 347 +11
Continue to review full report in Codecov by Sentry.
|
ed2a0d5 to
b358fb4
Compare
b358fb4 to
8e3bedb
Compare
GitHK
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice. Thanks for addressing my questions.
…mcore into is1779/refactor-users
|
odeimaiz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merci!!



What do these changes do?
The
usersplugin has quite some old functionality so before adding further logic into it, I decided to do some refactoring to align with the conventions and libraries we should be using.Layer Separation:
rest-controller,service, andrepositorylayers within theusersdomain.apiis now a pure interface for other domains.Schema and Domain Model Separation:
schema.to_model()andschema.from_model().Repository Migration:
aiopgwithasyncpgacross all repository code.groups_extra_properties) where necessary, though some duplication exists for now.Misc:
User Enums: Moved user-related enums to the
common-libraryfor broader reuse.Related issue/s
How to test
Dev-ops
None