Timesheets: finish CLI/MCP sharing (ts copy bypasses the create service, delete, read document, check summary)
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 38/100
- Tipo di issue
- Refactoring
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- csharp
- Ambito
- api, cli, testing-qa
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- C#
- Stelle
- 3
- Fork
- 0
- Merge medio
- 28m
- PR unite (30g)
- 31
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di SSWConsulting/TimePro.Tools
-
Priority: P3 Type: Refactor
Difficoltà 5/5 Più di una settimana Idoneità per principianti 38/100
SSWConsulting/TimePro.Tools#101 ·
I maintainer di solito rispondono entro 1 giorno
-
Priority: P3 Type: Refactor
Difficoltà 4/5 3-5 giorni Idoneità per principianti 42/100
SSWConsulting/TimePro.Tools#100 ·
I maintainer di solito rispondono entro 1 giorno
-
Accounting: share product, SKU, rate, unbilled and recurring reads (unbilled paging is a no-op)ApertaPriority: P3 Type: Refactor
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
SSWConsulting/TimePro.Tools#99 ·
I maintainer di solito rispondono entro 1 giorno
-
Priority: P2 Type: Refactor
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
SSWConsulting/TimePro.Tools#98 ·
I maintainer di solito rispondono entro 1 giorno
-
Priority: P2 Type: Feature
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
SSWConsulting/TimePro.Tools#96 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di SSWConsulting/TimePro.Tools
Issue simili
-
area-ai untriaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
dotnet/extensions#7790 ·
I maintainer di solito rispondono entro 1 giorno
-
P2 testing
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
I maintainer di solito rispondono entro 1 giorno
-
area-Infrastructure-coreclr os-ios os-maccatalyst os-tvos untriaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
dotnet/runtime#134766 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
0 - Backlog Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
BrighterCommand/Brighter#4444 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno