-
-
Notifications
You must be signed in to change notification settings - Fork 360
[16.0][IMP]fastapi: enable multi-slash routes #515
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
[16.0][IMP]fastapi: enable multi-slash routes #515
Conversation
|
Hi @lmignon, |
e2a6cce to
f7dda08
Compare
f7dda08 to
efc5e40
Compare
|
The error seems unrelated to this PR |
efc5e40 to
78e8805
Compare
c08daf1 to
66d4979
Compare
lmignon
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.
Than you for the proposal @PicchiSeba
get_uid , get_app and get_endpoint no more receive a root path. They receive a path... The parameter name should be renamed. (see also my previous comment)
66d4979 to
ebe773c
Compare
lmignon
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.
see PyTech-SRL#1
|
once #527 is merged, a rebase will solve the CI |
ebe773c to
e5b9865
Compare
lmignon
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.
Thank you for this great improvement @PicchiSeba
LGTM (Code review, functionnal tests)
Thank you for your support and technical expertize! |
AnizR
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.
Besides the test class, the code seems good.
Thanks for your contribution!
a90c2e5 to
e00d3d1
Compare
|
I accidentally squashed the new test into the merge commit, it should be good now |
lmignon
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.
Thank you for the last changes. One little remaining comment.
When we lookup the fastapi.endpoint to use to process a request at a given path, we must ensure that the matching mechanism on the path and the endpoint root_path is bases on the path parts. e.g. /a/b is not prefix of /a/bc. In the same time improves robustness of the matching mechanism and avoid useless SQL queries
e00d3d1 to
666a6b1
Compare
|
@lmignon I removed the useless test class |
|
This PR has the |
|
/ocabot merge minor |
|
This PR looks fantastic, let's merge it! |
|
Congratulations, your PR was merged at 6f480bf. Thanks a lot for contributing to OCA. ❤️ |
This is a Work In Progress PR, which attempts to address this issue #446.
Any suggestion is welcome
EDIT: depends on #524