Skip to content

Release v0.3.5

Choose a tag to compare

@github-actions github-actions released this 15 Apr 20:10
· 96 commits to main since this release

0.3.5: missing log HTTP columns, call_site backtrace only

MissingTranslationLog gains request_route, request_method, request_path.
TranslationCallSiteResolver skips the call-site builder frame.
See docs/CHANGELOG.md [0.3.5].

Changelog

Added

  • MissingTranslationLog: nullable columns request_route, request_method, request_path for HTTP context when record_request_context is true (default). MissingTranslationRecordContext + MissingTranslationLogCallSiteBuilder::buildContext() supply values for the decorator / recorder.

Changed

  • TranslationCallSiteResolver: skips MissingTranslationLogCallSiteBuilder so call_site points at the real caller (not the builder frame).
  • call_site stores only the backtrace segment (file:line); route / method / path are no longer concatenated into that column.
  • MissingTranslationLogCallSiteBuilder is no longer declared final so PHPUnit can generate test doubles for RecordingTranslatorDecorator tests.
  • MissingTranslationRecorderInterface::record() adds optional $requestRoute, $requestMethod, $requestPath parameters (implementations and async buffer payloads must align).
  • persistBuffer INSERT/UPDATE includes the new columns when present in the buffer snapshot.

Tests

  • MissingTranslationLogRepositoryTest: duplicate flush without request fields preserves existing HTTP columns; truncation of long request_path; EntityManager::clear() where needed so assertions read DB state after raw SQL updates.
  • DoctrineMissingTranslationRecorderTest, RecordingTranslatorDecoratorTest, MissingTranslationLogCallSiteBuilderTest, TranslationCallSiteResolverTest, MissingTranslationLogEntityTest, MissingTranslationLogCommandsTest, MissingTranslationBufferDtosTest: coverage for buildContext(), buffer shape, and record() forwarding.

Documentation

  • USAGE / CONFIGURATION / UPGRADING: request context columns, persistBuffer behaviour, and 0.3.4 → 0.3.5 migration notes.
  • Demos (demo/README.md, Symfony 7/8 insights Twig, dev nowo_translation_yaml_tools.yaml): copy aligned with split call_site vs HTTP columns.

Full Changelog: v0.3.4...v0.3.5