A service is needed that allows callers to lookup the local status of a global block either by the associated target or global block ID. This will be done by moving the static methods GlobalBlocking::getLocalWhitelistInfo and GlobalBlocking::getLocalWhitelistInfoByIP into this new service.
Acceptance criteria
- Create the GlobalBlockLocalStatusLookup service by using copies of GlobalBlocking::getLocalWhitelistInfo and GlobalBlocking::getLocalWhitelistInfoByIP as the sole methods
- Update the methods to use DI and SQL query builders
- Replace the usage of wfGetDb (T357644)
- Fully test this service
QA Results - Local
AC | Status | Details |
---|---|---|
1 | ✅ | https://phabricator.wikimedia.org/T357506 here |