feat: add admin endpoints to reset package summaries and releases#447
Merged
paulvanbrenk merged 3 commits intomainfrom Feb 26, 2026
Merged
feat: add admin endpoints to reset package summaries and releases#447paulvanbrenk merged 3 commits intomainfrom
paulvanbrenk merged 3 commits intomainfrom
Conversation
Add two new admin-only POST endpoints:
- /api/admin/packages/{id}/reset-summaries: marks all releases as
SummaryStale=true and deletes ReleaseSummary rows so summaries
regenerate on next sync
- /api/admin/packages/{id}/reset-releases: deletes all releases and
summaries, clears LastFetchedAt so the package is re-fetched from
scratch on next sync
Includes 8 integration tests covering auth, 404, and happy paths.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
5 tasks
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
paulvanbrenk
added a commit
that referenced
this pull request
Feb 26, 2026
## Summary - Adds `/admin/reset` page with paginated table of all packages - Three actions per package: Reset Summaries, Reset Releases, Delete Package - Confirmation modal before each destructive action - Pagination controls for navigating large package lists - Nav link from main Admin page ## Details - Regenerated OpenAPI spec and Orval client code for the new `reset-summaries` and `reset-releases` endpoints (from #447) - New `useResetSummaries` and `useResetReleases` mutation hooks - MSW handlers for the new admin endpoints - 14 new tests: 4 hook tests + 10 page component tests **Depends on:** #447 ## Test plan - [x] `npx vitest run` - all 159 tests pass (13 test files) - [x] `npx tsc --noEmit` - clean TypeScript build - [ ] Manual: navigate to /admin/reset, verify table loads with pagination - [ ] Manual: test each action button opens correct confirmation modal - [ ] Manual: confirm actions call the correct API endpoints 🤖 Generated with [Claude Code](https://claude.com/claude-code)
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
POST /api/admin/packages/{id}/reset-summariesendpoint that marks all releases as stale and deletes summaries, triggering regeneration on next syncPOST /api/admin/packages/{id}/reset-releasesendpoint that deletes all releases/summaries and clearsLastFetchedAt, treating the package as freshly added on next syncTest plan
dotnet test --filter "ResetSummaries|ResetReleases")🤖 Generated with Claude Code