Problem/Motivation

At /admin/config/ai/ai_search_block_log/config, I have configured the form for the expiration to be 1 year, but in reality, I only see logs for the past week.

Steps to reproduce

At /admin/config/ai/ai_search_block_log/config, set the expiration to be 1 year. But in use, any logs older than 1 week will disappear.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Comments

adrian83 created an issue. See original summary.

wouters_f’s picture

Status: Active » Needs review

this should be fixed in the latest dev branch

  • wouters_f committed 1dde2609 on 3591185-respect-log-expiration-setting
    Fix log expiration not being respected
    
    The config/install default was...
wouters_f’s picture

Created MR !42 to fix this: https://git.drupalcode.org/project/ai_search_block/-/merge_requests/42

The root cause was a missing `config/install/ai_search_block_log.settings.yml`. Without it, the settings config object has no value after installation. The helper fell back to `'week'` while the settings form displayed `'year'` as the default, so logs were always expired after 7 days regardless of what was configured.

The fix adds the install config file (default `expiry: year`) and corrects the helper fallback to match.