AI Logging has a hidden delete function if automated logging is not enabled
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3508785. --> Reported by: [scott_euser](https://www.drupal.org/user/3267594) Related to !477 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>AI Logging settings has a 'Log requests' tickbox. When not ticked, the pruning service still kicks in and can delete old logs.</p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <p>Untick the box, still the default config sets prompt_logging_max_messages and prompt_logging_max_age</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Move the max messages and max age outside of the log requests conditional form states in case automated logging is not enabled, so its clear that deletion still happens + control given to decide how deletion should work.</p> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <p>MR</p> <h3 id="summary-ui-changes">User interface changes</h3> <p>Update to AI Logging Settings page</p> <h3 id="summary-api-changes">API changes</h3> <p>N/A</p> <h3 id="summary-data-model-changes">Data model changes</h3> <p>N/A</p>
issue