-
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
Extract handler parameters from corresponding structure #2513
Extract handler parameters from corresponding structure #2513
Conversation
@w84thesun this pull request has merge conflicts. |
# Conflicts: # internal/handlers/common/count.go # internal/handlers/common/params.go # internal/handlers/pg/msg_count.go
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.
Just few comments about testing 🤗
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 test coverage too!
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 job! The approach looks consistent to me, so I believe we should merge it.
Description
In that PR I introduce
ExtractParams
function that fills the parameters structure by parsing its tags.That change was made only for
count
handler parameters for now.Closes #2465.
Readiness checklist
task all
, and it passed.@FerretDB/core
), Labels, Project and project's Sprint fields.