Repository navigation
Fix 0.11 changelog and database guide gaps from 0.11.0a1 QA - #7816
Conversation
- Add a breaking entry for rx.App.__call__ returning a plain ASGI callable (#7624), pointing at api_transformer; drop the same note from the performance entry. Named 7624.breaking.md so it links to the PR that made the change rather than this one. - Admin dashboard guide: say the dashboard is served at /admin/ (/admin without the slash returns 404), define the MyAuthProvider the example uses, and note that MappedAsDataclass models need a default or init=False on every constructor field for starlette-admin's "New" form. - tables.md: build the custom serializer from the mapper's column attributes instead of dataclasses.asdict, which follows relationships and raises DetachedInstanceError / RecursionError. Extend the docs example test with a relationship so the old snippet fails it. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Dxjadq3qkhKnqZR2b9WBFi
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Dxjadq3qkhKnqZR2b9WBFi
[Low impact] The PR appears safe to merge; no actionable issues remain. SummaryUpdates the database guides and the 0.11 changelog without changing framework code.
The earlier non-ASCII login finding is fixed: both credential comparisons now use UTF-8 bytes. No new actionable issues were found in the latest change. Reviews (3) · Last reviewed commit: "Pin starlette-admin >=1.0 in the admin d..." · Reviewed by Greptile |
secrets.compare_digest raises TypeError for non-ASCII str arguments, so the guide's login rejected even correct non-ASCII credentials with a 500. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Dxjadq3qkhKnqZR2b9WBFi
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Dxjadq3qkhKnqZR2b9WBFi
There was a problem hiding this comment.
Review completed against the latest diff
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
Merging this PR will improve performance by 5.51%2 warnings
Performance Changes
Tip Curious why performance improved? Comment Comparing |
|
CodSpeed is red here ( Generated by Claude Code |
The guide uses the starlette-admin 1.x API (Admin(secret_key=...), the AuthProvider login/authenticate signatures). Reflex 0.7.5 and earlier installed starlette-admin <1.0, and a plain `pip install starlette-admin` keeps that version, so the pin makes the command upgrade it.
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Dxjadq3qkhKnqZR2b9WBFi
* Fix 0.11 changelog and database guide gaps from 0.11.0a1 QA - Add a breaking entry for rx.App.__call__ returning a plain ASGI callable (#7624), pointing at api_transformer; drop the same note from the performance entry. Named 7624.breaking.md so it links to the PR that made the change rather than this one. - Admin dashboard guide: say the dashboard is served at /admin/ (/admin without the slash returns 404), define the MyAuthProvider the example uses, and note that MappedAsDataclass models need a default or init=False on every constructor field for starlette-admin's "New" form. - tables.md: build the custom serializer from the mapper's column attributes instead of dataclasses.asdict, which follows relationships and raises DetachedInstanceError / RecursionError. Extend the docs example test with a relationship so the old snippet fails it. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Dxjadq3qkhKnqZR2b9WBFi * Compare admin credentials as UTF-8 bytes in the auth example secrets.compare_digest raises TypeError for non-ASCII str arguments, so the guide's login rejected even correct non-ASCII credentials with a 500. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Dxjadq3qkhKnqZR2b9WBFi * Pin starlette-admin >=1.0 in the admin dashboard install line The guide uses the starlette-admin 1.x API (Admin(secret_key=...), the AuthProvider login/authenticate signatures). Reflex 0.7.5 and earlier installed starlette-admin <1.0, and a plain `pip install starlette-admin` keeps that version, so the pin makes the command upgrade it. --------- Co-authored-by: Claude <[email protected]> Co-authored-by: Farhan <[email protected]> (cherry picked from commit 34f8c3c)
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Dxjadq3qkhKnqZR2b9WBFi
* Materialize changelogs for [email protected] (new-prerelease-minor) * Materialize changelogs for [email protected], [email protected], [email protected] (new-prerelease-minor) * Materialize changelogs for [email protected], [email protected], [email protected], [email protected] (new-prerelease-patch) * Materialize changelogs for [email protected] (new-prerelease-minor) * Carry the train's changelog edits for fragments changed after 0.11.0a1 #7818, #7816, #7800, #7806 and #7799 edited news fragments that the 0.11.0a1 materialization had already consumed. On the release train (r/pre-2026.11.11) those edits were folded into the matching 0.11.0a1 CHANGELOG.md entries when the fixes were cherry-picked; this carries the same edits to main, where the fragments are consumed by the materialization commits above. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Dxjadq3qkhKnqZR2b9WBFi * Tidy the 0.11.0a1 changelog sections Dedupe entries that appeared in both reflex and reflex-base (SetVar, @rx.event, rx.client_state, awaitable handlers, foreach hooks, lazy libraries, blocking detection) and in reflex-components-core (foreach over set vars), keeping one entry in the reflex changelog. Merge entries for the same change: deploy_url default with the CORS change, React Compiler with auto_memoize, the reflex run shutdown and --json entries, the backend-var errors, the db page-evaluation fixes, and the Redis cancelled-handler fixes. Drop entries that fix features new in this alpha (blocking-monitor report, array ref names, middleware on awaited handlers, folded into the feature) or describe internals (stable ref names, AdminDashRemovedError), trim implementation narrative, and order each category by user impact. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01ESN8DhETqtSLLtGDUeGGwV * Tidy the pending news fragments for the next 0.11 alpha Drop fragments that fix behavior new in 0.11.0a1 (awaitable handler returns and hints, @rx.event stacking, the storage factory check, the alembic env.py and page-evaluation regressions, the refs import, the same-origin proxy check, the auto_memoize warning) and fold what users need from them into the matching 0.11.0a1 changelog entries. Remove the reflex-base copies of fragments duplicated in reflex, the base half of the upload error fix (kept in components-core), the dependency-floor and docstring fragments, and merge the two DeclarativeBase detection fragments. Recast the reflex.model import fix as a performance entry and trim implementation detail from the rest. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01ESN8DhETqtSLLtGDUeGGwV * Materialize changelogs for [email protected], [email protected], [email protected] (continued-prerelease) * Materialize the #7855 fragment under reflex-base 0.11.0a2 #7855 (Don't wait in Thread.join(timeout) when draining supervised output) merged to main after 0.11.0a2 was cut. It ships in 0.11.0, so its entry goes into the 0.11.0a2 section, which release-from-prerelease collapses into the final 0.11.0 section, and the fragment is consumed. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Dxjadq3qkhKnqZR2b9WBFi * Add the #7855 entry to the reflex-base 0.11.0a2 section The previous commit consumed the fragment but left the changelog edit unstaged; this adds the entry it was meant to carry. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Dxjadq3qkhKnqZR2b9WBFi * Keep main's sibling floors instead of the train's alpha floors The alpha materializations raised the root and reflex-components-core floors to the train's alphas (reflex-components-core >= 0.11.0a1, ...). Those tags live on r/pre-2026.11.11 and are not reachable from main, so main's commits build the siblings as 0.10.2.devN / 1.1.2.devN, which check-min-deps rejects. Keep main's .dev0 floors; release-from-prerelease lifts each to the earliest published final once that sibling is tagged. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Dxjadq3qkhKnqZR2b9WBFi --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Claude <[email protected]>
All Submissions:
Type of change
Docs and changelog only. No framework code changes.
Changes To Core Features:
Found in the reflex 0.11.0a1 pre-release testing (FINDING-014, -020, -024).
FINDING-024:
app()no longer returns a Starlette app. Since #7624,rx.App.__call__returns_RootMiddleware, which has noadd_middleware,routesormount. The changelog mentioned this only in the Performance entry.news/7624.breaking.md, which points atapi_transformer, the documented way to add middleware and routes.app._apiis private, so the entry doesn't mention it.news/+lighter-asgi-entrypoint.performance.mdso the change isn't listed twice.+<slug>. An orphan fragment gets renamed after the PR that added it, so a+name would link the entry to this docs PR instead of the PR that made the change.FINDING-014: admin dashboard guide (
docs/database/admin-dashboard.md)/admin/./adminwithout the trailing slash returns 404 behindapi_transformer: starlette-admin'sMount("/admin")doesn't match it, so the request falls through to Reflex's catch-all mount. The migration note no longer says existing links keep working. It now saysrx.AdminDashredirected/admin, and that links without the slash need updating.MyAuthProviderthe example uses: a minimal starlette-admin 1.xAuthProviderthat checks one username and password from environment variables. The page still links to the starlette-admin auth guide for a real user store.MappedAsDataclassmodels. starlette-admin's "New" form callsself.model()with no arguments, so every constructor field needs a default orinit=False. Otherwise saving the form fails with a 500 (TypeError: __init__() missing ... 'name').FINDING-020: custom serializer in
docs/database/tables.md. The example calleddataclasses.asdict, which follows relationships. That raisesDetachedInstanceErrorfor a relationship the query didn't load andRecursionErrorfor a loaded one that links back. The example now builds the dict fromsqlalchemy.inspect(post).mapper.column_attrs, and a sentence explains why.test_tables_custom_serializerindocs/app/tests/test_database_examples.pyto givePosta relationship. The test now serializes a post with and without the relationship loaded. It fails withDetachedInstanceErroragainst the old snippet and passes with the new one.Verification
TestClientagainst starlette-admin 1.0.3:/admin→ 404,/admin/→ 303 to login, login → 303, "New" for a SQLModel model → 303. "New" for aMappedAsDataclassmodel fails with a 500 /TypeErroras described, and with a default orinit=Falseit gives 303.docs/app:pytest tests/test_database_examples.py tests/test_doc_links.py tests/test_rendered_markdown.py tests/test_frontmatter_meta.pygave 45 passed. The sitemap link check xfails locally because it needs an exported site; CI runs it with--runxfail.pre-commit run --fileson the changed files passes.Generated by Claude Code