Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Auditor packets and run summaries remain unscoped on a scoped deployment profile (#501 follow-up)

Đã đóng
#508 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
68/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ệ
typescript
Lĩnh vực
api, backend, testing

Hướng nghiên cứu

Start with profileSubjectMatcher in backend-ts/src/config/deployment-profile.ts, then trace the listed run and case packet paths, export-csv.ts, routes/runs.ts, routes/auditor.ts, and mcp/tools.ts. Verify that scoped profiles filter rows and per-status totals while the default profile retains unresolvable QRDA-imported subjects. Add the Maui RED tests and default companion tests described in the issue.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Found by review of #506. Three surfaces still ignore the deployment profile:

  1. Run packet — backend-ts/src/audit/audit-packet.ts (~102–113) loads every outcome, computes unfiltered totals, and maps rows with the unfiltered toRunOutcomeRow and the static directory, so on the Maui profile a foreign subject id can reach the downloadable, hash-stamped JSON/HTML.
  2. Case packet — audit-packet.ts (~137, ~217) and backend-ts/src/routes/auditor.ts (~56) accept a foreign case id and emit its external id and fallback name.
  3. Run summaries — the runs CSV (export-csv.ts ~51), /api/runs (routes/runs.ts ~441, ~1191) and MCP run summaries (mcp/tools.ts ~230) use raw countOutcomesByStatus, so totals can include foreign subjects while the outcome grid excludes them.

Fix shape: profileSubjectMatcher (backend-ts/src/config/deployment-profile.ts) with the request-local directory, applied before rows/totals are assembled and hashed, a no-op on the default profile; for the counts, a per-status histogram that respects the predicate on scoped profiles. Each gets a Maui RED test plus a default companion asserting an unresolvable (QRDA-imported) subject is retained.

Not reachable on a freshly provisioned Maui database (no foreign rows), same premise as #501.

Ngôn ngữ chính
TypeScript
Star
0
Fork
0
Merge trung bình
3 giờ 6 phút
Pull request đã merge (30 ngày)
113

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Taleef7/workwell

Tất cả issue của Taleef7/workwell

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.