Skip to content

WIP: Refactor Maintenance model to gateway

Alex requested to merge 9-refactor-maintenance into master

Part of #9 (closed)

What does this MR do?

Moves all database requests from the maintenance model and control to the gateway.

How confident are you it won't break things if deployed?

Locally, the daily maintenance works without problems, but I'm not perfectly sure. This needs some thorough reviewing and testing.

How to test

  1. Checkout branch locally
  2. Run the maintenance script: ./scripts/docker-compose run --rm --no-deps app php -f run.php Maintenance daily
  3. Check if it passes without errors

Checklist

  • added a test, or explain why one is not needed/possible...
  • no unrelated changes
  • asked someone for a code review
  • joined #foodsharing-beta channel at https://slackin.yunity.org
  • added an entry to CHANGELOG.md (description, merge request link, username(s))
  • Once your MR has been merged, you are responsible to update the #foodsharing-beta Slack channel about what has been changed here. They will test your work in different browsers, roles or other settings
Edited by Alex

Merge request reports