Thursday 20 March 2014

Travel Scheduling

Started work: 21st March

This tool will display the existing schedule for the horse/jockey in question, and provide "smart booking" options based on the existing schedule. Also, rather than orienting the travel on the departure time, it will be the reverse, predicting the departure time based on the desired arrival time.

Updates
  • All "display" work on this page is now done, including javascript functionality.
  • If there are future travel requirements for the horse being viewed, it should automatically set the travel to be a destination/time/date that is sensible
  • Adjusting Continent/region/track should automatically adjust options available
  • Changing the arrival date to be sometime today should set a minimum arrival time that is achievable, changing to a later date should free up all times.
  • Setting a Smart Booking should set all default values and quote the flight for you.
  •  

Update 8th April

  • Booking Travel, getting quotes, and "smart travel" should all be working properly now
  • Please report any errors ;-)

8 comments:

  1. Is this suppose to be working or are you still working on it? :)

    ReplyDelete
    Replies
    1. Hi Sez - nah, this isn't finished just yet. I've spent the past couple days doing some contract work to help pay the bills. For the foreseeable future, the second half of the week will be TK time, the first half will be "other work".

      I'll pop more updates for each new topic within this Dev Blog as I make advances, using the "Updates" heading as per above ;-)

      But cheers for being so keen!

      Delete
    2. Just checking. Also was testing my ability to comment as well for the future.

      Is footy considered "other work"? ;)

      Delete
  2. Looking forward to trying this when it is up and going.

    Hidden schedule. I wouldn't personally be bothered by it but some users might be frustrated if it appears the schedule has "disappeared" and it has to be explained to them how to find it and toggle it. Might be easier all around to just display everything upfront.

    ReplyDelete
  3. Okay found a chance to test this.

    It's going to take some getting used to when manually booking I think being used to the current system. It should work out better in the long run though I think. The issue might be not having a Smart Booking option to go back to your home track. Maybe after the race/race recovery that option is available? Not a big deal.

    The buggy bit is when getting a quote. I was trying to book to a local track in the Ardennes region and after getting a quote it changed my options to MEDI regional and local. Expecting it to remember what I have until I actually manually change it. For a single region Continent it defaults the local back to the regional local. Getting a quote for LOWE changes that option back to Sydney Harbor for instance. I think the actual Departure Details are fine but hard to tell when the Destination toggles back to something else.

    There's a couple little graphical issues as well but that can be tweaked if the above is fixed.

    ReplyDelete
    Replies
    1. OK Sez - I've included options now for both of those:

      1/ When getting a quote, it should no longer reset the track droplist; and
      2/ If your horse finishes the schedule at a track which is not your own, it should have a smart-travel option to return home.

      Would be good if you can test the second one, particularly.

      Delete
  4. Droplist reset fix looks good. Solved a graphical issue for me too but that might have been something I tweaked on my end.

    I broke the return home option though oops. I see the smart-travel option to return home but the actual options below are for the track my horse is currently at. Almost didn't see the yellow error message above but that might explain the whole issue:

    Notice: Undefined variable: travelfinish in /var/www/vhosts/trackking.org/httpdocs/hairboylabs/redesign/api_schedule.php on line 288

    Additionally, I accidentally scheduled another horse to a random location and I can't cancel that travel. It's a throw-away horse so no problem. However, all of this occurred within the 10:00 TK timeframe and that travel I can't cancel is scheduled for 12:00 today. That shouldn't be possible that quickly especially as it's to another Continent.

    Emailed you a screenie.

    ReplyDelete
    Replies
    1. Thanks for such a detailed bug report ;-)

      OK, fixed the undefined variable bug, and also fixed that it was only expecting travel to take 12 minutes instead of 12 hours!

      I think this one is fixed now thanks for your help

      Delete