-
Notifications
You must be signed in to change notification settings - Fork 27
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
♻️ Refactors projects plugin sub-modules as controller-service-repository #4389
♻️ Refactors projects plugin sub-modules as controller-service-repository #4389
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4389 +/- ##
=========================================
- Coverage 86.1% 84.6% -1.6%
=========================================
Files 987 394 -593
Lines 42403 20695 -21708
Branches 1006 173 -833
=========================================
- Hits 36551 17511 -19040
+ Misses 5621 3135 -2486
+ Partials 231 49 -182
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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.
great! thanks 👍
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.
A few considerations:
- I would personally prefer to use
*_repository.py
in place of*_db.py
since: it can be Postregres, it can be Redis, it can be S3. - why are the nodes api endpoints deleted? I found nothing in the description of the PR
|
b03711f
to
ec41a5c
Compare
ec41a5c
to
aa1ca3b
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Code Climate has analyzed commit 269420e and detected 0 issues on this pull request. View more on Code Climate. |
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.
ok. if possible, wait for my PR about node resources to go in before pushing this one.
What do these changes do?
Reorganizing webserver's projects plugin to reflect controller-service-repository pattern.
For instance, let's assume a project's sub-resource
foo
. It should be split in three submodules asprojects/_foo_handlers.py
: controlerprojects/_foo_api.py
: serviceprojects/_foo_db.py
: repositoryThis PR adapts only some of the submodules, namely:
projects/ports
projects/permalinks
projects/nodes
projects/tags
Related issue/s
projects
extensions of ✨ 🗃️ adding projects_comments DB table and API endpoints #4383 and ✨ Node previews for project homepage #4379How to test
In-place
DevOps
None