Convert trigger_error in VariationCache into a LogicException.

Created on 19 August 2024, 6 months ago
Updated 18 September 2024, 5 months ago

Problem/Motivation

We introduced extra hardening in the VariationCache but for BC reasons could not throw an exception. We ended up going for a trigger_error with level E_USER_WARNING instead, but writing the tests in a way already that they expect a LogicException. This was achieved by having the tests user a custom error handler. See 🐛 VariationCache needs to be more defensive about cache context manipulation to avoid broken redirects Fixed

The goal is to remove this trigger_error in favor of an actual LogicException and to remove the small workaround from the tests.

Steps to reproduce

N/A

Proposed resolution

  1. Convert trigger_error in VariationCache into LogicException
  2. Remove custom error handler and try-catch in VariationCacheTest

Remaining tasks

Wait for D12 branch to become available

User interface changes

N/A

Introduced terminology

N/A

API changes

N/A

Data model changes

N/A

Release notes snippet

TBD

📌 Task
Status

Active

Version

11.0 🔥

Component
Cache 

Last updated 7 days ago

Created by

🇧🇪Belgium kristiaanvandeneynde Antwerp, Belgium

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024