From MediaWiki 1.29, rows in the `user_groups` table may have an expiry date. When `ug_expiry` IS NOT NULL and strictly less than the current time, the row should be disregarded. This normally means adding a condition similar to
```
'ug_expiry IS NULL OR ug_expiry >= ' . $db->addQuotes( $db->timestamp() )
```
The following non-obsolete extensions query `user_groups` directly, and may need to be updated:
* #abusefilter (INSERT only)
* #articlefeedbackv5
* #bluespice
* #mediawiki-extensions-centralauth (this will probably lead to incorrect user groups being shown on Special:CentralAuth, so needs to be fixed)
* CommunityTwitter
* #mediawiki-extensions-confirmaccount
* #contributionscores (maybe; not really sure what this is doing)
* #mediawiki-extensions-deleteown
* DisableAccount
* #mediawiki-extensions-flaggedrevs (statistical purposes only)
* #flow
* GlobalUserGroups
* RevisionCommentSupplement
* #mediawiki-extensions-securepoll
* StrategyWiki (#wmf-strategy perhaps? No docs on MW.org)
* #mediawiki-extensions-translate (statistical purposes only)
* UserGroups
* #video_non-wmf