Release v2.0.15
Release v2.0.15
Changelog
Added
- Composer –
test-coverage-90script: runstest-coveragethenscripts/check-coverage.phpwith--min-percent=90(statements and elements). Intended for maintainers; CI still enforces 80% (see.github/workflows/ci.yml). - Makefile –
make test-coverage-90runs the same check inside Docker.
Changed
- PHPUnit coverage –
CreateTableCommand.phpandCreateRecordsTableCommand.phpare 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;
PerformanceMetricsServiceintegration cases (route params on access records, duplicaterequestId,saveAccessRecordsdisabled); unit tests forrecordMetricsSyncwith closedEntityManager, subscriber environment fallback withoutKernel, and extra schema-command failure paths (metadata/SchemaToolerrors, 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 (
RouteDatavsRouteDataRecord); removed obsolete metric columns onRouteData; “How it works” and FrankenPHP note aligned with demos (Caddyfile.devvs 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.md –
bundles.phpexample 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 removedRouteData::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)