feat: add platform administration panel - #57
Merged
Conversation
Add freshly authorized installation totals, exact account and workspace lookup, bounded paste metadata views, and cursor-paginated platform audit history. Protect non-public paste capability IDs and notify mounted administrators when their authority is revoked.
Give protected largest-paste rows unique non-secret stream identities, account for legacy inline paste sizes, and create administration indexes concurrently under advisory migration locking. Add context, LiveView, and temporary-database migration regressions.
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.
Summary
/adminLiveView with installation totals, exact user/organization/workspace lookup, recent public paste metadata, largest paste metadata, and cursor-paginated platform audit historyRouting and authorization
/adminis placed in the existing[:browser, :require_authenticated_user]pipeline andlive_session :require_authenticated_userbecause every panel route requires an authenticated registered user.AdminLiveadds the:require_platform_adminmodule-levelon_mounthook as the separate installation-wide authorization boundary, while every context read independently reloads current authority.Oracle review follow-up
Regression coverage was added before fixing the review findings:
size_bytes = NULLare backfilled, counted in storage totals, displayed with their computed size, and sorted defensively with nulls lastCREATE INDEX CONCURRENTLYoutside a DDL transaction with advisory migration lockingThe migration regression runs against a temporary PostgreSQL database and verifies the backfill, index definitions, lock strategy, and disabled DDL transaction.
Validation
mix precommit— 489 tests passedDROP INDEX CONCURRENTLYandCREATE INDEX CONCURRENTLYmake check-rfds— passed