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.
Comments
Comment #2
wouters_f commentedthis should be fixed in the latest dev branch
Comment #4
wouters_f commentedCreated 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.