Skip to content

fix(backend): persist notification config to Redis across restarts (#3166)#3175

Merged
mrveiss merged 1 commit intoDev_new_guifrom
fix/notif-validation-persist-3166
Apr 1, 2026
Merged

fix(backend): persist notification config to Redis across restarts (#3166)#3175
mrveiss merged 1 commit intoDev_new_guifrom
fix/notif-validation-persist-3166

Conversation

@mrveiss
Copy link
Copy Markdown
Owner

@mrveiss mrveiss commented Apr 1, 2026

Summary

  • Add persistence.py with save_notification_config() / load_notification_config() using Redis key autobot:workflow:notif_config:{id} with 7-day TTL
  • Wire into GET endpoint (lazy hydration from Redis on restart) and PUT endpoint (persist on save)
  • Validation already exists via field_validators (confirmed, not duplicated)
  • Add 11 pytest tests covering persistence round-trip, validation, and Redis unavailability

Closes #3166

Test plan

  • pytest autobot-backend/tests/services/test_workflow_notification_persistence.py
  • Verify config survives backend restart via Redis persistence
  • Verify GET returns config loaded from Redis after restart

🤖 Generated with Claude Code

…3166)

Add persistence.py with save/load to Redis key
autobot:workflow:notif_config:{id} (7-day TTL). Wire into GET/PUT
endpoints to hydrate on read and persist on write. Add 11 tests
covering round-trip, validation, and Redis unavailability.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@mrveiss mrveiss merged commit bea67a8 into Dev_new_gui Apr 1, 2026
3 of 4 checks passed
@mrveiss mrveiss deleted the fix/notif-validation-persist-3166 branch April 1, 2026 18:33
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 1, 2026

✅ SSOT Configuration Compliance: Passing

🎉 No hardcoded values detected that have SSOT config equivalents!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant