Skip to content

Release v2.0.6

Choose a tag to compare

@github-actions github-actions released this 02 Feb 06:34

feat: Add symfony/yaml dependency and enhance cache configuration

  • Added symfony/yaml as a required dependency for loading YAML service configurations.
  • Introduced a dedicated cache configuration option for the performance bundle, allowing users to specify a custom cache pool.
  • Updated documentation to reflect the new cache features and configuration options.
  • Enhanced the changelog and upgrading guide with details on the new cache pool and its usage.

Changelog

Added

  • Dedicated cache pool – The bundle now registers a dedicated filesystem cache pool nowo_performance.cache (TTL 1h) via framework.cache.pools. PerformanceCacheService uses this pool by default instead of cache.app, isolating bundle cache from application cache.
  • Cache configuration – New nowo_performance.cache.pool option to override the cache pool (e.g. cache.app to share with the application). See CONFIGURATION.
  • TableStatusChecker: cache getMissingColumnsgetMissingColumns() results are now cached (filesystem, 5 min TTL) to reduce information_schema queries. Uses CACHE_TTL_SECONDS constant (300s) shared with tableExists and tableIsComplete.
  • symfony/yaml – Added as explicit require dependency for YamlFileLoader when loading services config.

Added (tests)

  • TableStatusCheckerTesttestGetMissingColumnsReturnsCachedValueWhenCacheHit, testTableExistsWhenNoCacheAndDatabaseReturnsTrue, testRecordsTableExistsReturnsFalseWhenConnectionFails, and additional cache/exception path tests.
  • PerformanceExtensionTesttestLoadCustomCachePoolConfiguration.
  • ConfigurationTest – Default cache.pool assertion.
  • RouteDataRecordRepositoryTesttestGetStatisticsByHourWithRouteNameAndStatusCodeFilters.
  • PerformanceAnalysisServiceTest – Correlations, efficiency with null metrics, traffic distribution with single route.
  • RouteDataWithAggregatesTestgetStatusCodes null, getStatusCodeCount for non-existent code, getStatusCodeRatio with empty codes.
  • PerformanceMetricsServiceGetRouteDataAndRoutesByEnvTesttestSetMessageBusAcceptsNull, testSetMessageBusAcceptsObject.

See UPGRADING for migration steps.


Commits

  • feat: Add symfony/yaml dependency and enhance cache configuration (189fe1a)
  • feat: Add cache configuration to performance bundle (060f8b4)
  • test: Enhance unit tests for command help, form submissions, and performance metrics (ee7fdc8)
  • Merge branch 'main' of github.com:nowo-tech/PerformanceBundle into main (9767735)
  • test: Add unit tests for handling stage and test environments (317d80b)
  • Apply PHP CS Fixer fixes [skip ci] (6529834)
  • Merge branch 'main' of github.com:nowo-tech/PerformanceBundle into main (7ad358f)
  • refactor: Update Makefile and PHPUnit configuration for improved test execution (5bd3cd3)
  • Apply PHP CS Fixer fixes [skip ci] (4ba767e)