From T270318: Block info in the popup [M], getting an accurate count for the number of past blocks for an IP is more complicated than originally expected:
Questions
- How could we keep an accurate record of the number of past blocks affecting an IP
Notes
- We could use the ip_changes table as inspiration – it's a table created to return very specific information for an IP or a range of IPs.
- https://www.mediawiki.org/wiki/Manual:Block_and_unblock
Could/we should create a hook that fires whenever a block is inserted into the database?- https://www.mediawiki.org/wiki/Manual:Ipblocks_table
- https://www.mediawiki.org/wiki/Manual:Logging_table
