add unit test coverage for PanelService
Maintainer thường phản hồi trong vòng 1 ngày
@anthonychengit đang làm issue này rồi.
Từ ngày 10/7/2026.
Đánh giá
- Độ khó
- 1/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 88/100
- Loại issue
- Tái cấu trúc
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- typescript
Hướng nghiên cứu
Đọc frontend/src/app/workspace/service/panel/panel.service.ts và làm theo kiểu describe/it/expect đơn giản trong size-formatter.util.spec.ts. Thêm frontend/src/app/workspace/service/panel/panel.service.spec.ts, sau đó chạy ng test. Hoàn tất có nghĩa là resetPanels() và closePanels() mỗi hàm phát một lần trên stream riêng của mình và không bao giờ phát trên stream còn lại.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Task Summary
Add panel.service.spec.ts covering PanelService, a tiny event bus that exposes two Subject<void> streams (closePanelStream, resetPanelStream) with closePanels() / resetPanels() triggers.
Background
frontend/src/app/workspace/service/panel/panel.service.ts is a dependency-free service (instantiable directly via new PanelService()), so no TestBed wiring is required.
get resetPanelStream() { return this.resetPanelSubject.asObservable(); }
resetPanels() { this.resetPanelSubject.next(); }
get closePanelStream() { return this.closePanelSubject.asObservable(); }
closePanels() { this.closePanelSubject.next(); }
Behavior to pin
| Scenario | Contract |
|---|---|
subscribe resetPanelStream, call resetPanels() |
subscriber fires exactly once |
subscribe closePanelStream, call closePanels() |
subscriber fires exactly once |
| stream independence | calling resetPanels() does not emit on closePanelStream, and vice-versa |
Subscribe to the stream, invoke the trigger, and assert the emission count (e.g. increment a counter in the subscription). Follow size-formatter.util.spec.ts for the plain describe/it/expect style (ng test).
Scope
- New spec:
frontend/src/app/workspace/service/panel/panel.service.spec.ts. - No production-code changes.
Task Type
- Refactor / Cleanup
- DevOps / Deployment / CI
- Testing / QA
- Documentation
- Performance
- Other
- Ngôn ngữ chính
- Scala
- Star
- 322
- Fork
- 195
- Merge trung bình
- 2 ngày 14 giờ
- Pull request đã merge (30 ngày)
- 136
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 apache/texera
-
Search bar autocomplete stops working after a model appears in the suggestionsCó thể đã có người làm @aglinxinyuan đã nhận 22 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
apache/texera#8700 · 1 bình luận ·
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 62/100
apache/texera#8682 · 5 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
JSONL File Scan reads a JSON null as the text "null"Có thể đã có người làm @CaroFernando đã nhận 20 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
apache/texera#8674 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
LARGE_BINARY test leaves a real S3 object behind on every S3-reachable runCó thể đã có người làm @ShawnGarello đã nhận 5 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Missing workflow returns 500 from workflow type endpointCó thể làm lại được @VuMartin đã nhận 45 ngày trước và không có pull request nào đang mở. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
apache/texera#8300 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của apache/texera
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 83/100
apache/datafusion-comet#7101 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
scope:security type:aquasec
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
AbsaOSS/atum-service#494 ·