Repository navigation
Add the task dashboard's admin guard only once, so the docs build and a second app in the same process work again - #2896
Merged
Merged
Conversation
…e same process can start The documentation build creates an app per API page, and the security release made every app add its guard to rq_dashboard's shared blueprint (5a021dd). Flask refuses new hooks on a blueprint that is already registered, so every docs build has failed since v1.1.2 and v1.0.3, and so does any script or test suite that creates a second app. The guard now lives at module level and is added before the first registration only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: F.N. Claessen <claessen@seita.nl>
…ection Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: F.N. Claessen <claessen@seita.nl>
Documentation build overview
40 files changed ·
|
Flix6x
added a commit
that referenced
this pull request
Nov 23, 2026
… a second app in the same process can start (#2896) The documentation build creates an app per API page, and the security release made every app add its guard to rq_dashboard's shared blueprint (5a021dd). Flask refuses new hooks on a blueprint that is already registered, so every docs build has failed since v1.1.2, and so does any script or test suite that creates a second app. The guard now lives at module level and is added before the first registration only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: F.N. Claessen <claessen@seita.nl>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: F.N. Claessen <claessen@seita.nl>
Flix6x
added a commit
that referenced
this pull request
Nov 23, 2026
… a second app in the same process can start (#2896) The documentation build creates an app per API page, and the security release made every app add its guard to rq_dashboard's shared blueprint. Flask refuses new hooks on a blueprint that is already registered, so docs builds have failed since v1.0.3, and so does any script or test suite that creates a second app. The guard now lives at module level and is added before the first registration only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: F.N. Claessen <claessen@seita.nl>
BelhsanHmida
added a commit
that referenced
this pull request
Nov 23, 2026
Brings in #2896, which fixes the docs build that the security release broke. Signed-off-by: Mohamed Belhsan Hmida <mohamedbelhsanhmida@gmail.com>
BelhsanHmida
added a commit
that referenced
this pull request
Nov 23, 2026
Brings in #2896, which adds the task dashboard's admin guard only once, so the docs build works again. Signed-off-by: Mohamed Belhsan Hmida <mohamedbelhsanhmida@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Every Read the Docs build has failed since v1.1.2 and v1.0.3, including
stable, so the published docs do not show these releases yet.The documentation build creates a FlexMeasures app once per API page (
autoflask).Since the security release, every app adds its admin guard to
rq_dashboard's shared blueprint (5a021dd, which made the task dashboard admin-only in every environment).Flask refuses new hooks on a blueprint that is already registered, so the second app fails with:
The same happens to any script or test suite that creates a second app in one process.
rq_dashboard_admin_auth, and is added to the blueprint only once, before the first registration. The dashboard stays admin-only in every environment.No changelog entry: released servers are not affected, as each process creates one app.
How to test
pytest flexmeasures/ui/tests/test_tasks_access.py. Without the change inflexmeasures/ui/__init__.py, the new test fails with the error above.cd documentation && python -m sphinx -T -W --keep-going -b html -d _build/doctrees -D language=en . _build/html. It fails on main and passes on this branch.Checklist
documentation/changelog.rst(not needed, see above)🤖 Generated with Claude Code