Always a cheery way to start the day. Steamlocomotive.info is a complex computer program, and like most such programs it has bugs. We (meaning me) try to squash these bugs as expeditiously as possible. But to do so, we have to be aware of them. I’m going to discuss a couple of them here.
First: the Magical Non-Existent Notes Bug. The system kept a count of the number of notes attached to each locomotive. Turns out, the system couldn’t count very well. Ended up fixing the counting bug, then writing a utility program to scan all 29,000 or so records in the database and correct their Notecount fields. Whee. Fixed.
Second: The Missing Marker Bug. When you’re looking at the information page for a locomotive and click on the Globe icon to see a map of its location, the system correctly draws the map (a hybrid of map and satellite photo) but fails to draw the red marker on the locomotive’s location. The old mapping system did this automatically, the new one requires an explicit call to the Google Maps API for it to happen. I didn’t know this. Now I do. Will add the code today, hopefully. Not Fixed.
Third: Weird Map Error. If an editor moves a locomotive from one location to another (primarily because someone actually moved the locomotive) and there was a map to the original location, after the move the map still pointed to the original location, and hence was wrong. Wrote the code to fix that and test it this morning. Fixed.
Fourth: There are certain things you CANNOT type in a Notes field. Doing so will cause you to be taken, without explanation, to a little tiny window with the front page of the website in it. This is clearly wrong. I haven’t quite figured out how I am going to (a) explain this; and (b) fix it. So: Not Fixed.
Fifth: If you delete a locomotive and it had a map, the map information stays in a table called Locations. This has no pratical impact on the system, it is just clutter, so I’ve put it on my list of things to be fixed.
There are more, but they aren’t well quantified as yet, so I’ll report them later.