Repository navigation
Test Plan Milestone Delivery Modernized
Issue: #2079. Screen: gui/templates/results/milestoneDelivery.html. BFF: api/milestonedelivery/index.php.
This net-new read-only report answers a question 1.9.20's milestone screen could not answer in one place: before each deadline, did the plan's assigned test cases actually receive execution evidence, and did that evidence match the expected high/medium/low priority mix?
Legacy milestone data (milestones.a/b/c, start_date, target_date) is displayed as an expected priority pie, while execution evidence lives in a separate results screen. milestoneDelivery joins the plan's testplan_tcversions assignments, tcversions.importance and dated executions into one Dashio report with per-milestone coverage, weighted completion, days left and an overdue/at-risk/on-track verdict.
- Toolbar: test-plan/project context, Build and Platform filters, Refresh, Export CSV and Close. A
tplan_iddeep link is required; ASIDE and Reports supply both project and plan IDs. - Verdict banners:
no_milestones,no_data,complete,on_track,at_riskandoverdue, each localized independently of its CSS state class. - Context panel: project, plan, selected build/platform and report date.
- KPI strip: milestones, assigned links, executed-in-window, not run, coverage %, pass rate, complete, overdue and at risk.
- DataTable: milestone, evidence window, expected H/M/L, assigned, executed, passed/failed/blocked/not-run split, coverage, pass rate, weighted completion, days left, verdict and a Detail button.
- Detail modal: per-priority expected/assigned/executed/coverage plus executed status counts; Close dismisses it.
- UTF-8 CSV with BOM,
;delimiter, quoted cells and formula-injection guard; localized 400/401/403/404/405 state cards and aTLi18nlocale switcher.
- The unit is one
testplan_tcversionsassignment of the selected plan, keyed by(tcversion_id, platform_id). -
milestones.a,bandcare the expected percentages for importance 3 (high), 2 (medium) and 1 (low). - An execution is evidence when its
execution_tsdate falls inside a milestone'sstart_date..target_datewindow and its status is notn(not run), matching legacytlTestPlanMetrics. The first matching execution per assignment counts;tcversion_numberis not used. - Pass rate is
passed / executed × 100over non-nexecutions in scope; not-run assignments are the remainder of the plan's links. - An assignment with
platform_id = 0is legacy-style and matches every execution platform; a named platform assignment matches only that platform. -
coverage_pct = executed / assigned × 100;completion_pctweights executed priorities by the milestone's expected mix and caps the ratio at 100%. - Verdicts: no milestones →
no_milestones; no assigned links →no_data; every assigned link executed →completeregardless of days left or weighted completion; otherwise negative days left →overdue, ≤ 7 days left →at_risk, thenon_track. The plan-level verdict prefers overdue, then at-risk, then on-track, then complete. - Rights (
testplan_metrics) are checked on the OWNING project before the client-suppliedtproject_idassertion, so a rightful user cannot use a mismatched project to bypass the check. An unknown plan returns 404 before the rights check.
| Case | HTTP | Code |
|---|---|---|
GET|HEAD action=init / action=report success |
200 | ok |
Missing/invalid tplan_id, unknown action, build/platform outside the owning project |
400 | invalid_request |
| Anonymous / expired session | 401 |
not_authenticated / session_expired
|
Missing testplan_metrics on the owning project |
403 |
no_right (AUDIT) |
Unknown plan / mismatched tproject_id
|
404 |
tplan_not_found / project_mismatch
|
| Non GET/HEAD | 405 |
method_not_allowed (Allow: GET, HEAD) |
Security: bffSameOriginGuard() + bffEnforceSession(), nosniff and no-store headers, integer-only IDs, and AUDIT logging for denials. Both init and report return the build/platform filter lists.
-
api/milestonedelivery/index.php—action=initandaction=report. -
cfg/reports.cfg.php—milestone_deliveryentry in Reports for all roles. -
api/aside/index.php— Reports entry with both project and plan IDs. -
lib/functions/common.php—$actions->milestoneDelivery. -
gui/templates/i18n/*.json—mdlv.*(89 keys) +footers.milestoneDeliveryin all 10 bundles;ai/verify_i18n_coverage.shpasses 9/9 with 13701 keys. -
locale/*/strings.txt—$TLS_link_report_milestone_deliveryin all 19 server locales.
- Fixture
tmp/fixtures_2079.php: projectMDV2079, planMDV Delivery Plan, two builds, two platforms, six assigned versions (3 high / 2 medium / 1 low), three milestones and six dated executions; extra plans coverno_milestonesandno_data, plus a role-3mdv2079norightsuser. - Suite
Issue #2079: browser-verified normal/filtered/detail/CSV/RO states, all verdict banners, 400/401/403/404/405/empty/error cards, i18n and syntax gates, Event Viewer and wiring. Suite gate reports 34 PASS / 0 FAIL / 0 SKIP. - Bugs found during testing/code review: #2080 (raw DataTables keys and numeric all-filter labels), #2081 (
reportomitted filter lists), #2082 (duplicate DataTables headeraria-labelafter re-apply), #2083 (not_runexecutions counted as evidence), #2084 (pass rate / status split missing from the UI), #2085 (documentation overstatements) and #2086 (plan pass rate used the wrong denominator). All were filed with thebuglabel, fixed in separate commits and closed. - PHP lint, extracted
node --check, JSON validation, i18n coverage and suite gates pass. Event Viewer has 8 AUDIT rows and 0 Error/Warning entries after all fixture, login, denial, filter, CSV and fix paths.
Normal report with milestone verdicts and KPI strip:

Per-priority detail modal:

Build-filtered report:

Romanian locale:

403 no-right state card:
