Skip to content

Fix 0.11 changelog and database guide gaps from 0.11.0a1 QA - #7816

Merged
FarhanAliRaza merged 3 commits into
mainfrom
docs/011-changelog-and-guide-fixes
Nov 11, 2026
Merged

FarhanAliRaza merged 3 commits into
mainfrom
docs/011-changelog-and-guide-fixes

Conversation

@masenf

@masenf masenf commented Nov 11, 2026 •

Copy link
Copy Markdown
Collaborator

All Submissions:

  • Have you followed the guidelines stated in CONTRIBUTING.md file?
  • Have you checked to ensure there aren't any other open Pull Requests for the desired changed?

Type of change

  • This change requires a documentation update

Docs and changelog only. No framework code changes.

Changes To Core Features:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your core changes, as applicable?
  • Have you successfully ran tests with your changes locally?

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 no add_middleware, routes or mount. The changelog mentioned this only in the Performance entry.

  • Added news/7624.breaking.md, which points at api_transformer, the documented way to add middleware and routes. app._api is private, so the entry doesn't mention it.
  • Removed the same sentence from news/+lighter-asgi-entrypoint.performance.md so the change isn't listed twice.
  • The fragment is named after Send ASGI lifespan events to api_transformer apps; drop the extra top-level Starlette app #7624 instead of +<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)

  • The guide now says the dashboard is served at /admin/. /admin without the trailing slash returns 404 behind api_transformer: starlette-admin's Mount("/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 says rx.AdminDash redirected /admin, and that links without the slash need updating.
  • Defined the MyAuthProvider the example uses: a minimal starlette-admin 1.x AuthProvider that checks one username and password from environment variables. The page still links to the starlette-admin auth guide for a real user store.
  • Added a note on MappedAsDataclass models. starlette-admin's "New" form calls self.model() with no arguments, so every constructor field needs a default or init=False. Otherwise saving the form fails with a 500 (TypeError: __init__() missing ... 'name').

FINDING-020: custom serializer in docs/database/tables.md. The example called dataclasses.asdict, which follows relationships. That raises DetachedInstanceError for a relationship the query didn't load and RecursionError for a loaded one that links back. The example now builds the dict from sqlalchemy.inspect(post).mapper.column_attrs, and a sentence explains why.

  • Extended test_tables_custom_serializer in docs/app/tests/test_database_examples.py to give Post a relationship. The test now serializes a post with and without the relationship loaded. It fails with DetachedInstanceError against the old snippet and passes with the new one.

Verification

  • Ran the guide's main example verbatim in process through TestClient against starlette-admin 1.0.3: /admin → 404, /admin/ → 303 to login, login → 303, "New" for a SQLModel model → 303. "New" for a MappedAsDataclass model fails with a 500 / TypeError as described, and with a default or init=False it gives 303.
  • docs/app: pytest tests/test_database_examples.py tests/test_doc_links.py tests/test_rendered_markdown.py tests/test_frontmatter_meta.py gave 45 passed. The sitemap link check xfails locally because it needs an exported site; CI runs it with --runxfail.
  • pre-commit run --files on the changed files passes.

Generated by Claude Code

View guided diff Turn on auto-fix

- 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
@masenf
masenf requested review from a team and Alek99 as code owners November 11, 2026 09:22
@masenf masenf added this to the v0.11.0 milestone Nov 11, 2026
@masenf masenf added the on deck PRs lined up to review / merge next label Nov 11, 2026
@greptile-apps

greptile-apps Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge; no actionable issues remain.

Summary

Updates the database guides and the 0.11 changelog without changing framework code.

  • Post serialization leaves related rows out of its output.
  • The admin dashboard guide shows a working login and the right dashboard paths.
  • The changelog gives the app() API change its own breaking entry.

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

Comment thread docs/database/admin-dashboard.md Resolved
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

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Comment thread docs/database/tables.md Resolved

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 5 files

View guided diff | Turn on auto-fix | Re-trigger cubic

@codspeed

codspeed Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

Merging this PR will improve performance by 5.51%

2 warnings

⚠️ 18 benchmarks are dominated by system calls

System calls cannot be simulated consistently and are left out of the measure. The reported value understates the real cost. Switch to the Walltime instrument to measure them.

Learn more about system calls

See affected benchmarks

⚠️ 1 benchmark with a significant change ran on different hardware

Its base and head results were measured on machines with a different CPU, core count or memory, so the change might not come from the code. Run base and head on the same runner type.

Learn more about Macro Runners

See affected benchmarks

⚡ 1 improved benchmark
✅ 150 untouched benchmarks

Performance Changes

Benchmark BASE HEAD Efficiency
⚡ test_route_matching[10] 53.6 µs 50.8 µs +5.51%

Tip

Curious why performance improved? Comment @codspeedbot explain why performance improved on this PR, or directly use the CodSpeed MCP with your agent.


Comparing docs/011-changelog-and-guide-fixes (358cecd) with main (f0088e0)

Open in CodSpeed

@masenf

masenf commented Nov 11, 2026

Copy link
Copy Markdown
Collaborator Author

CodSpeed is red here (test_route_matching[1000] -5.9%, test_process_event_burst_independent_tokens[1] -4.5%), but this PR doesn't cause it. It changes only Markdown docs, news fragments and one docs-app test, and no benchmarked code. Both benchmarks show the same 4–6% drop on every PR in this batch. CodSpeed is not a required check; leaving it for acknowledgement on CodSpeed.


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.
@FarhanAliRaza
FarhanAliRaza merged commit 34f8c3c into main Nov 11, 2026
167 checks passed
@FarhanAliRaza
FarhanAliRaza deleted the docs/011-changelog-and-guide-fixes branch November 11, 2026 16:13
masenf added a commit that referenced this pull request Nov 11, 2026
* 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)
@masenf masenf added the release-train Issues found during agentic /prerelease-testing fanout, not necessarily validated bugs. label Nov 11, 2026
masenf added a commit that referenced this pull request Nov 12, 2026
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

on deck PRs lined up to review / merge next release-train Issues found during agentic /prerelease-testing fanout, not necessarily validated bugs.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants