Skip to content

Remove remaining forum DB access - #119

Merged
Celeo merged 1 commit into
masterfrom
remove-forum-db-access
Aug 8, 2026
Merged

Remove remaining forum DB access#119
Celeo merged 1 commit into
masterfrom
remove-forum-db-access

Conversation

@Celeo

@Celeo Celeo commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Yesterday's vatusa-old-forum DB deletion broke Academy login via SSOController (fixed separately on master, commit d7e6789). This PR removes the rest of the app's dependency on that DB, since forums are retired for good (Discord replaced them, Cobalt/Mithril replaced the events/news feeds).
  • PublicController::getEvents() / getNews() now return an empty array instead of querying the forum DB.
  • Deleted ForumCalendar, ForumMessages, SMFHelper (all dead/unreferenced now).
  • Removed User::lastActivityForum() (no callers anywhere) and the 3 dead SMFHelper::createPost() calls in User::addToFacility()/removal flow (that method's body was already a commented-out no-op).
  • Removed the forum connection block from config/database.php and the DB_FORUM_* env vars from .env/.env.example.

Left untouched (redirect-only, no DB access): SSOController's logout and ?forums destination branches, and ULSHelper::doHandleLogin()'s destination == "forums" branch (still builds a signed redirect URL via FORUM_SECRET, doesn't touch a DB).

Test plan

  • php -l on all changed PHP files
  • Grepped repo for connection('forum'), SMFHelper, ForumMessages, ForumCalendar, DB_FORUM — no hits left
  • Confirm GET /api/v2/public/events/1 and /public/news/1 return 200 with an empty array in a deployed environment
  • ./vendor/bin/phpunit

Public news/events endpoints, User::lastActivityForum, and SMFHelper all
still queried the forum DB connection, which pointed at the now-deleted
vatusa-old-forum database. Forums are retired for good (replaced by
Discord, and by Cobalt/Mithril for events/news), so this removes the
forum connection and all its callers rather than restoring it:

- PublicController::getEvents/getNews now return an empty array
- Deleted ForumCalendar, ForumMessages models and SMFHelper
- Removed User::lastActivityForum and its dead SMFHelper::createPost calls
- Removed the forum connection block from config/database.php and its
  DB_FORUM_* env vars
@Celeo
Celeo merged commit 670bb7b into master Aug 8, 2026
3 checks passed
@Celeo
Celeo deleted the remove-forum-db-access branch August 8, 2026 21:57
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