Minio changes - #44
Conversation
… API support for listing shared domain datasets
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (6)
📝 WalkthroughWalkthroughAdds an admin "Domain File Library" feature: four new Pydantic schemas and three FastAPI endpoints (list shared domain prompts, fetch Q&A dataset rows, stream PDF) backed by MinIO storage, plus a new React admin view ( Admin Domain File Library
Sequence Diagram(s)sequenceDiagram
participant Admin as Admin Browser
participant AgentDomainFiles
participant router.py
participant MinIO
Admin->>AgentDomainFiles: Open Domain File Library tab
AgentDomainFiles->>router.py: GET /admin/domain-prompts?page=N
router.py-->>AgentDomainFiles: AdminDomainList
Admin->>AgentDomainFiles: Click "QA Pairs" on a domain row
AgentDomainFiles->>router.py: GET /admin/domain-prompts/{id}/dataset
router.py->>MinIO: download_text(dataset_key)
MinIO-->>router.py: line-delimited JSON
router.py-->>AgentDomainFiles: AdminDomainQAResponse
AgentDomainFiles-->>Admin: Render QAPanel overlay
Admin->>AgentDomainFiles: Click "View PDF" on a domain row
AgentDomainFiles->>router.py: GET /admin/domain-prompts/{id}/pdf
router.py->>MinIO: download_bytes(pdf_key)
MinIO-->>router.py: PDF bytes
router.py-->>AgentDomainFiles: StreamingResponse (application/pdf)
AgentDomainFiles-->>Admin: Render PdfModal with iframe
Estimated code review effort🎯 4 (Complex) | ⏱️ ~50 minutes Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
What does this PR do?
Type of change
Checklist
make checkpasses for backend,npm run lintfor frontend)make testpasses)make migration name=...).env.exampleupdated if new env vars addedHow to test
Related issues
Summary by CodeRabbit