-
Notifications
You must be signed in to change notification settings - Fork 409
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
Add backend decorators and OpLog stub #3303
Conversation
Codecov Report
@@ Coverage Diff @@
## main #3303 +/- ##
==========================================
- Coverage 75.15% 74.51% -0.64%
==========================================
Files 400 406 +6
Lines 23970 24189 +219
==========================================
+ Hits 18014 18024 +10
- Misses 4897 5107 +210
+ Partials 1059 1058 -1
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.
Looks good! The linters fail, but the idea with decorators looks good to me.
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.
I think, linters/compilation/tests still fail...
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.
Looks great!
Description
This PR introduces the concept of backend decorators/middlewares. Existing
xxxContract
types will be refactored into decorators once interfaces are a bit more stable and not a subject of merge conflicts.This PR also adds a stub for the OpLog decorator for demonstration purposes.
Readiness checklist
task all
, and it passed.@FerretDB/core
), Milestone (Next
), Labels, Project and project's Sprint fields.