docs(ops): add the procedure to delete one support conversation on request
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 82/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- sql, supabase, typescript
- Lĩnh vực
- databases, documentation
Hướng nghiên cứu
Đọc phần “Support chat storage and retention” trong docs/operations/deploy.md, sau đó kiểm tra các migration được tham chiếu cho chat hỗ trợ và tệp đính kèm, cùng với src/lib/jobs/retention.ts, để xác nhận chi tiết về việc xóa và lưu giữ hình ảnh. Thêm quy trình được yêu cầu để xóa một cuộc hội thoại riêng lẻ sau khi #776 được merge, bao gồm cách xác minh quyền sở hữu, câu lệnh SQL, những gì bị xóa theo dây chuyền và thời điểm các đối tượng hình ảnh bị xóa.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Context
The privacy policy, as changed by #791 (issue #755), tells a user: "To have a conversation deleted without deleting your account, email ." Nothing tells the operator how to keep that promise. There is no delete control and no database function for one conversation: the write functions of supabase/migrations/20261128120300_support_chat_functions.sql are start, send, reply, mark read, and set status. docs/operations has no procedure either (rg -i "support_threads" docs/operations finds nothing).
The same runbook already sets the precedent for a policy promise the operator fulfils by hand: the audit log section of docs/operations/deploy.md ("Remove the rows written before the switch") gives the count and the delete behind the policy's "To have a copy removed from our database, email" sentence.
Raised by the Fable review of #791 (thread https://github.com/eddiejaoude/StackDash/pull/791#discussion_r4769533513). It is not done on that branch because docs/operations/deploy.md is outside #755's file list and open PR #776 is editing it.
Plan
- Add a short procedure under "Support chat storage and retention" in
docs/operations/deploy.md, after #776 merges:- Take the conversation id from the inbox address (
/app/admin/inbox?thread=<id>), after confirming the request comes from the conversation's owner (the address on the account that ownssupport_threads.user_id). - Run
delete from public.support_threads where id = '<id>';in the SQL editor. It cascades to the messages, attachment rows, read markers, and delivery records (20261128120100_support_chat.sql:81,115,142-143,20261128120200_support_attachments.sql:49-51). - Say that the image objects are then named by no row, so the daily retention job deletes them once they are 24 hours old (
list_orphaned_support_objects), and that Storage objects are never deleted with SQL. - Say that emails already sent about the conversation stay in the inboxes they reached and with the email provider, as the policy says.
- Take the conversation id from the inbox address (
- Link the procedure from the policy's promise only if the docs already link operator procedures from the policy elsewhere; otherwise leave the policy as is.
Acceptance criteria
-
docs/operations/deploy.mdhas a procedure to delete one support conversation: how to find the id, how to check the requester owns it, the onedeletestatement, what it cascades to, and when the images go. - Each statement matches the migrations and
src/lib/jobs/retention.tsat the commit it lands on. - Playwright e2e: none needed, no user-visible change;
npx vitest run src/lib/docs.test.tspasses.
Files and areas
docs/operations/deploy.md (support chat storage and retention section only).
Non-goals: a delete control in the app or a database function for it (a feature, its own issue if wanted), changes to the privacy policy wording.
Verification
npx vitest run src/lib/docs.test.ts and npm run format:check: pass.
Branch: <issue-number>-support-conversation-delete-procedure
Model: anthropic/claude-opus-5-5 | Reasoning effort: not reported by the harness
- Ngôn ngữ chính
- TypeScript
- Star
- 13
- Fork
- 2
- Merge trung bình
- 5 giờ 20 phút
- Pull request đã merge (30 ngày)
- 287
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của eddiejaoude/StackDash
-
area: integrations documentation priority: P2 size: XS
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
eddiejaoude/StackDash#798 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: docs documentation impact: low priority: P3 size: XS
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
eddiejaoude/StackDash#790 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: ops bug impact: low priority: P3 size: XS
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
eddiejaoude/StackDash#785 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: connections enhancement impact: low priority: P3 size: XS
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
eddiejaoude/StackDash#768 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: ci area: database enhancement priority: P3 size: XS
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
eddiejaoude/StackDash#747 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của eddiejaoude/StackDash
Issue tương tự
-
bot:ai-assisted component:midnight-js status:untriaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
midnightntwrk/midnight-js#1790 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area:vscode bug has repro platform:macos platform:vscode regression
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
anthropics/claude-code#113502 ·
-
Add: Rajdhani TV HDĐang mởcheck:passed streams:add
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 77/100
Maintainer thường phản hồi trong vòng 1 ngày
-
effort/l priority/p1 risk/high triage/core
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
iflytek/skillhub#1188 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày