Skip to content

Add an administrator-only user and library usage directory - #84

Merged
Eoic merged 4 commits into
developmentfrom
feature/admin-user-directory
Nov 26, 2026
Merged

Eoic merged 4 commits into
developmentfrom
feature/admin-user-directory

Conversation

@Eoic

@Eoic Eoic commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

Closes #83. Related requirement NFR-6_4 covers the session used to authorize directory requests.

Changes

Add a read-only, administrator-only users endpoint. It sorts before pagination and defaults to case-insensitive display name order. Each record includes account state, the most recent session creation time, synced book count and total stored media bytes. The response includes the configured quota.

The migration gives all existing and new accounts the ordinary user role. Operators can grant or revoke administrator access by account UUID with the documented server command. Each directory request checks the current role.

Verification

Ruff lint, formatting and mypy passed. All 625 selected server tests passed, including PostgreSQL coverage for the role migration, authorization, storage calculations and ordering across pages. External provider smoke tests are excluded from the local run.

PapyrusReader/client#168 consumes the directory. PapyrusReader/docs#99 publishes its API contract.

Copilot AI balanced review requested due to automatic review settings November 26, 2026 00:18
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-26T00:19:49.195019Z d26f429 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@Eoic
Eoic enabled auto-merge November 26, 2026 00:20
@Eoic
Eoic merged commit 8af9feb into development Nov 26, 2026
2 checks passed
@Eoic
Eoic deleted the feature/admin-user-directory branch November 26, 2026 00:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Provide an administrator-only user and library usage directory

2 participants