test(database): fail clearly when the events coverage migration replay finds no statements
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
- 79/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- sql, supabase, typescript
Hướng nghiên cứu
Đọc supabase/tests/database/48_events_covered_from.test.sql gần dòng 92 và kiểm tra cách tệp chạy lại các câu lệnh từ supabase_migrations.schema_migrations. Thêm thông báo lỗi rõ ràng nếu lần chạy lại không chứa chính xác các câu lệnh alter table, comment on column và update như mong đợi, đồng thời giải thích trong chú thích SQL việc gộp migration có ý nghĩa gì đối với lần chạy lại. Chạy npm run test:db; xác nhận tệp 48 chạy thành công bình thường và thất bại với lỗi chạy lại có tên khi một câu lệnh bị thiếu hoặc thay đổi.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Context
PR #746 (#724) adds supabase/tests/database/48_events_covered_from.test.sql. To test the migration's update external_accounts set events_history_legacy = true where first_synced_at is not null, it replays the statements the Supabase CLI recorded in supabase_migrations.schema_migrations. If those statements are missing or different (after a migration squash, a migration repair, or a hand-applied migration), the test fails without saying why. Raised as a consider in review round 3, which is the review cap: https://github.com/eddiejaoude/StackDash/pull/746#discussion_r4768183960
Plan
- In
48_events_covered_from.test.sqlnear line 92, count the replayed statements and raise a named error unless they are exactly the expected three:alter table,comment on column,update. - In the comment above the
alter table, say that squashing this migration breaks the replay and what to do then.
Acceptance criteria
- With the recorded statements missing or changed,
npm run test:dbfails with a message that names the replay - With the statements present, file 48 passes as before
- Playwright e2e: none needed, database test only
Files and areas
supabase/tests/database/48_events_covered_from.test.sql. Non-goals: changing the migration itself.
Verification
npm run test:db: file 48 passes. Removing the update statement makes it fail with the named error.
Branch: <issue-number>-coverage-replay-guard
Closes with a Closes #<issue-number> footer on the commit or pull request.
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: ops documentation priority: P3 size: XS
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
eddiejaoude/StackDash#796 ·
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
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