Skip to content

[FWP][17.0][IMP]fastapi: enable multi-slash routes #548

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

Merged
merged 5 commits into from
Jun 30, 2025

Conversation

lmignon
Copy link
Contributor

@lmignon lmignon commented Jun 28, 2025

forward port of #515 from 16.0

PicchiSeba and others added 5 commits June 28, 2025 12:17
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
@lmignon lmignon changed the title [FXP][17.0][IMP]fastapi: enable multi-slash routes [FWP][17.0][IMP]fastapi: enable multi-slash routes Jun 28, 2025
@lmignon lmignon added this to the 17.0 milestone Jun 28, 2025
@lmignon
Copy link
Contributor Author

lmignon commented Jun 30, 2025

/ocabot merge minor

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 17.0-ocabot-merge-pr-548-by-lmignon-bump-minor, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 56660ed into OCA:17.0 Jun 30, 2025
7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 84b401f. Thanks a lot for contributing to OCA. ❤️

@lmignon lmignon deleted the oca-port-fastapi-16.0-to-17.0-113fb0 branch June 30, 2025 06:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants