Admin console improvements - #324
Closed
lucaspar wants to merge 0 commit into
Closed
Conversation
lucaspar
marked this pull request as ready for review
July 27, 2026 15:15
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 4 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Want reviews to match your repository better? Bugbot Learning can learn team-specific rules from PR activity. A team admin can enable Learning in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 5842ebb. Configure here.
lucaspar
force-pushed
the
lp/admin-improvements
branch
from
July 27, 2026 15:29
68a76fb to
f82d2ab
Compare
lucaspar
force-pushed
the
lp/admin-improvements
branch
from
July 27, 2026 16:39
f82d2ab to
e159931
Compare
lucaspar
added a commit
that referenced
this pull request
Jul 27, 2026
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.

Merged as #326
Note
Medium Risk
Touches production compose and logging plus admin index monkey-patching and heavier dashboard queries on every admin home load; failures are mitigated by fallback context but deploy still needs the new volume and writable
/app/logs.Overview
Replaces the default Django admin index with a Gateway Dashboard that surfaces file/capture/dataset/user counts, soft-delete cleanup candidates, recent signups, staff listings, top storage users, and system health from
SystemHealthSnapshot. Dashboard data is assembled insds_gateway/admin.py(monkey-patchedadmin.site.index) with a DB-error fallback so a failed query does not block admin access.Admin changelists across api_methods, users, and visualizations gain richer columns (counts, formatted sizes, owner emails) and queryset tuning (
select_related/annotate). Search is adjusted to use valid relations (e.g.owner__email,sum_blake3onFile) to avoid admin search 500s.Production observability:
compose.production.yamladds a sharedsds-gateway-prod-app-logsvolume at/app/logsfor app and Celery services;production.pycreates that path and writes rotating logs to/app/logs/gateway.logalongside console output.Minor:
static_cache_bustingcachesversion.jsonat startup; missing version file logs at debug in dev.Reviewed by Cursor Bugbot for commit 5842ebb. Configure here.