Timesheets: finish CLI/MCP sharing (ts copy bypasses the create service, delete, read document, check summary)
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ó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 38/100
- Loại issue
- Tái cấu trúc
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- csharp
- Lĩnh vực
- api, cli, testing-qa
Hướng nghiên cứu
Read TimesheetUpdateService and TimesheetAcceptService as patterns, then trace ts copy, ts delete, DeleteTimesheet, GetTimesheets, CheckCommand/CheckWeek, and single-day ts get. The work is done when the listed service migrations, shared documents, summary and strict fields, lookup path, and copy success/failure tests are complete without breaking the stated MCP wire changes.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Why
Create, update and accept are genuinely shared. What is left on the timesheet side:
ts copybypassesTimesheetCreateService. It builds its ownTimesheetRequest(no sell price, the source row'sCategorycopied intoCategoryIdrather than resolved, no rate check, no read-back), counts aSuccess=falseresponse as copied and exits 0, reports the normal empty success body as "Failed: Unknown error", and skips the confirmation on--jsonwithout--yes. CLAUDE.md says a create request is never built outside the service.GetTimesheetsdrops fields agents need. The MCP projection omitsiteration/iterationId, category,less, location id and billable flags.UpdateTimesheetandAcceptSuggestedTimesheettake an iteration, but an agent cannot read a row's current one.- Delete shares only the suggestion guard; guard → DELETE → result is written twice (
DeleteCommand,DeleteTimesheet). ts checksummary and--strictverdict are computed only inCheckCommand(CheckEvaluator.Summarize);CheckWeekhas no summary or strict field.ts getfor a single day does not go throughTimesheetLookup.
Migrate
-
ts copy: oneTimesheetCreateService.PrepareAsync/ApplyAsyncper row; count only verified outcomes; exit non-zero on any failed row; require--yeson--json; tests for success,Success=falseand partial failure. -
TimesheetDeleteService(guard + delete + result) used byts deleteandDeleteTimesheet; dropDeleteTimesheetfromTimesheetToolsUsingApiDirectly. - One timesheet-row document for
ts get --jsonandGetTimesheets(keep the weekend policy an explicit argument). - Put the summary line and strict verdict in
WeekCheckResult. -
ts get <date>reads throughTimesheetLookup.
How
TimesheetUpdateService / TimesheetAcceptService are the pattern. The copy change and the delete service are patch-safe; the GetTimesheets document and the CheckWeek fields are MCP wire changes for 0.4.0.
Part of #38.
- Ngôn ngữ chính
- C#
- Star
- 3
- Fork
- 0
- Merge trung bình
- 28 phút
- Pull request đã merge (30 ngày)
- 31
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Không 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 SSWConsulting/TimePro.Tools
-
Priority: P3 Type: Refactor
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 38/100
SSWConsulting/TimePro.Tools#101 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Priority: P3 Type: Refactor
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
SSWConsulting/TimePro.Tools#100 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Accounting: share product, SKU, rate, unbilled and recurring reads (unbilled paging is a no-op)Đang mởPriority: P3 Type: Refactor
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
SSWConsulting/TimePro.Tools#99 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Priority: P2 Type: Refactor
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
SSWConsulting/TimePro.Tools#98 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Priority: P2 Type: Feature
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
SSWConsulting/TimePro.Tools#96 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của SSWConsulting/TimePro.Tools
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
fluentassertions/fluentassertions#3353 ·
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 65/100
-
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 78/100
unoplatform/uno#24769 ·
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 75/100
AvaloniaUI/Avalonia#22323 ·
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 88/100
microsoft/onnxruntime-genai#2633 ·
Maintainer thường phản hồi trong vòng 1 ngày