Repository navigation
Test Plan Custom Field Value Gaps Modernized
Issue: #2074. Screen: gui/templates/results/tpwcGaps.html. BFF: api/tplanwithcf/index.php.
This net-new read-only report answers a question 1.9.20 could not answer in one place: for a chosen test plan, which assigned test-case versions are missing values for their test-plan-design custom fields, and what values are already present?








tplanWithCF.html shows the raw custom-field values inside one plan, and tplanCfCoverage.html shows a per-plan coverage count across a project. Neither exposes a per-case gap list: a manager still had to open every row and compare each field by eye. tpwcGaps turns the same cfield_testplan_design_values data into a filtered, sortable gap list with raw values, KPIs and a verdict.
- Toolbar: test-plan/project context, Custom field filter (All / individual fields), Scope filter (All assigned / With values / Missing values), search, Refresh, Export CSV and Close. The screen requires a
tplan_iddeep link, normally supplied by ASIDE or thetplanCfCoverage.htmllauncher. - KPI strip: assigned versions, with values, without values, value coverage %, linked design custom fields, filled cells and rows in the current scope. The first six KPIs describe the whole plan;
shownfollows the filters. - Verdict banner:
empty(no custom fields, no assignments or no filled cells),partial(some cells are still empty) andcomplete(every assigned version has every design field filled). - DataTable: prefixed test case with version badge, full suite path,
filled / totalbadge and one column per linked design custom field showingcompletat/lipsăplus the trimmed raw value. -
Deschide valorile bruteopenstplanWithCF.htmlfor the same project and plan; a per-plan gap link was added as the final column oftplanCfCoverage.html. - UTF-8 CSV with BOM,
;delimiter 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. - Fields in scope are project-linked test-case-node custom fields with
enable_on_testplan_design = 1; display order comes fromcfield_testprojects.display_order. - A value counts as filled when its trimmed string is non-empty; a row is "with values" when at least one of its fields is filled.
-
coverage_pct = filled_cells / (assigned × custom_fields) × 100, rounded to one decimal;without_values = assigned - with_values. - Scope
filled/missingnarrows the displayed rows. When a custom field is selected the scope applies to THAT field (With values= field filled,Missing values= field empty); withAll assignedit still limits rows to that filled field. The plan verdict is computed from plan-wide counters. - Rights (
testplan_metrics) are checked on the OWNING project before the client-suppliedtproject_idassertion.
| Case | HTTP | Code |
|---|---|---|
GET|HEAD success |
200 | ok |
Invalid/missing tplan_id, bad scope, bad cf_id, unknown action, long q
|
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 |
Security: bffSameOriginGuard() + bffEnforceSession(), nosniff and no-store headers, integer-only IDs and AUDIT denials.
-
cfg/reports.cfg.php—tpwc_gaps;api/aside/index.php— Reports entry with project and plan IDs. -
lib/functions/common.php—$actions->tpwcGaps. -
gui/templates/results/tplanCfCoverage.html— per-plan gap launcher. -
gui/templates/i18n/*.json— 59tpwg.*+ footer keys in all 10 bundles (gate 9/9, 13611 keys). -
locale/*/strings.txt—$TLS_link_report_tpwc_gapsin all 19 server locales.
- Fixture
tmp/fixtures_2074.sql: plan 20740 with 4 assignments, 4 filled cells and one missing pair; plan 20742 with no assignments; two design custom fields; role-3norightsuser. - Suite
Issue #2074: 14 cases, all PASS; suite gate 34 PASS / 0 FAIL / 0 SKIP. - Bugs #2075, #2076 and #2077 were found by browser/curl testing, and #2078 by mandatory code review; all were filed with the
buglabel, fixed and closed. #2078 covers escaped field titles, the scoped missing filter, the full-cell verdict, localized error states, the working placeholder and locale hygiene. - Event Viewer has no new Error/Warning entries after the #2075 fix.