Problem/Motivation
When the external NoBotIQ balance is low, or the API/authentication flow fails for another reason, spam checks can stop working without a clear admin-facing warning.
In that situation site owners may continue to assume protection is active, while the module is effectively degraded.
Proposed resolution
Add an integration health status for the module and expose it to administrators in several places:
- Show a warning/error message on the settings form.
- Show the same warning on the Spam Protection Point list page.
- Show the same warning on the Spam List page.
- Add a Status report entry describing the degraded state.
- Optionally allow a notification email with throttled reminders.
- Reset the warning automatically after the next successful API check.
Possible implementation notes
- Distinguish at least between low balance, authentication failure, and temporary API unavailability.
- Store the current integration state in Drupal state so the warning can be reused across admin pages.
- Keep the default runtime behavior fail-open, but make the degraded state visible to administrators.
I already have a working local implementation for this direction and can prepare a merge request if this approach is acceptable.
Issue fork nobotiq_spam_protection-3613414
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
alex_optimComment #5
alex_optimComment #7
alex_optim