Legacy Redirect Cleanup 757 - sebiboga/testlink-upgraded GitHub Wiki

TestLink — Legacy Redirect Cleanup (Refs #757)

Removes the last two legacy entry points still reachable from modernized Product screens, and fixes the kwa.* i18n regression surfaced while testing (Refs #820).

  • Path: Product > Keyword Management :: "Assign Keywords to Test Cases"; Product > Platform Management :: "Show event history"
  • Refs: #757 (modernize keywordsView, platformsView, tcImport misc legacy redirects), #820 (missing kwa.* keys), #819 (deferred tcImport XML BFF).

What changed

Source screen Legacy target New target
gui/templates/keywords/keywordsView.html — "Assign Keywords to Test Cases" (goAssign()) lib/general/frmWorkArea.php?feature=keywordsAssign keywordsAssign.html?tproject_id=&tplan_id=
gui/templates/platforms/platformsView.html — "Show event history" (Edit platform) POST /lib/events/eventviewer.php (hidden form object_id, object_type=platforms) GET eventviewer.html?object_id=&object_type=platforms
gui/templates/eventviewer/eventviewer.html — New: reads objectId/objectType (or object_id/object_type) URL params, forwards them to the BFF, and shows a "Filtered by {type} #{id}" banner

The BFF (api/eventviewer/index.php) already supported objectId + objectType filtering — only the front-end wasn't wired to pass them from the URL. No BFF change was needed.

Event Viewer object filter

The platforms Event History button now opens the modern Event Viewer scoped to that platform:

/gui/templates/eventviewer/eventviewer.html?object_id=1&object_type=platforms

buildQuery() forwards objectId/objectType to the BFF, so the events table and the by-level / per-day charts are scoped to the object (legacy parity with object_id/object_type). When active, a teal banner shows Filtered by platforms #1 (key ev.filteredByObject).

Keywords Assign (with the bug #820 i18n fix)

goAssign() now opens the modern keywordsAssign.html. Also fixed bug #820: the screen previously rendered raw kwa.* keys — all 29 keys are now present in every locale bundle.

Screenshots

Assign Keywords to Test Cases — translated

Event Viewer filtered by platforms #1

Files

  • gui/templates/keywords/keywordsView.html — goAssign() → modern screen
  • gui/templates/platforms/platformsView.html — event-history form → GET eventviewer.html
  • gui/templates/eventviewer/eventviewer.html — object-filter URL params + indicator
  • gui/templates/i18n/{en,ro,de,es,fr,it,ja,pt,ru,zh}.json — ev.filteredByObject + all kwa.* keys

Test plan

Regression suite 821 in tmp/TLU_Test_Cases.md — 11/11 PASS.