Drift between documented behaviour and code, in seven places
Problem / Motivation
Seven places where the code falls short of a rule the module already states about itself. Each was measured on a running site, not deduced.
- The Tool plugin refuses a dangling reference without logging it, which issue #31 (closed) says it inherits from the recorder. Four branches, zero rows in the log.
- A grade saved from code or imported from config keeps an
eu_iconor an IPTC URI the schema forbids, and the value reaches the meta tag and the JSON-LD. Issue #13 (closed) named that path and was closed with a form validator. - A subscriber that throws on a suggestion's status change hands its failure to the caller, after the change is already written, and nothing is logged.
- The Views data for the suggestion table leaves out
id, its base field, so a view cannot act on the rows it lists. - The audit trail records the state a decision moved to and never the one it moved from.
- An icon the module does not recognise renders an empty
<img>, and the meta tag names it anyway. lint.shdoes not read the text of what it ships.
Proposed resolution
One branch closes all seven. The detail is in the merge request.
Still open
ai_disclosure_audit.suggestion_note is narrower than the column it copies from, so a note over 64KB loses the audit row. A write straight to the config object still bypasses entity validation, as it does for every config entity in Drupal.
AI Compliance
🤖 Generated with the help of an LLM, reviewed and approved by me before posting.
Edited by Giorgio Alfredo Pagano