Repository navigation
Bugfix Issue 2129 Authored Reliability Chapter
CI Agent edited this page Nov 29, 2026
·
1 revision


Chapter 27 (Non-Functional: Reliability & Recovery Testing) was a read-only reference
page. With a freshly imported 2.0.1 database and fixture project 1
(Issue 2129 Reliability Fixture, prefix R2129), opening
gui/templates/strategy/nfrReliability.html?tproject_id=1 returned HTTP 200 but the live
DOM had 0 textareas and 0 buttons and the network panel showed no BFF call. There was
no way to author project-specific reliability/recovery prose, so the Test Strategy report
had nothing to aggregate for this chapter.
-
api/strategy/index.php:84links chapter 27 to the staticnfrReliability.htmlpage, butgui/templates/strategy/nfrReliability.html:28-59only rendered translated static content; its script (:61-70) calledTLi18nonly. - The persistence path introduced for chapter 28 (#2130) was gated by
schapterCodes()inapi/strategychapter/index.php:78-80, which allowed onlymaintainability; bothGET init(:272-277) andPOST save(:293-298) reject every other chapter code with HTTP 400bad_chapter. -
api/strategyreport/index.php:461-494already aggregates everychapter_coderow for the project, so no report-BFF change was needed. Only the title map ingui/templates/results/strategyReport.html:314-317knewmaintainability, so a new chapter would be shown as the raw codereliability. -
strat.secChapterNotesandstrat.chapterNotesEmptywere absent from all ten client bundles, so the report's chapter-notes panel heading rendered as a raw i18n key.
-
Extend the existing allowlist, not the schema. One line in
schapterCodes()addsreliabilitybesidemaintainability. The existingtestproject_strategy_chapterstable is keyed by(testproject_id, chapter_code), so the atomicINSERT ... ON DUPLICATE KEY UPDATEupsert, rights checks, 20 000-char cap andSTRATEGY_CHAPTER_SAVEAUDIT event work unchanged for the new chapter. This was preferred over a new table or a new API: both would duplicate #2130 infrastructure without adding isolation. -
Mirror the #2130 editor in the existing Dashio page. The page now has a labeled
#relTexttextarea,#btnSave, author/update metadata and a translated status region.GET /api/strategychapter/index.php?action=init&chapter=reliability&tproject_id=Npopulates the text and disables controls for users without write rights;POST ?action=savepersists and refreshes. Project id is taken from?tproject_id=/?tprojectId=and falls back to the BFF session context; 401 redirects to login and 403/400/other states get localized messages. All new labels areTLi18nkeys in ten bundles (13ts.rel*keys with real translations, plus the two report keys). -
Add only the missing report title mapping.
chapterTitle()mapsreliabilityto the pre-existingts.chapterReliabilitykey. That single map is shared by panel 11 and the Markdown export used bywindow.print()(PDF), so both surfaces show a translated chapter name. No report payload or #2101 authored-document behavior changed.
- Extending
testproject_strategy_docswith a pseudo-document would have polluted the #2101authored[]payload and hidden the chapter-code dimension. - A separate reliability-only BFF/table would have duplicated rights, audit and upsert
logic already provided by
api/strategychapter. - A general loop over all 28 chapter pages is an architecture-sized change; the issue is scoped to chapter 27, and the allowlist design leaves the other chapters ready for the same one-line treatment.
-
api/strategychapter/index.php—reliabilityadded toschapterCodes()and route docs. -
gui/templates/strategy/nfrReliability.html— chapter editor markup + load/save wiring. -
gui/templates/results/strategyReport.html—reliabilitychapter title mapping. -
gui/templates/i18n/{de,en,es,fr,it,ja,pt,ro,ru,zh}.json— 13ts.rel*keys plusstrat.secChapterNotes/strat.chapterNotesEmptyin every locale. -
tmp/TLU_Test_Cases.md— suiteRegression — Issue #2129. -
CHANGELOG—[KEY BUGFIX] - #2129entry.
- Pre-fix: 0 textareas, 0 buttons, zero BFF requests; API
bad_chapterforreliability. - Post-fix:
GET init200,POST save200, reload restored the verbatim two-line text with author/timestamp; DB row1 | reliability | … | admin | 2026-11-29 11:24:24. - Report panel 11 showed
11. Authored chapter notesand the reliability text underReliability & Recovery Testing;buildMarkdown()contained the text (PDF print path). - Read-only user (global role tester) saw the text with textarea/Save disabled; unknown
project showed a localized load error;
chapter=bogusstill returned 400; anonymous request returned 401; the maintainability sibling still worked. - Gates:
php -l, extracted-JSnode --check, all ten JSON bundles, coverage gate 9/9 PASS (14138 keys/bundle), suite gate 34 PASS / 0 FAIL. - Event Viewer: 3 rows in the test window, all
log_level=16AUDIT; 0 Error/Warning. - Code review: no must-fix findings.