Reedy added a comment.

  In T235389#5571256 <https://phabricator.wikimedia.org/T235389#5571256>, 
@dbarratt wrote:
  
  > In T235389#5571221 <https://phabricator.wikimedia.org/T235389#5571221>, 
@Reedy wrote:
  >
  >> And FWIW, CheckUser stores IPs as the string and as a hexadecimal 
representation, which it uses for IP comparison and maths...
  >
  > Yes, so does `ipblocks`, but wikibase does not have a way to store ranges 
in hexadecimal format, so rather than building one, it would be simpler to 
store them in decimal format.
  
  Again, MW has functionality for doing this conversion, splitting, 
reformatting etc. You could store a start, store an end of the range like we do 
elsewhere for ranges. Wikibase stores most things in json blobs, so not like 
we're going to need schema changes, and storing a couple of extra fields for a 
property that aren't that widely used... Doesn't seem like a storage 
consideration we really need to care about
  
  Just because it's simpler, doesn't necessarily mean it's the best solution 
either

TASK DETAIL
  https://phabricator.wikimedia.org/T235389

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Reedy
Cc: Krenair, Reedy, Niharika, Aklapper, dbarratt, darthmon_wmde, DannyS712, 
Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, 
rosalieper, Wikidata-bugs, aude, Mbch331
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to