Skip to content

fix(workspace): retrieve complete subscribed exam lists - #68

Merged
tiankaima merged 3 commits into
mainfrom
fix/complete-workspace-exams
Sep 26, 2026
Merged

tiankaima merged 3 commits into
mainfrom
fix/complete-workspace-exams

Conversation

@tiankaima

Copy link
Copy Markdown
Member

workspace exam previously treated the overview's three sample exams as a complete list and reported the sample size as the total. It now reads the paginated subscribed-exam REST endpoint, retrieves every page by default, shows the true total and semester, and supports date/semester/unknown-date filters plus explicit single-page --page / --limit options. A failed later page returns an error before any partial success output.

The CLI requests workspace.exam:read; README explains that existing users must run life-ustc account login to grant it. OpenAPI and generated clients are synchronized with the merged server implementation in Life-USTC/server#1137 using its reachable source commit and recorded hash.

Validation: make build, make test (including race and contract-script tests), make lint, make vet, OpenAPI source/reachability checks, and generated-code consistency. HTTP command regressions cover 104 exams over two pages, explicit pagination, filter forwarding, real total/semester output, and second-page authorization failure. No dependency or compatibility fallback was added.

@tiankaima
tiankaima merged commit 7704574 into main Sep 26, 2026
4 checks passed
@tiankaima
tiankaima deleted the fix/complete-workspace-exams branch September 26, 2026 06:53
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.

1 participant