feat(openapi): document selftune override audit and clear routes - #9411
feat(openapi): document selftune override audit and clear routes#9411nghetien wants to merge 1 commit into
Conversation
GET /v1/repos/{owner}/{repo}/selftune/overrides/audit and DELETE
/v1/repos/{owner}/{repo}/selftune/overrides were live and MCP-mirrored
but missing from the OpenAPI spec. Add SelftuneOverrideAuditResponseSchema
and ClearSelftuneOverrideResponseSchema mirroring the MCP tool output
shapes, register both routes following the gate-config/effective
pattern, and regenerate apps/loopover-ui/public/openapi.json.
Closes JSONbored#9303
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Important 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏳ LoopOver is waiting…LoopOver has seen this pull request and is waiting on CI checks to finish before reviewing it. This comment will update once the review runs. 🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed · 🟨 Waiting |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #9411 +/- ##
==========================================
+ Coverage 75.46% 75.59% +0.13%
==========================================
Files 275 277 +2
Lines 58030 58360 +330
Branches 6199 6206 +7
==========================================
+ Hits 43790 44119 +329
Misses 13970 13970
- Partials 270 271 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
|
This pull request changes UI/visual code but its screenshot evidence is incomplete. Every required viewport × theme combination needs its own before/after image pair in a labeled table row (e.g. "Desktop · Light | before | after"). Still missing: Desktop · Dark, Tablet · Dark, Mobile · Dark. Please resubmit with the remaining rows filled in. See https://github.com/JSONbored/loopover/blob/main/.claude/skills/contributing-to-loopover/SKILL.md for the exact format and examples. This is an automated maintenance action. |
JSONbored
left a comment
There was a problem hiding this comment.
Re-opened to re-review, but merge conflicts so re-closing.
This branch has conflicts that must be resolved
Use the web editor or the command line to resolve conflicts before continuing.
apps/loopover-ui/public/openapi.json
Summary
SelftuneOverrideAuditResponseSchemaandClearSelftuneOverrideResponseSchematosrc/openapi/schemas.ts, mirroring the field shapes already validated byselftuneOverrideAuditOutputSchema/clearSelftuneOverrideOutputSchemainsrc/mcp/server.ts.GET /v1/repos/{owner}/{repo}/selftune/overrides/audit(with its optionallimitquery param) andDELETE /v1/repos/{owner}/{repo}/selftune/overrides(with its optionalconfirm:truebody) insrc/openapi/spec.ts, following the same pattern used forGET .../gate-config/effective.apps/loopover-ui/public/openapi.jsonvianpm run ui:openapi.test/unit/openapi.test.tsasserting both paths/methods appear inbuildOpenApiSpec()'s output and that each response schema's keys match its route's MCP tool output shape.Closes #9303
Scope
src/openapi/schemas.ts,src/openapi/spec.ts,test/unit/openapi.test.ts, generatedapps/loopover-ui/public/openapi.jsonsite/,CNAME, or VitePress changesValidation
npx turbo run build --filter=@loopover/enginenpm run build:mcpnpm run build:minernpm run ui:openapi(regenerated and committedopenapi.json)npx vitest run test/unit/openapi.test.ts— new + existing assertions passnpx vitest run --changed=upstream/main --passWithNoTests— 134 files / 1723 tests passedSafety
Notes
No UI-visible change (schema/doc-only backend change to generated OpenAPI JSON), so no UI Evidence screenshots are applicable.