Open mdeuk opened 5 years ago
Moved to https://github.com/mysociety/alaveteli as we'd make this change for all Alavetelis.
I think enforcing lower case would be easiest. We could ignore case on comparison, but that would be quite a faff in the code I think.
Moved to https://github.com/mysociety/alaveteli as we'd make this change for all Alavetelis.
I think enforcing lower case would be easiest. We could ignore case on comparison, but that would be quite a faff in the code I think.
This would seem to make sense. On WDTK we only have a couple of tags which are specifically in another case (three that come to mind are CRC, LEP, and, RFCAs); others are a byproduct of what could perhaps be considered a stylistic preference.
Provided enforcement wouldn't cause a specific issues with existing bodies, I can't see any issue in this approach. 🙂
If tags ever appear to the public then proper capitalisation of eg. Scotland would be preferable.
If tags ever appear to the public then proper capitalisation of eg. Scotland would be preferable.
Tags don't currently appear to the public I don't think. Only categories do (tags where a description of what the tag is for exists), so we only show the properly capitalised. If tags are kept largely behind the scenes then maybe all lowercase is OK.
The Scotland / scotland issue in the initial issue description here has already been fixed.
We could propose a developer action to make all existing tags lowercase, then enforce lowercase from now on?
In the case of key:value tags there might be values which have elements which should be uppercase.
It might be safer to leave such values mixed case?
eg. a company number "SC327000" - is it important the SC is capitalised?
What about an NHS ODS code eg. YGMXK
I don't think in either of those cases we'd break anything by going lowercase, but we might lose something, as the codes are capitalised on the official registers.
In the case of key:value tags there might be values which have elements which should be uppercase. ... I don't think in either of those cases we'd break anything by going lowercase, but we might lose something, as the codes are capitalised on the official registers.
Agreed - some of the datasources we use may very well be case sensitive, so it makes sense that the 'value' string honours whichever format the source uses.
There are some surprising examples of database query systems which are case sensitive, both in and out of public sector!
The National Archives convert to lowercase.
Review your tags. Please be aware that tags will be saved and displayed in lowercase letters to maintain standardisation and consistency.
Originally posted by @RichardTaylor in https://github.com/mysociety/whatdotheyknow-theme/pull/582#issuecomment-512237474 #582