Skip to content

api: preserve included routes in versioned APIs - #735

Merged
nuclearcat merged 2 commits into
kernelci:mainfrom
nuclearcat:fix/versioned-auth-routes
Nov 24, 2026
Merged

nuclearcat merged 2 commits into
kernelci:mainfrom
nuclearcat:fix/versioned-auth-routes

Conversation

@nuclearcat

Copy link
Copy Markdown
Member

FastAPI 0.137 stopped flattening included routers into top-level APIRoute entries. The versioned app only copied those entries, which dropped login, logout, and both password reset routes.

Register endpoints on a shared APIRouter and include it directly in the standalone and versioned apps. Exercise the restored user routes through both version prefixes and the unprefixed alias.

FastAPI 0.137 stopped flattening included routers into top-level APIRoute entries. The versioned app only copied those entries, which dropped login, logout, and both password reset routes.

Register endpoints on a shared APIRouter and include it directly in the standalone and versioned apps. Exercise the restored user routes through both version prefixes and the unprefixed alias.

Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
The Ubuntu 26.04 runner no longer ships apt-key. Docker and the Compose plugin are already available, so remove the legacy installation step that failed before the build.

Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
@nuclearcat
nuclearcat added this pull request to the merge queue Nov 24, 2026
Merged via the queue into kernelci:main with commit 08cf739 Nov 24, 2026
3 checks passed
@nuclearcat
nuclearcat deleted the fix/versioned-auth-routes branch November 24, 2026 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant