Skip to content

Release v2.0.15

Choose a tag to compare

@github-actions github-actions released this 24 Mar 22:13

Release v2.0.15

Changelog

Added

  • Composertest-coverage-90 script: runs test-coverage then scripts/check-coverage.php with --min-percent=90 (statements and elements). Intended for maintainers; CI still enforces 80% (see .github/workflows/ci.yml).
  • Makefilemake test-coverage-90 runs the same check inside Docker.

Changed

  • PHPUnit coverageCreateTableCommand.php and CreateRecordsTableCommand.php are excluded from the Clover/HTML coverage source again. Their DBAL/SQL surface inflates the denominator and makes a 90% aggregate impractical; they remain exercised by unit (CreateTableCommandTest, CreateRecordsTableCommandTest) and integration CLI tests.
  • Tests – Dashboard integration follows redirects before asserting status; chart data API coverage; PerformanceMetricsService integration cases (route params on access records, duplicate requestId, saveAccessRecords disabled); unit tests for recordMetricsSync with closed EntityManager, subscriber environment fallback without Kernel, and extra schema-command failure paths (metadata/SchemaTool errors, force + drop). Test docblocks and related comments use English only.
  • Refactoring – Type hints and assignments aligned for consistency across bundle and tests.
  • SetRouteMetricsCommand – Inline help describes actual behaviour (no “worse than before” gate).

Documentation

  • README – Entity section for v2 (RouteData vs RouteDataRecord); removed obsolete metric columns on RouteData; “How it works” and FrankenPHP note aligned with demos (Caddyfile.dev vs worker). Manual metrics section clarifies the recording pipeline.
  • COMMANDS.md (nowo:performance:set-route) – Removed incorrect “only update if worse” behaviour; documented v2 recording path.
  • DEMO-FRANKENPHP.mdbundles.php example aligned with Symfony 8 demo (Doctrine, Web Profiler, UX Twig Component, UX Icons, Twig Inspector).
  • NOTIFICATIONS.md – Example listener uses AfterMetricsRecordedEvent::getRequestTime() (v2) instead of removed RouteData::getRequestTime().

Commits

  • chore(release): prepare v2.0.15 (da8fc9f)
  • Refactor type hinting and variable assignments for consistency (1d6f01b)
  • Update configuration and scripts for improved testing and coverage reporting (7900149)
  • Add unit tests for NowoPerformanceBundle and DiagnoseCommand (c5d5f24)
  • Remove strict types declaration from reference.php for compatibility with auto-generated files (9743dae)
  • Refactor test files to improve code consistency (9c77025)