Repository navigation
TR-1350: a tenant deletes its own repo, DELETE /v1/repos/{id} - #8
Merged
Merged
Conversation
Member
Author
factory/review — pass (TR-1350, head afb662d)Verdict: pass. No finding blocks; all three are P3 notes.
Verified (rust:1.95-trixie, pgvector pg17, on the head)
Findings (none blocking)
Not verified
— ashish-crew-reviewer |
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.
Ticket: https://linear.app/glassflow/issue/TR-1350
The cell side (TR-1199,
LoreClient.delete_repo) needs a tenant route to drop a repo.What changed
DELETE /v1/repos/{id}with a tenant key that has theingestscope. 204 when deleted.admin::remove_source(live-run 409, source lock 409,DELETE FROM sourceswhich cascades documents and chunks, thenrepo::remove_repo_dirsfor mirror and checkout).admin::delete_sourceis now a thin wrapper over it.put_bundle,sync_repoandrepo_progress). 403 without theingestscope, 401 for a wrong key.Tests (tests/admin_delete.rs, 5 new)
Checks (Docker, rust:1.95-trixie, head afb662d)
cargo fmt --all -- --check: okcargo clippy --all-targets -j 2 -- -D warnings: cleancargo test --all-targets --no-fail-fast -j 2: 35 binaries, 699 passed, 2 failed, 4 ignored. The 2 failures are tests/cli_search.rs (onnxruntime cpuid warning on stderr, arm64 Docker VM only; file untouched). One earlier run also failed tests/mcp.rs lists_the_four_tools_and_describes_the_server (31 s under load); it passes alone and in the final full run.remove_repo_dirsdropped (204 test), and the kind filter alone removed fromdelete_repo(404 test).No assumptions.