#3211 closed defect (bug) (fixed)
Shim favs/subs back-compat via BBP_User_Engagements_Base
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 2.6 | Priority: | high |
| Severity: | normal | Version: | trunk |
| Component: | API - Engagements | Keywords: | needs-patch |
| Cc: |
Description (last modified by )
In 2.6, we changed the way that engagements are stored in the DB. There is a migration script for small bbPress installs (with less than 10k users) but there is no back-compat for larger installs that haven't upgraded yet.
We should extend BBP_User_Engagements_Base and provide back-compat for favorites & subscriptions to provide backwards compatibility to large 2.5 installations.
We'd do this by setting the "engagements strategy" in bbPress::setup_variables() based on the database version. Right now, we've hard-coded it to use the new one (BBP_User_Engagements_Meta) but we'd selectively use the back-compat one if until the database upgrade is completed.
The goal with doing so is preventing breakage for the brief period of time between bbPress files being upgraded to 2.6, and the database still being at version 2.5. For large installs, that might be days or weeks until a forum admin manually runs the upgrade routine, so it's important that we have a strategy in place for them.
Putting this in the 2.6 milestone as the final thing to do before 2.6 is released and 2.7 dev begins.
In 6842: